/* ==========================================================================
   RadarPulse AI — High-End Glassmorphism Dark Theme & Design System
   ========================================================================== */

:root {
  /* Color Tokens */
  --bg-dark: #07090e;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.75);
  --bg-subtle: rgba(255, 255, 255, 0.03);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-glow-cyan: rgba(6, 182, 212, 0.4);

  /* Accents */
  --cyan-primary: #06b6d4;
  --cyan-light: #22d3ee;
  --cyan-glow: rgba(6, 182, 212, 0.25);

  --emerald-primary: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --amber-primary: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);

  --purple-primary: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.25);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Glassmorphism */
  --glass-blur: blur(16px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.dark-theme {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Glowing Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(6, 182, 212, 0) 70%);
  top: -150px;
  left: -150px;
}
.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0) 70%);
  bottom: -200px;
  right: -100px;
}
.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0) 70%);
  top: 35%;
  left: 45%;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
}

.header-container {
  max-width: 1540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-radar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 1px solid var(--border-glow-cyan);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 15px var(--cyan-glow);
}

.radar-sweep {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(6, 182, 212, 0.4) 60deg, transparent 65deg);
  animation: radarRotate 3s linear infinite;
}

.radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-light);
  box-shadow: 0 0 10px var(--cyan-light);
  z-index: 2;
}

@keyframes radarRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--cyan-light);
  text-shadow: 0 0 12px var(--cyan-glow);
}

.brand-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.live-counter-badge {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  animation: pulseBadge 2s infinite ease-in-out;
}

.stat-pill {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
}

.ltd-highlight-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.license-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 8px var(--emerald-primary);
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.96); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-primary) 0%, #0284c7 100%);
  color: #fff;
  box-shadow: 0 0 16px var(--cyan-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--cyan-light) 0%, #0369a1 100%);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.4);
}

.btn-outline-cyan {
  background: transparent;
  color: var(--cyan-light);
  border: 1px solid var(--border-glow-cyan);
}
.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.btn-owner-active {
  background: rgba(6, 182, 212, 0.12) !important;
  color: var(--cyan-light) !important;
  border-color: var(--cyan-primary) !important;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.3) !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-owner-active:hover {
  background: rgba(6, 182, 212, 0.22) !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5) !important;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-primary) 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 0 14px var(--emerald-glow);
}
.btn-emerald:hover {
  background: linear-gradient(135deg, #34d399 0%, #047857 100%);
  transform: translateY(-1px);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan-primary) 0%, #0284c7 100%);
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}
.btn-xs {
  padding: 4px 8px;
  font-size: 0.72rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Main Layout & Views
   ========================================================================== */

.main-content {
  max-width: 1540px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.app-view {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}
.app-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-smooth);
}
.glass-card:hover {
  border-color: var(--border-hover);
}

/* ==========================================================================
   View 1: Metrics Strip & Radar Controls
   ========================================================================== */

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.metric-icon.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-light);
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.metric-icon.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.metric-icon.amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-primary);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.metric-icon.purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple-primary);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.metric-info {
  display: flex;
  flex-direction: column;
}
.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.metric-value.link-text {
  font-size: 0.95rem;
  color: var(--purple-primary);
  cursor: pointer;
  text-decoration: underline;
}

/* Radar Controls Card */
.radar-controls-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 60;
}

.radar-controls-card:has(.multiselect-dropdown-menu.show),
.radar-controls-card.has-dropdown-open {
  z-index: 90;
}

.search-box {
  flex: 1;
  min-width: 320px;
  position: relative;
  display: flex;
  align-items: center;
}
.search-box svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
}
.search-box input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 42px;
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all var(--transition-fast);
}
.search-box input:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.filters-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 10;
}

.filter-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.filter-dropdown select {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

/* Custom Multi-Select Dropdown */
.platform-multiselect-container {
  position: relative;
  z-index: 50;
}

.custom-multiselect {
  position: relative;
  display: inline-block;
  z-index: 50;
}

.multiselect-trigger-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glow-cyan);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

.multiselect-trigger-btn:hover,
.multiselect-trigger-btn.active {
  border-color: var(--cyan-light);
  box-shadow: 0 0 12px var(--cyan-glow);
  background: rgba(20, 30, 55, 0.95);
}

.multiselect-trigger-btn .chevron-icon {
  transition: transform 0.2s ease;
  color: var(--cyan-light);
  flex-shrink: 0;
}

.multiselect-trigger-btn.active .chevron-icon {
  transform: rotate(180deg);
}

.multiselect-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 350px;
  max-width: 92vw;
  background: rgba(11, 18, 33, 0.98);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-glow-cyan);
  border-radius: var(--radius-md);
  padding: 12px;
  z-index: 999999;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(6, 182, 212, 0.35);
  display: none;
  animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.multiselect-dropdown-menu.show {
  display: block;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.multiselect-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.multiselect-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.multiselect-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-text-action {
  background: transparent;
  border: none;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.btn-text-action.action-select-all {
  color: var(--cyan-light);
}

.btn-text-action.action-select-all:hover {
  background: rgba(6, 182, 212, 0.15);
  color: #fff;
}

.btn-text-action.action-clear-all {
  color: #f87171;
}

.btn-text-action.action-clear-all:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.action-divider {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.multiselect-options-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 4px;
}

.multiselect-options-list::-webkit-scrollbar {
  width: 5px;
}

.multiselect-options-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.multiselect-options-list::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-primary);
}

.multiselect-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.multiselect-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.multiselect-option.telegram-option {
  background: rgba(14, 165, 233, 0.08);
  border: 1px dashed rgba(14, 165, 233, 0.3);
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 4px;
}

.multiselect-option.telegram-option:hover {
  background: rgba(14, 165, 233, 0.18);
  color: #fff;
}

.platform-check {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.platform-check:checked {
  background: var(--cyan-primary);
  border-color: var(--cyan-primary);
}

.platform-check:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.opt-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.opt-name {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.score-val {
  color: var(--cyan-light);
  font-weight: 700;
  font-family: var(--font-mono);
}
.filter-slider input[type="range"] {
  accent-color: var(--cyan-primary);
  cursor: pointer;
}

/* ==========================================================================
   Leads Feed & Cards
   ========================================================================== */

.radar-feed-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feed-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.live-dot {
  width: 9px;
  height: 9px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.feed-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.feed-header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.feed-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.feed-sort-wrapper:hover,
.feed-sort-wrapper:focus-within {
  border-color: var(--cyan-light);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.feed-sort-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.feed-sort-select {
  background: transparent;
  border: none;
  color: var(--cyan-light);
  font-size: 0.83rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  padding: 3px 6px;
}

.feed-sort-select option {
  background: #0f172a;
  color: #f8fafc;
  padding: 8px 12px;
}

.highlight-all-option {
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 6px;
  padding-bottom: 8px;
  background: rgba(6, 182, 212, 0.06);
}

.highlight-all-option:hover {
  background: rgba(6, 182, 212, 0.14) !important;
}

.leads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 20px;
}

.lead-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.lead-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan-primary), var(--purple-primary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.lead-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.lead-card:hover::before {
  opacity: 1;
}

.lead-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lead-author-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lead-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}
.lead-author-details h4 {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
}
.lead-author-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.lead-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-telegram {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.4);
}
.badge-kwork {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
}
.badge-fl {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}
.badge-freelance_ru {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.4);
}
.badge-workzilla {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
}
.badge-youdo {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
}
.badge-profi {
  background: rgba(20, 184, 166, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.4);
}
.badge-upwork {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  border: 1px solid rgba(22, 163, 74, 0.4);
}
.badge-fiverr {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge-reddit {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
}
.badge-x, .badge-twitter {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.badge-yc, .badge-hackernews {
  background: rgba(249, 115, 22, 0.25);
  color: #ff742b;
  border: 1px solid rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.2);
}
.badge-freelance {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge-taskpay {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.badge-advego {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}
.badge-qcomment {
  background: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.4);
}
.badge-turbotext {
  background: rgba(132, 204, 22, 0.2);
  color: #a3e635;
  border: 1px solid rgba(132, 204, 22, 0.4);
}
.badge-expertnoemnenie {
  background: rgba(217, 70, 239, 0.2);
  color: #e879f9;
  border: 1px solid rgba(217, 70, 239, 0.4);
}
.badge-yandex {
  background: rgba(250, 204, 21, 0.2);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.4);
}
.badge-fixed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-hourly {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-negotiable {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.35);
}
.badge-email-tag {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.score-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.score-badge.hot {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.score-badge.warm {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.lead-body-content {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--cyan-primary);
}

.lead-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}
.lead-budget {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--emerald-primary);
  font-size: 1rem;
}
.lead-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.lead-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   View 2: AI Deal Closer
   ========================================================================== */

.closer-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
}

.closer-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.closer-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.closer-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.prospect-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.prospect-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-glow-cyan);
}
.prospect-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.prospect-quote-box label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.quote-text {
  font-size: 0.92rem;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.lead-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.mini-metric {
  display: flex;
  flex-direction: column;
}
.mini-metric .label {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.mini-metric .val {
  font-size: 0.88rem;
  font-weight: 700;
}
.text-emerald { color: var(--emerald-primary); }
.text-amber { color: var(--amber-primary); }
.text-cyan { color: var(--cyan-light); }

.stage-mover label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}
.stage-mover select {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

/* Closer Main Engine */
.closer-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.closer-main-header h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
}
.closer-main-header .subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.angle-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.angle-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}
.angle-btn:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: var(--border-hover);
}
.angle-btn.active {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--cyan-primary);
  box-shadow: 0 0 14px var(--cyan-glow);
}
.angle-icon {
  font-size: 1.4rem;
}
.angle-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.angle-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pitch-output-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.output-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.copy-actions {
  display: flex;
  gap: 8px;
}

.pitch-text {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: #f1f5f9;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}
.pitch-text:focus {
  border-color: var(--cyan-primary);
}

.pitch-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   View 3: Pipeline CRM
   ========================================================================== */

.crm-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.crm-headline h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
}
.crm-headline p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.crm-kpis {
  display: flex;
  align-items: center;
  gap: 20px;
}
.kpi-box {
  display: flex;
  flex-direction: column;
  text-align: right;
}
.kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.kpi-num {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
}

/* Kanban Board */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  min-height: 520px;
}

.kanban-col {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}
.col-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.col-indicator.cyan { background: var(--cyan-light); }
.col-indicator.amber { background: var(--amber-primary); }
.col-indicator.purple { background: var(--purple-primary); }
.col-indicator.emerald { background: var(--emerald-primary); }

.col-count {
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.col-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.kanban-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: grab;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kanban-card:hover {
  border-color: var(--cyan-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.kanban-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kanban-card-author {
  font-size: 0.88rem;
  font-weight: 600;
}
.kanban-budget {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--emerald-primary);
  font-size: 0.88rem;
}
.kanban-content-preview {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.kanban-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.kanban-move-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
}
.kanban-move-btn:hover {
  color: var(--cyan-light);
  border-color: var(--cyan-primary);
}

/* ==========================================================================
   View 5: Pricing & Lifetime Deal Paywall
   ========================================================================== */

.pricing-headline {
  text-align: center;
  margin-bottom: 32px;
  padding: 36px 20px;
}
.pricing-headline h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  margin: 10px 0;
}
.pricing-headline p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.pricing-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 1380px) {
  .pricing-cards-container {
    grid-template-columns: repeat(5, 1fr);
  }
}

.plan-includes-note {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cyan-light);
  padding: 4px 8px;
  background: rgba(6, 182, 212, 0.08);
  border-radius: 4px;
  border-left: 2px solid var(--cyan-primary);
  margin-top: -6px;
}
.plan-includes-note.text-emerald {
  color: var(--emerald-primary);
  background: rgba(16, 185, 129, 0.08);
  border-left-color: var(--emerald-primary);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  padding: 24px 20px;
}

.featured-ltd-card {
  border: 2px solid var(--emerald-primary);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0.9) 100%);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.22);
  transform: translateY(-4px);
}
.featured-ribbon {
  position: absolute;
  top: -12px;
  right: 18px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}
.card-badge.badge-emerald {
  color: var(--emerald-primary);
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
}

.price-val {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-val .currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.price-val .amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
}
.price-val .period {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.urgency-counter {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: #fca5a5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.full-width {
  width: 100%;
}

/* ==========================================================================
   Block 5: Lead Pack Calculator
   ========================================================================== */

.lead-pack-calculator-card {
  margin-top: 32px;
  padding: 30px 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid var(--border-glow-cyan);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(6, 182, 212, 0.05);
  position: relative;
  overflow: hidden;
}

.pack-calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pack-calc-title-box h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.pack-calc-title-box p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 4px 0 0 0;
}

.pack-calc-body {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 960px) {
  .pack-calc-body {
    grid-template-columns: 1fr;
  }
}

.pack-input-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pack-counter-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-pack-step {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-pack-step:hover {
  background: var(--cyan-primary);
  color: #000;
  border-color: var(--cyan-primary);
}

.pack-leads-input {
  width: 130px;
  height: 44px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--cyan-primary);
  border-radius: var(--radius-sm);
  outline: none;
}

.pack-leads-slider {
  width: 100%;
  accent-color: var(--cyan-primary);
  cursor: pointer;
  margin: 6px 0;
}

.pack-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-pack-preset {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-pack-preset:hover, .btn-pack-preset.active {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--cyan-primary);
  color: #fff;
}

.pack-pricing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.tier-pill {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  font-size: 0.72rem;
  transition: all var(--transition-fast);
}

.tier-pill.active {
  border-color: var(--emerald-primary);
  background: rgba(16, 185, 129, 0.14);
  color: #fff;
}

.tier-pill .range {
  display: block;
  color: var(--text-muted);
  font-weight: 500;
}

.tier-pill .price {
  font-weight: 700;
  color: var(--emerald-primary);
}

.pack-calc-summary-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.1);
}

.pack-total-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pack-total-val {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--emerald-primary);
  line-height: 1;
}

.pack-unit-price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid var(--cyan-primary);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.88rem;
  color: var(--cyan-light);
  font-weight: 600;
}

.discount-pill {
  background: var(--emerald-primary);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-buy-pack {
  font-size: 1rem;
  font-weight: 700;
  padding: 13px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
  animation: modalFade 0.2s ease-in-out;
}
@keyframes modalFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: #0f172a;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.btn-close-modal:hover { color: #fff; }

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.form-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}
.form-input:focus {
  border-color: var(--cyan-primary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Payment Modal Specifics */
.payment-methods-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.method-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.method-tab.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan-primary);
  color: #fff;
}

.payment-method-view {
  display: none;
}
.payment-method-view.active {
  display: block;
}

.crypto-pay-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: var(--radius-sm);
}
.qr-img {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 4px;
}
.crypto-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.crypto-address-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.crypto-addr {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  word-break: break-all;
  color: var(--cyan-light);
}
.crypto-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.msg-box {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.msg-box.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}
.msg-box.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #0f172a;
  border: 1px solid var(--border-glow-cyan);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: toastSlide 0.25s ease-out;
}
@keyframes toastSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   AI Deal Closer Top Bar & Manual Lead Entry
   ========================================================================== */

.closer-top-bar {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.closer-top-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.closer-top-title-row h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.btn-manual-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: 0 0 16px var(--cyan-glow);
  white-space: nowrap;
}

.btn-manual-entry-sidebar {
  border-style: dashed;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.06);
}

.btn-manual-entry-sidebar:hover {
  background: rgba(6, 182, 212, 0.16);
  border-color: var(--cyan-light);
}

.manual-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid var(--purple-primary);
  color: #c4b5fd;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 4px;
}

.modal-instruction-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  background: rgba(6, 182, 212, 0.05);
  border-left: 3px solid var(--cyan-primary);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
}

/* ==========================================================================
   Watchlist (Target Authors Monitor)
   ========================================================================== */

.btn-watchlist {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(139, 92, 246, 0.35));
  border: 1px solid var(--border-glow-cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.3);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-watchlist:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(139, 92, 246, 0.5));
  box-shadow: 0 0 24px var(--cyan-glow);
  transform: translateY(-1px);
}

.modal-watchlist-card {
  max-width: 680px;
  width: 100%;
}

.watchlist-title-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--cyan-primary);
  color: var(--cyan-light);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 4px;
}

.watchlist-explainer-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(20, 28, 52, 0.95));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.explainer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--cyan-light);
  margin-bottom: 14px;
  font-weight: 600;
}

.explainer-icon {
  font-size: 1.1rem;
}

.explainer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.explainer-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.explainer-item strong {
  color: #fff;
  display: block;
  margin-bottom: 3px;
  font-size: 0.85rem;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid var(--cyan-primary);
  color: var(--cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.watchlist-manager-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.watchlist-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.watchlist-input-row input {
  flex: 1;
  min-width: 200px;
}

.watchlist-platform-select {
  flex: 0 0 220px;
  min-width: 180px;
  max-width: 260px;
}

.watchlist-active-container {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 6px;
}

.watchlist-active-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.watchlist-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
}

.watchlist-tag {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.watchlist-tag:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--cyan-primary);
}

.watchlist-tag .tag-platform {
  font-size: 0.72rem;
  color: var(--cyan-light);
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 7px;
  border-radius: 10px;
}

.watchlist-tag .btn-remove-tag {
  background: transparent;
  border: none;
  color: #f87171;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0 2px;
  transition: transform 0.15s ease;
}

.watchlist-tag .btn-remove-tag:hover {
  transform: scale(1.3);
  color: #ef4444;
}

.watchlist-settings-card {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.84rem;
  color: #86efac;
  margin-top: 4px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .closer-layout {
    grid-template-columns: 1fr;
  }
  .pricing-cards-container {
    grid-template-columns: 1fr;
  }
  .featured-ltd-card {
    transform: none;
  }
  .kanban-board {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .app-header .header-container {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-tabs {
    overflow-x: auto;
  }
  .leads-grid {
    grid-template-columns: 1fr;
  }
  .kanban-board {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Demo Leads, Contact Masking & Limit Paywall Styles
   ========================================================================== */

.masked-author {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  user-select: none;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.unlocked-author {
  color: #4ade80 !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-reveal-contact {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.32));
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fbbf24;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.76rem;
}

.btn-reveal-contact:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(217, 119, 6, 0.5));
  border-color: #f59e0b;
  color: #fff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.btn-reveal-contact.limit-reached {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #f87171;
}

.btn-reveal-contact.limit-reached:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.badge-unlocked {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Expiry / Warning Banner */
.license-warning-banner {
  margin: 0 0 20px 0;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(239, 68, 68, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
  animation: pulseBanner 2.5s infinite;
}

@keyframes pulseBanner {
  0%, 100% { border-color: rgba(245, 158, 11, 0.5); }
  50% { border-color: rgba(239, 68, 68, 0.8); }
}

.warning-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.warning-banner-content .warning-icon {
  font-size: 1.5rem;
}

.warning-banner-content .warning-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.warning-banner-content strong {
  color: #fef08a;
  font-size: 0.92rem;
}

.warning-banner-content span {
  color: #e2e8f0;
  font-size: 0.82rem;
}

.btn-warning-action {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-warning-action:hover {
  background: #fbbf24;
  transform: scale(1.02);
}

/* Modal Limit Reached */
.modal-limit-card {
  max-width: 520px;
}

.limit-header-badge {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.limit-status-icon {
  font-size: 2.8rem;
  margin: 8px 0 14px 0;
  animation: bounceLock 0.6s ease;
}

@keyframes bounceLock {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.limit-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.limit-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.limit-contact-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glow-cyan);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  text-align: left;
}

.contact-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.contact-box-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.limit-tg-btn {
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  display: block;
}

.limit-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* AI Deal Closer Paywall Lock Overlay */
#view-closer {
  position: relative;
}

.closer-paywall-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 520px;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(12px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  padding: 24px;
}

.closer-paywall-card {
  max-width: 480px;
  text-align: center;
  padding: 36px 30px;
  border: 1px solid var(--border-glow-cyan);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.25);
  animation: fadeIn 0.3s ease;
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-md);
}

.paywall-lock-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.closer-paywall-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #fff;
}

.closer-paywall-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.paywall-price-highlight {
  background: rgba(6, 182, 212, 0.1);
  border: 1px dashed var(--border-glow-cyan);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--cyan-light);
  margin-bottom: 20px;
}

/* Locked Offer Button State */
.btn-open-closer.limit-reached {
  background: rgba(239, 68, 68, 0.18) !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  color: #fca5a5 !important;
  box-shadow: none !important;
}

.btn-open-closer.limit-reached:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: #ef4444 !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4) !important;
}


