/**
 * Sales Expert Network Page CSS
 * AI Link Platform - 영업대표 찾기
 * 버전: 2.0 (프로필 모달 추가)
 */

/* ============================================
   Variables
   ============================================ */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --primary-bg: #eef2ff;
  
  --success: #10b981;
  --success-bg: #d1fae5;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  
  --gold: #fbbf24;
  --silver: #9ca3af;
  --bronze: #d97706;
  
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--gray-50); color: var(--gray-800); line-height: 1.6; }
.sales-page { min-height: 100vh; padding-top: 70px; }
.sales-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.sales-hero { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%); padding: 40px 24px; position: relative; overflow: hidden; }
.sales-hero::before { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.sales-hero::after { content: '👥'; position: absolute; top: 20%; right: 8%; font-size: 6rem; opacity: 0.15; }
.sales-hero-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.sales-hero-text h1 { font-size: 2rem; font-weight: 700; color: white; margin-bottom: 8px; }
.sales-hero-text p { font-size: 1rem; color: rgba(255,255,255,0.9); }
.sales-hero-text strong { color: #fef08a; }
.sales-alert-badge { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-xl); color: white; text-decoration: none; font-size: 0.9rem; transition: all 0.2s; }
.sales-alert-badge:hover { background: rgba(255,255,255,0.3); }
.sales-alert-badge strong { color: #fef08a; }

/* Filter */
.sales-filter-section { background: white; border-bottom: 1px solid var(--gray-100); padding: 20px 0; position: sticky; top: 70px; z-index: 90; }
.sales-filter-bar { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.sales-search { position: relative; flex: 1; min-width: 250px; }
.sales-search > i.fa-search { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); z-index: 1; pointer-events: none; }
.sales-search input { width: 100%; padding: 12px 110px 12px 44px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); font-size: 0.95rem; transition: all 0.2s; }
.sales-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
.sales-search.active input { border-color: var(--primary); }
.sales-search.highlight input { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3); transition: box-shadow 0.15s; }

/* 검색 바 — X 초기화 버튼 */
.sales-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: none; background: var(--gray-100);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray-500); font-size: 0.68rem; transition: 0.2s; z-index: 2;
}
.sales-search-clear:hover { background: var(--primary); color: white; }

/* 검색 바 — 인라인 결과 카운트 */
.sales-search-count {
  position: absolute; right: 42px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 0.72rem; color: var(--primary); font-weight: 600;
  background: var(--primary-bg); padding: 3px 8px; border-radius: 100px; z-index: 2;
  white-space: nowrap;
}

/* 자동완성 드롭다운 */
.sales-autocomplete {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); z-index: 100; max-height: 280px; overflow-y: auto;
}
.sales-ac-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer; transition: background 0.1s;
}
.sales-ac-item:hover { background: var(--primary-bg); }
.sales-ac-item:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.sales-ac-item:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.sales-ac-icon { font-size: 0.85rem; flex-shrink: 0; width: 22px; text-align: center; }
.sales-ac-text { flex: 1; font-size: 0.88rem; color: var(--gray-700); }
.sales-ac-text mark { background: #fef08a; color: var(--gray-800); border-radius: 2px; padding: 0 1px; }
.sales-ac-type { font-size: 0.68rem; color: var(--gray-400); flex-shrink: 0; }

/* 인기 태그 리스트 (동적) */
.popular-tags-list { display: flex; gap: 8px; flex-wrap: wrap; }
.sales-filters { display: flex; gap: 16px; flex-wrap: wrap; }
.sales-filter { display: flex; flex-direction: column; gap: 4px; }
.sales-filter label { font-size: 0.75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; }
.sales-filter select { padding: 10px 32px 10px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 0.9rem; color: var(--gray-700); background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") no-repeat right 8px center; background-size: 16px; cursor: pointer; appearance: none; }
.sales-filter select:focus { outline: none; border-color: var(--primary); }
.sales-result-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.sales-result-count { font-size: 0.9rem; color: var(--gray-600); }
.sales-result-count strong { color: var(--primary); font-weight: 700; }
.sales-view-modes { display: flex; gap: 4px; }
.view-mode-btn { width: 36px; height: 36px; border: 1px solid var(--gray-200); background: white; border-radius: var(--radius); color: var(--gray-400); cursor: pointer; transition: all 0.15s; }
.view-mode-btn:hover { border-color: var(--gray-300); color: var(--gray-600); }
.view-mode-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* Main */
.sales-main-section { padding: 32px 0 60px; }
.sales-main-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.sales-list-area { min-height: 400px; }
.sales-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.sales-card-grid.list-view { grid-template-columns: 1fr; }
.sales-card-grid.list-view .sales-card { flex-direction: row; align-items: center; }
.sales-card-grid.list-view .sales-card-avatar { width: 56px; height: 56px; font-size: 1.2rem; }

/* Card */
.sales-card { display: flex; flex-direction: column; background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 24px; transition: all 0.2s; cursor: pointer; }
.sales-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.sales-card-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.sales-card-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary)); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; font-weight: 700; flex-shrink: 0; position: relative; }
.sales-card-avatar.verified::after { content: '✓'; position: absolute; bottom: 0; right: 0; width: 20px; height: 20px; background: var(--success); border: 2px solid white; border-radius: 50%; font-size: 0.65rem; display: flex; align-items: center; justify-content: center; color: white; }
.sales-card-info { flex: 1; min-width: 0; }
.sales-card-name { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.sales-card-detail { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 8px; }
.sales-card-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.sales-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 500; }
.sales-badge.verified { background: var(--success-bg); color: var(--success); }
.sales-badge.procurement { background: #dbeafe; color: #2563eb; }
.sales-badge.top { background: #fef3c7; color: var(--bronze); }
.sales-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); margin-bottom: 16px; }
.sales-stat { text-align: center; }
.sales-stat-value { display: block; font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.sales-stat-label { font-size: 0.75rem; color: var(--gray-500); }
.sales-card-products { margin-bottom: 16px; }
.sales-card-products-label { font-size: 0.8rem; font-weight: 600; color: var(--gray-500); margin-bottom: 8px; }
.sales-product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sales-product-tag { padding: 4px 10px; background: var(--gray-100); border-radius: var(--radius); font-size: 0.8rem; color: var(--gray-600); }
.sales-product-tag.more { background: var(--primary-bg); color: var(--primary); }
.sales-card-quote { padding: 12px; background: var(--gray-50); border-radius: var(--radius); margin-bottom: 16px; font-size: 0.85rem; color: var(--gray-600); font-style: italic; border-left: 3px solid var(--primary-light); }
.sales-card-actions { display: flex; gap: 10px; }
.sales-card-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: var(--radius); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.15s; text-decoration: none; border: none; }
.sales-card-btn.primary { background: var(--primary); color: white; }
.sales-card-btn.primary:hover { background: var(--primary-dark); }
.sales-card-btn.secondary { background: white; border: 1px solid var(--gray-200); color: var(--gray-700); }
.sales-card-btn.secondary:hover { background: var(--gray-50); border-color: var(--gray-300); }

/* Sidebar */
.sales-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sales-sidebar-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 20px; }
.sales-sidebar-header { margin-bottom: 16px; }
.sales-sidebar-header h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.sales-sidebar-sub { font-size: 0.8rem; color: var(--gray-500); }
.sales-top-list { display: flex; flex-direction: column; gap: 12px; }
.sales-top-item { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--gray-50); border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: all 0.15s; }
.sales-top-item:hover { background: var(--gray-100); }
.sales-top-medal { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.sales-top-medal.gold { background: linear-gradient(135deg, #fef3c7, #fbbf24); }
.sales-top-medal.silver { background: linear-gradient(135deg, #f3f4f6, #9ca3af); }
.sales-top-medal.bronze { background: linear-gradient(135deg, #fed7aa, #d97706); }
.sales-top-info { flex: 1; }
.sales-top-name { font-size: 0.9rem; font-weight: 600; color: var(--gray-800); }
.sales-top-detail { font-size: 0.75rem; color: var(--gray-500); }
.sales-top-count { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.sales-sidebar-link { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gray-100); text-align: center; font-size: 0.85rem; color: var(--primary); text-decoration: none; }
.sales-sidebar-link:hover { text-decoration: underline; }
.sales-distribution { display: flex; flex-direction: column; gap: 12px; }
.sales-dist-item { display: flex; align-items: center; gap: 12px; }
.sales-dist-label { width: 100px; font-size: 0.85rem; color: var(--gray-600); }
.sales-dist-bar { flex: 1; height: 8px; background: var(--gray-100); border-radius: 4px; overflow: hidden; }
.sales-dist-bar-fill { height: 100%; background: var(--primary); border-radius: 4px; }
.sales-dist-count { width: 40px; text-align: right; font-size: 0.8rem; font-weight: 600; color: var(--gray-500); }
.sales-tips-card { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #93c5fd; }
.sales-tips-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 12px; }
.sales-tips-list { list-style: none; }
.sales-tips-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--gray-700); padding: 6px 0; }
.sales-tips-list i { color: var(--success); margin-top: 2px; }
.sales-login-prompt { text-align: center; }
.sales-login-icon { font-size: 2.5rem; margin-bottom: 12px; }
.sales-login-prompt h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.sales-login-prompt p { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 16px; }
.sales-login-btn { display: inline-block; padding: 12px 24px; background: var(--primary); color: white; border-radius: var(--radius-lg); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.sales-login-btn:hover { background: var(--primary-dark); }

/* Empty & Load More */
.sales-empty { text-align: center; padding: 60px 24px; }
.sales-empty-icon { font-size: 4rem; margin-bottom: 16px; }
.sales-empty h3 { font-size: 1.1rem; color: var(--gray-700); margin-bottom: 8px; }
.sales-empty p, .sales-empty-text { font-size: 0.9rem; color: var(--gray-500); text-align: center; padding: 16px 0; }

/* ============================================
   인기 키워드 칩 (Popular Tags)
   ============================================ */
.popular-tags-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.popular-tags-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
}

.popular-tag-chip {
  padding: 5px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: white;
  font-size: 0.8rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s;
}

.popular-tag-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.popular-tag-chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

/* 검색 중 태그 표시 */
.search-tag-indicator {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.active-search-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.clear-search-tag {
  width: 20px;
  height: 20px;
  border: none;
  background: var(--gray-200);
  color: var(--gray-500);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  vertical-align: middle;
  transition: all 0.15s;
}

.clear-search-tag:hover {
  background: var(--danger);
  color: white;
}

/* ============================================
   카드 내 키워드 태그
   ============================================ */
.sales-card-tags {
  margin-bottom: 16px;
}

.sales-card-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sales-keyword-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  color: #5b21b6;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.sales-keyword-tag i {
  font-size: 0.6rem;
  opacity: 0.6;
}

.sales-keyword-tag:hover {
  background: linear-gradient(135deg, #ddd6fe, #c7d2fe);
  transform: translateY(-1px);
}

.sales-keyword-tag.more {
  background: var(--gray-100);
  color: var(--gray-500);
  cursor: pointer;
}

.sales-keyword-tag.more:hover {
  transform: none;
  background: #F0EEFF;
  color: #6C5CE7;
}

/* PVM 모달 내 태그 (클릭 가능) */
.pvm-category.tag {
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  color: #5b21b6;
  transition: all 0.15s;
}

.pvm-category.tag:hover {
  background: linear-gradient(135deg, #ddd6fe, #c7d2fe);
  transform: translateY(-1px);
}

/* PPM 모달 내 태그 */
.ppm-category.tag {
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  color: #5b21b6;
}
.sales-load-more { text-align: center; margin-top: 24px; }
.sales-load-more-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); font-size: 0.95rem; color: var(--gray-600); cursor: pointer; transition: all 0.15s; }
.sales-load-more-btn:hover { background: var(--gray-50); border-color: var(--gray-300); }

/* Proposal Modal */
.sales-modal-overlay { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.sales-modal-overlay.open { display: flex; }
.sales-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.sales-modal-content { position: relative; background: white; border-radius: var(--radius-xl); width: 100%; max-width: 520px; max-height: 90vh; display: flex; flex-direction: column; animation: modalIn 0.25s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.sales-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--gray-100); }
.sales-modal-header h3 { font-size: 1.2rem; font-weight: 700; }
.sales-modal-close { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--gray-100); color: var(--gray-500); cursor: pointer; }
.sales-modal-close:hover { background: var(--gray-200); }
.sales-modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.proposal-target { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--gray-50); border-radius: var(--radius-lg); margin-bottom: 24px; }
.proposal-target-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1.2rem; }
.proposal-target-name { font-weight: 700; color: var(--gray-800); }
.proposal-target-detail { font-size: 0.85rem; color: var(--gray-500); }
.proposal-section { margin-bottom: 20px; }
.proposal-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--gray-700); margin-bottom: 10px; }
.proposal-label .required { color: var(--danger); }
.proposal-type-options { display: flex; gap: 10px; }
.proposal-type-option { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px; border: 2px solid var(--gray-200); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.15s; }
.proposal-type-option:hover { border-color: var(--gray-300); }
.proposal-type-option.selected { border-color: var(--primary); background: var(--primary-bg); }
.proposal-type-option .type-icon { font-size: 1.5rem; }
.proposal-type-option .type-text { font-size: 0.8rem; font-weight: 500; color: var(--gray-700); text-align: center; }
.proposal-section input, .proposal-section textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); font-size: 0.95rem; font-family: inherit; }
.proposal-section input:focus, .proposal-section textarea:focus { outline: none; border-color: var(--primary); }
.proposal-section textarea { height: 120px; resize: none; }
.proposal-char-count { text-align: right; font-size: 0.8rem; color: var(--gray-400); margin-top: 6px; }
.sales-modal-footer { display: flex; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--gray-100); }
.sales-modal-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius-lg); font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.15s; border: none; }
.sales-modal-btn.secondary { background: var(--gray-100); color: var(--gray-700); }
.sales-modal-btn.secondary:hover { background: var(--gray-200); }
.sales-modal-btn.primary { background: var(--primary); color: white; }
.sales-modal-btn.primary:hover { background: var(--primary-dark); }

/* Toast & Skeletons */
.sales-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); padding: 14px 28px; background: var(--gray-800); color: white; border-radius: var(--radius-lg); font-size: 0.9rem; opacity: 0; transition: all 0.3s; z-index: 10000; }
.sales-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.sales-card-skeleton, .sales-sidebar-skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-xl); }
.sales-card-skeleton { height: 320px; }
.sales-sidebar-skeleton { height: 60px; margin-bottom: 10px; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }


/* ============================================
   Profile View Modal (PVM)
   프로필 미리보기 모달 - 영업대표 찾기 전용
   ============================================ */

/* 오버레이 */
.pvm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.pvm-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 모달 컨테이너 */
.pvm-modal {
  background: #f8fafc;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pvm-overlay.show .pvm-modal {
  transform: translateY(0);
}

/* 헤더 */
.pvm-header {
  background: white;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pvm-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

.pvm-header-title i {
  color: var(--primary);
}

.pvm-close {
  width: 36px;
  height: 36px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pvm-close:hover {
  background: #e5e7eb;
  color: #374151;
}

/* 바디 */
.pvm-body {
  padding: 20px;
  padding-bottom: 30px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* 프로필 카드 */
.pvm-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 카드 헤더 */
.pvm-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e5e7eb;
}

.pvm-avatar-section {
  position: relative;
  flex-shrink: 0;
}

.pvm-avatar {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pvm-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pvm-verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: #16a34a;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pvm-info {
  flex: 1;
  min-width: 0;
}

.pvm-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.pvm-company {
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
}

.pvm-position {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 2px;
}

/* AI Link Score */
.pvm-score-section {
  text-align: center;
  flex-shrink: 0;
}

.pvm-score-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.pvm-score-badge.bronze {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white;
}

.pvm-score-badge.silver {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  color: white;
}

.pvm-score-badge.gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
}

.pvm-score-badge.platinum {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: white;
}

.pvm-score-label {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
}

.pvm-score-value {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.pvm-score-rank {
  font-size: 0.7rem;
  color: #6b7280;
}

/* 배지 */
.pvm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
}

.pvm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pvm-badge.role {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.pvm-badge.role.vendor {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
}

.pvm-badge.role.partner {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
}

.pvm-badge.verified {
  background: #dcfce7;
  color: #166534;
}

.pvm-badge.expert {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.pvm-badge.procurement {
  background: #e0e7ff;
  color: #3730a3;
}

/* 섹션 */
.pvm-section {
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}

.pvm-section:last-of-type {
  border-bottom: none;
}

.pvm-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
}

/* 전문 분야 */
.pvm-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pvm-category {
  padding: 6px 12px;
  background: #f3f4f6;
  color: #374151;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* 경력 */
.pvm-career-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.pvm-career-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #374151;
}

.pvm-career-item i {
  color: #9ca3af;
}

/* 자기소개 */
.pvm-introduction {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

/* 연락처 */
.pvm-contact-section {
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.pvm-contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pvm-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #374151;
}

.pvm-contact-item i {
  width: 20px;
  color: var(--primary);
}

.pvm-contact-hidden {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #9ca3af;
}

.pvm-contact-hidden i {
  color: #d1d5db;
}

/* 액션 버튼 */
.pvm-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.pvm-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none;
  text-align: center;
}

.pvm-action-btn.outline {
  background: white;
  border: 1px solid #d1d5db;
  color: #374151;
}

.pvm-action-btn.outline:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.pvm-action-btn.primary {
  background: var(--primary);
  color: white;
}

.pvm-action-btn.primary:hover {
  background: var(--primary-dark);
}

/* 하단 안내 */
.pvm-footer-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  margin-top: 16px;
}

.pvm-footer-notice.info {
  background: #eff6ff;
}

.pvm-footer-notice i {
  color: var(--primary);
  flex-shrink: 0;
}

.pvm-footer-notice span {
  flex: 1;
  font-size: 0.85rem;
  color: #374151;
}

.pvm-footer-btn {
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--primary-light);
  border-radius: 8px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}

.pvm-footer-btn:hover {
  background: var(--primary-bg);
}


/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .sales-main-grid { grid-template-columns: 1fr; }
  .sales-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sales-tips-card, .sales-login-prompt { grid-column: span 2; }
}

@media (max-width: 768px) {
  .sales-hero-inner { flex-direction: column; text-align: center; gap: 16px; }
  .sales-hero-text h1 { font-size: 1.6rem; }
  .sales-filter-bar { flex-direction: column; align-items: stretch; }
  .sales-search { min-width: auto; }
  .sales-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .sales-filter { min-width: 120px; }
  .sales-card-grid { grid-template-columns: 1fr; }
  .sales-sidebar { grid-template-columns: 1fr; }
  .sales-tips-card, .sales-login-prompt { grid-column: span 1; }
  .proposal-type-options { flex-direction: column; }
  .popular-tags-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .popular-tag-chip { flex-shrink: 0; }
  .popular-tags-list { flex-wrap: nowrap; }
  .sales-search input { padding-right: 90px; font-size: 0.88rem; }
  .sales-search-count { font-size: 0.65rem; right: 38px; }
  .sales-autocomplete { font-size: 0.85rem; }
}

@media (max-width: 576px) {
  .pvm-modal {
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
  }
  
  .pvm-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .pvm-info {
    text-align: center;
  }
  
  .pvm-badges {
    justify-content: center;
  }
  
  .pvm-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .sales-card-stats { grid-template-columns: 1fr; gap: 8px; }
  .sales-stat { display: flex; justify-content: space-between; align-items: center; text-align: left; }
}
/* ============================================
   v3.0 등급 뱃지 스타일 (영업대표 카드)
   ============================================ */
.sales-badge.grade-rookie {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 600;
}
.sales-badge.grade-reviewer {
  background: #eff6ff !important;
  color: #2563eb !important;
  border: 1px solid #93c5fd !important;
  font-weight: 600;
}
.sales-badge.grade-expert {
  background: #f5f3ff !important;
  color: #7c3aed !important;
  border: 1px solid #c4b5fd !important;
  font-weight: 600;
}
.sales-badge.grade-top {
  background: #fffbeb !important;
  color: #d97706 !important;
  border: 1px solid #fcd34d !important;
  font-weight: 600;
}

/* ═══════ Step1: 공유 버튼 ═══════ */
.sales-card-btn.icon-btn {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  flex: 0 0 36px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 50% !important;
  background: white;
  color: #9ca3af;
  font-size: 0.78rem;
  cursor: pointer;
  transition: 0.2s;
}
.sales-card-btn.icon-btn:hover {
  border-color: #6C5CE7;
  color: #6C5CE7;
  background: #F0EEFF;
  transform: scale(1.1);
}

/* ═══════ Step2: 활동 상태 점 ═══════ */
.sales-activity-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
  display: block;
}
.sales-card-avatar {
  position: relative;
}
.sales-activity-dot.today {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}
.sales-activity-dot.week {
  background: #fbbf24;
}
.sales-activity-dot.inactive {
  background: #d1d5db;
}

/* ═══════ Step3: 매칭도 ═══════ */
.sales-match-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin: 0 -4px;
  background: linear-gradient(90deg, #F0EEFF, #EEF2FF);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6C5CE7;
}
.sales-match-indicator i {
  font-size: 0.65rem;
  color: #FFD700;
}

/* ═══════ Step4: 홍보 인라인 ═══════ */
.sales-card-promos.compact {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  padding: 6px 0 0;
  border-top: 1px dashed #e5e7eb;
}
.sales-promo-inline {
  font-size: 0.72rem;
  color: #4b5563;
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.sales-promo-inline:hover {
  color: #6366f1;
}
.sales-promo-more-inline {
  font-size: 0.65rem;
  color: #6366f1;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 100px;
  transition: 0.15s;
}
.sales-promo-more-inline:hover {
  background: #F0EEFF;
}

/* 클릭 가능한 stat */
.sales-stat.clickable {
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}
.sales-stat.clickable:hover {
  background: #F0EEFF;
}
.sales-stat.clickable:hover .sales-stat-value {
  color: #6C5CE7;
}

/* ═══════ Step5: TOP 빈 상태 ═══════ */
.sales-top-empty {
  text-align: center;
  padding: 20px 12px;
}
.sales-top-empty-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.sales-top-empty p {
  font-size: 0.82rem;
  color: #6B7085;
  font-weight: 600;
  margin: 0 0 4px;
}
.sales-top-empty-sub {
  font-size: 0.72rem;
  color: #9ca3af;
  display: block;
  margin-bottom: 12px;
}
.sales-top-empty-cta {
  display: inline-block;
  padding: 7px 18px;
  background: #6C5CE7;
  color: white;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
.sales-top-empty-cta:hover {
  background: #5A4BD1;
  transform: translateY(-1px);
}

/* ═══════ Step6: 분야 분포 클릭 ═══════ */
.sales-dist-item.clickable {
  cursor: pointer;
  padding: 4px 6px;
  margin: -4px -6px;
  border-radius: 6px;
  transition: background 0.2s;
}
.sales-dist-item.clickable:hover {
  background: #F0EEFF;
}
.sales-dist-item.clickable:hover .sales-dist-label {
  color: #6C5CE7;
}
.sales-dist-item.clickable.active {
  background: #F0EEFF;
}
.sales-dist-item.clickable.active .sales-dist-label {
  color: #6C5CE7;
  font-weight: 700;
}
.sales-dist-item.clickable.active .sales-dist-bar-fill {
  background: #6C5CE7 !important;
}

/* ═══════ Step1-6 Responsive ═══════ */
@media (max-width: 768px) {
  .sales-match-indicator {
    font-size: 0.68rem;
    padding: 5px 10px;
  }
  .sales-card-btn.icon-btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }
  .sales-top-empty {
    padding: 16px 8px;
  }
}
/* ============================================
   모드별 컨텍스트 전환
   ============================================ */

/* 솔루션상담 > 전문가 찾기 모드 */
.mode-consult .sales-hero {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
}

.mode-consult .sales-hero::after {
  content: '🔍';
}