:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --text: #111827;
  --text-light: #6b7280;
  --border-light: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif; 
  background: linear-gradient(135deg, #f5f7ff 0%, #f0f0f0 100%); 
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==================== HEADER ==================== */
.header { 
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.nav { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 1rem 0;
}

.logo { 
  font-size: 1.75rem; 
  font-weight: 800; 
  background: linear-gradient(135deg, var(--primary), var(--secondary)); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo a { 
  text-decoration: none; 
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification-bell {
  position: relative;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.notification-bell:hover {
  background: var(--gray-50);
}

.notification-dot {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse 2s infinite;
  display: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.user-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.user-info:hover {
  background: var(--gray-50);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}

.user-name {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 14px;
}

.dropdown-icon {
  color: var(--gray-600);
  font-size: 12px;
  transition: transform 0.3s;
}

.user-info.active .dropdown-icon {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 1000;
  border: 1px solid var(--gray-100);
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  list-style: none;
  padding: 0.25rem 0;    /* ✅ 간격 축소: 8px → 4px (상하만) */
}

.dropdown-menu li a,
.dropdown-menu li button {
  display: block;        /* ✅ flex → block */
  width: 100%;
  padding: 0.5rem 1rem;  /* ✅ 간격 축소: 12px → 8px */
  text-align: left;
  color: var(--gray-700);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;       /* ✅ 고정 크기 */
}

.dropdown-menu li a:hover,
.dropdown-menu li button:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.dropdown-menu button.logout {
  color: var(--danger);
}

.dropdown-menu button.logout:hover {
  background: rgba(239, 68, 68, 0.05);
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0.25rem 0;     /* ✅ 간격 축소: 8px → 4px */
}

/* ==================== MAIN LAYOUT ==================== */
.main {
  padding: 2rem 0;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px); /* 화면 높이에서 상단 여백 제외 */
  overflow-y: auto; /* 세로 스크롤 활성화 */
  overflow-x: hidden; /* 가로 스크롤 숨김 */
}

/* 스크롤바 스타일 개선 (선택사항) */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.25rem;
  border-radius: 0.5rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.menu-item:hover {
  background: var(--gray-50);
  color: var(--primary);
  transform: translateX(2px);
}

.menu-item.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-md);
}

.menu-item.active .menu-badge {
  background: white;
  color: var(--primary);
}

.menu-icon {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

/* 카운터 배지 - 숫자 표시용 (빨간 원형) */
.menu-badge {
  position: absolute;
  right: 1rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 11px;
  padding: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* 카운터가 0이면 흐리게 표시 */
.menu-badge:empty,
.menu-badge[data-count="0"] {
  background: var(--gray-200);
  color: var(--gray-500);
  box-shadow: none;
}

/* 카운터가 10 이상이면 타원형으로 */
.menu-badge.badge-wide {
  width: auto;
  padding: 0 6px;
  border-radius: 10px;
}

/* ==================== 완성도 배지 (Progress Badge) ==================== */
.progress-badge {
  position: absolute;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  min-width: 36px;
  text-align: center;
  transition: all 0.3s ease;
}

/* 0~54% - 필수 미완료 (주황) */
.progress-badge.progress-low {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #d97706;
  border: 1px solid #fcd34d;
  animation: pulse-progress 2s infinite;
}

/* 55~99% - 기본 완료 (파랑) */
.progress-badge.progress-mid {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #2563eb;
  border: 1px solid #93c5fd;
}

/* 100% - 완료 (초록 체크) */
.progress-badge.progress-complete {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
  border: 1px solid #a7f3d0;
}

.progress-badge.progress-complete::before {
  content: '✓ ';
  font-weight: 700;
}

@keyframes pulse-progress {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.2); }
  50% { box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1); }
}

/* 호버 효과 */
.menu-item:hover .progress-badge {
  transform: scale(1.05);
}

/* ==================== CONTENT AREA ==================== */
.content-area {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  min-height: 600px;
}

.section {
  display: none;
}

.section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 1rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ==================== STATS GRID ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, white, var(--gray-50));
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-card .icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stat-card .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.stat-card .label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.stat-card .trend {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.stat-card .trend.down {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* ==================== SALES DASHBOARD ==================== */
.sales-dashboard {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.sales-dashboard h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
}

.sales-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.sales-metric {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
}

.sales-metric-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.sales-metric-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.sales-metric-change {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.sales-insights {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
}

.sales-insights h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.sales-insights ul {
  list-style: none;
  padding: 0;
}

.sales-insights li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sales-insights li:last-child {
  border-bottom: none;
}

/* ==================== PROFILE HEADER ==================== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 1rem;
  margin-bottom: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.profile-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary);
  box-shadow: var(--shadow-xl);
  z-index: 1;
}

.profile-info {
  z-index: 1;
  flex: 1;
}

.profile-info h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
}

.profile-info p {
  margin: 0.25rem 0;
  opacity: 0.9;
}

.profile-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
}

/* ==================== TABS ==================== */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  color: var(--gray-600);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
  position: relative;
}

.tab:hover {
  color: var(--primary);
  background: var(--gray-50);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05));
}

.tab .tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  padding: 0.125rem 0.375rem;
  background: var(--gray-200);
  border-radius: 0.75rem;
  font-size: 0.75rem;
  min-width: 20px;
}

.tab.active .tab-badge {
  background: var(--primary);
  color: white;
}

/* ==================== PROPOSAL TABS ==================== */
.proposal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: var(--primary);
  background: var(--gray-50);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.5rem;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.tab-btn.active .tab-count {
  background: var(--primary-dark);
}

.proposal-content {
  display: block;
}

.proposal-content.hidden {
  display: none;
}

/* ==================== FILTERS ==================== */
.proposal-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: 0.5rem;
  color: var(--gray-700);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.filter-btn:hover {
  background: var(--gray-200);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.filter-btn span {
  margin-left: 0.25rem;
  opacity: 0.7;
}

/* ==================== BUTTONS ==================== */
.btn {
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.btn-defer {
  background: var(--gray-600);
  color: white;
}

.btn-defer:hover {
  background: var(--gray-700);
}

.btn-resume {
  background: var(--primary);
  color: white;
}

.btn-resume:hover {
  background: var(--primary-dark);
}

.btn-message {
  background: var(--success);
  color: white;
}

.btn-message:hover {
  background: #059669;
}

.btn-cancel {
  background: var(--gray-600);
  color: white;
}

.btn-cancel:hover {
  background: var(--gray-700);
}

.btn-showroom {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
}

.btn-showroom:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.send-proposal-btn {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.send-proposal-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ==================== CARDS ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.item-card {
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: white;
  transition: all 0.3s;
  position: relative;
}

.item-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.item-card h4 {
  margin: 0 0 0.5rem 0;
  color: var(--gray-900);
  font-size: 1.125rem;
}

.item-card p {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0.5rem 0;
}

.item-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  gap: 1rem;
  flex-wrap: wrap;
}

.item-stats {
  display: flex;
  gap: 1rem;
}

.item-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.item-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ==================== PRODUCT STATUS ==================== */
.product-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

.status-badge.status-pending {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.status-badge.status-approved {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-badge.status-rejected {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-message {
  font-size: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.status-message.pending {
  background-color: #fff3cd;
  color: #856404;
  border-left: 3px solid #ffc107;
}

.status-message.approved {
  background-color: #d4edda;
  color: #155724;
  border-left: 3px solid #28a745;
}

.status-message.rejected {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 3px solid #dc3545;
}

.status-message.waiting {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-message.accepted {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==================== SHOWROOM ==================== */
.showroom-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.showroom-status.showroom-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.showroom-status.showroom-pending {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.product-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.zone-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.375rem;
  margin-bottom: 0.375rem;
}

.zones-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 1rem 0;
}

/* ==================== SHOWROOM APPLICATION ==================== */
.application-card {
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: white;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.application-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.application-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.application-product h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  color: var(--gray-900);
}

.application-product p {
  margin: 0.25rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.application-status-badge {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.application-status-badge.status-pending {
  background: linear-gradient(135deg, #fef3c7, #fde047);
  color: #92400e;
}

.application-status-badge.status-active {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

.application-status-badge.status-expired {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
}

.application-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.detail-item {
  text-align: center;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: 0.5rem;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-value {
  font-size: 1rem;
  color: var(--gray-900);
  font-weight: 700;
}

.application-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  margin: 1rem 0;
  background: linear-gradient(135deg, #fef3c7, #fde047);
  border: 2px solid #fbbf24;
  border-radius: 0.75rem;
}

.timer-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timer-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #b45309;
}

.application-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ==================== SHOWROOM MODAL ==================== */
.showroom-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-option {
  position: relative;
}

.category-option input[type="radio"] {
  display: none;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
  min-height: 100px;
}

.category-option input[type="radio"]:checked + .category-card {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
  box-shadow: var(--shadow-md);
}

.category-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.category-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: center;
}

.product-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.product-type-option {
  position: relative;
}

.product-type-option input[type="radio"] {
  display: none;
}

.product-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
  min-height: 80px;
}

.product-type-option input[type="radio"]:checked + .product-type-card {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: var(--shadow-sm);
}

.product-type-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.product-type-icon {
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}

.product-type-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: center;
}

.price-display {
  background: linear-gradient(135deg, var(--gray-50), white);
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.price-display h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--gray-900);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.price-row:last-child {
  border-bottom: none;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--gray-300);
}

.price-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.price-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}

.price-row:last-child .price-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.price-row:last-child .price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* ==================== PROPOSALS ==================== */
.proposal-card {
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: white;
  transition: all 0.3s;
  margin-bottom: 1rem;
}

.proposal-card.pending {
  border-left: 4px solid var(--warning);
}

.proposal-card.deferred {
  border-left: 4px solid var(--gray-600);
  background: var(--gray-50);
}

.proposal-card.accepted {
  border-left: 4px solid var(--success);
  background: rgba(16, 185, 129, 0.05);
}

.proposal-card.rejected {
  border-left: 4px solid var(--danger);
  background: rgba(239, 68, 68, 0.05);
  opacity: 0.7;
}

.proposal-card.sent {
  border-left: 4px solid var(--primary-light);
}

.proposal-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.proposal-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.type-emoji {
  font-size: 1.5rem;
}

.type-label {
  font-weight: 600;
  color: var(--gray-900);
}

.proposal-status {
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.proposal-body {
  margin-bottom: 1rem;
}

.proposal-from,
.proposal-to {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.proposal-from strong,
.proposal-to strong {
  font-size: 1rem;
  color: var(--gray-900);
}

.company-badge {
  padding: 0.125rem 0.5rem;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 0.375rem;
  font-size: 0.75rem;
}

.proposal-purpose {
  padding: 0.75rem;
  background: rgba(99, 102, 241, 0.05);
  border-left: 3px solid var(--primary);
  border-radius: 0.5rem;
  margin: 0.75rem 0;
  font-size: 0.875rem;
}

.proposal-purpose strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.25rem;
}

.proposal-message {
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: 0.5rem;
  margin: 0.75rem 0;
  font-style: italic;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.proposal-time {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.proposal-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.proposals-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recommendation-card {
  border: 2px solid var(--primary-light);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
  margin-bottom: 1rem;
  position: relative;
}

.recommendation-badge {
  position: absolute;
  top: -12px;
  right: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.success-rate {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.compatibility-reasons {
  background: var(--gray-50);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.compatibility-reasons h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--gray-900);
}

.compatibility-reasons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compatibility-reasons li {
  padding: 0.25rem 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.compatibility-reasons li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* ==================== MODAL ==================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalFadeIn 0.3s ease;
  position: relative;
}



/* 일반 모달 닫기 버튼 - 개선 */
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid white;
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  z-index: 10;
}

.modal-close-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.modal-close-btn:active {
  transform: scale(0.9) rotate(90deg);
}

.modal-close-btn i {
  font-size: 1.5rem;
  line-height: 1;
}


@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* 메시지 모달의 기존 닫기 버튼 스타일 개선 */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid white;
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  z-index: 10;
}

.modal-close:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.modal-close:active {
  transform: scale(0.9) rotate(90deg);
}

.modal-close i {
  font-size: 1.5rem;
  line-height: 1;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.5rem 0;
}

.modal-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

.modal-section {
  margin-bottom: 1.5rem;
}

.modal-section:last-of-type {
  margin-bottom: 0;
}

.modal-section h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  color: var(--gray-900);
}

.action-card {
  background: linear-gradient(135deg, var(--gray-50), white);
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.action-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.action-card strong {
  display: block;
  margin: 0.5rem 0 0.25rem;
  color: var(--gray-900);
}

.action-card small {
  color: var(--text-light);
  font-size: 0.75rem;
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-label.required::after {
  content: " *";
  color: var(--danger);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: white;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
  margin-top: 0.25rem;
  cursor: pointer;
}

.checkbox-item label {
  font-size: 0.875rem;
  color: var(--gray-700);
  cursor: pointer;
  line-height: 1.5;
}

.template-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.template-option {
  position: relative;
}

.template-option input[type="radio"] {
  display: none;
}

.template-option label {
  display: block;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.template-option input[type="radio"]:checked + label {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.template-option label:hover {
  border-color: var(--primary-light);
}

.template-option strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gray-900);
  font-size: 0.9rem;
}

.template-option small {
  color: var(--text-light);
  font-size: 0.75rem;
}

.ai-suggestion {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid var(--primary-light);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
}

.ai-suggestion-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ai-suggestion-header strong {
  color: var(--primary);
  font-size: 0.9rem;
}

.ai-suggestion p {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.5;
  margin: 0;
}

.info-box {
  background: var(--gray-50);
  border-left: 3px solid var(--info);
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.info-box strong {
  color: var(--info);
  display: block;
  margin-bottom: 0.5rem;
}

.info-box ul {
  margin: 0.5rem 0 0 1.5rem;
  padding: 0;
}

.info-box li {
  margin: 0.25rem 0;
}

/* ==================== ACTIVITY TIMELINE ==================== */
.activity-timeline {
  position: relative;
  padding-left: 2rem;
}

.activity-timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 50%;
}

.timeline-content {
  background: var(--gray-50);
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 3px solid var(--primary);
}

.timeline-content h5 {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  color: var(--gray-900);
}

.timeline-content p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

.timeline-time {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ==================== SETTINGS ==================== */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 24px;
  background: var(--gray-300);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: var(--shadow-sm);
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-info h4 {
  margin: 0 0 0.25rem 0;
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.95rem;
}

.setting-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.empty-state p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ==================== LOADING ==================== */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

.loading::after {
  content: '...';
  animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.proposal-toast:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.5) !important;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ==================== UTILITY ==================== */
.hidden {
  display: none !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 240px 1fr;
  }
  
  .sales-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .modal-content {
    padding: 1.5rem;
    max-width: 95%;
  }
  
  .tabs {
    overflow-x: scroll;
  }

  .proposal-toast {
    top: 1rem !important;
    right: 1rem !important;
    left: 1rem !important;
    min-width: auto !important;
    max-width: none !important;
  }

  .template-selector {
    grid-template-columns: 1fr;
  }

  .sales-metrics {
    grid-template-columns: 1fr;
  }
  
  .showroom-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .application-details {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .item-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .item-actions .btn-sm {
    flex: 0 1 auto;
    min-width: 70px;
  }
  
  .item-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .item-stats {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .profile-info h2 {
    font-size: 1.5rem;
  }
  
  .showroom-category-grid,
  .product-type-grid {
    grid-template-columns: 1fr;
  }
  
  .application-details {
    grid-template-columns: 1fr;
  }
  
  .template-selector {
    grid-template-columns: 1fr;
  }
  
  .item-card {
    padding: 1rem;
  }
  
  .item-card h4 {
    font-size: 1rem;
  }
  
  .btn-sm {
    font-size: 0.8rem;
    padding: 0.375rem 0.625rem;
  }
  
  .status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
  }
}
/* ========================================
   💬 메시징 시스템 CSS
   mypage.css 파일 맨 끝에 추가하세요!
   ======================================== */

/* ==================== MESSAGE TABS ==================== */
.message-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
}

.message-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.message-tab:hover {
  color: var(--primary);
  background: var(--gray-50);
}

.message-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05));
}

.message-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.5rem;
  background: var(--gray-200);
  color: var(--gray-700);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.message-tab.active .message-tab-count {
  background: var(--primary);
  color: white;
}

/* ==================== MESSAGE FILTERS ==================== */
.message-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.message-filter-btn {
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: 0.5rem;
  color: var(--gray-700);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.message-filter-btn:hover {
  background: var(--gray-200);
}

.message-filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ==================== MESSAGE CARD ==================== */
.message-card {
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: white;
  transition: all 0.3s;
  margin-bottom: 1rem;
  position: relative;
}

.message-card.unread {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), white);
}

.message-card.read {
  opacity: 0.8;
}

.message-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.message-card.sent {
  border-left: 4px solid var(--info);
}

/* ==================== MESSAGE HEADER ==================== */
.message-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-100);
}

.message-from,
.message-to {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.message-from strong,
.message-to strong {
  font-size: 1rem;
  color: var(--gray-900);
}

.message-email {
  font-size: 0.75rem;
  color: var(--text-light);
}

.message-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ==================== MESSAGE STATUS ==================== */
.message-status {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.message-status.unread {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.1));
  color: var(--primary);
  border: 1px solid var(--primary-light);
  animation: pulse 2s infinite;
}

.message-status.read {
  background: var(--gray-100);
  color: var(--gray-600);
}

.message-status.replied {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.1));
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.message-status.pending {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.1));
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ==================== MESSAGE BODY ==================== */
.message-body {
  margin-bottom: 1rem;
}

.message-product {
  padding: 0.5rem 0.75rem;
  background: var(--gray-50);
  border-left: 3px solid var(--primary);
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.message-product strong {
  color: var(--primary);
  font-weight: 600;
}

.message-content {
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: 0.5rem;
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0.75rem 0;
}

.message-product-name {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.85rem;
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ==================== MESSAGE ACTIONS ==================== */
.message-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ==================== MESSAGE DETAIL MODAL ==================== */
.message-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.message-detail-modal.hidden {
  display: none;
}

.message-detail-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalFadeIn 0.3s ease;
}

.message-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--gray-100);
  position: relative;
}



/* 메시지 모달 닫기 버튼 - 개선 */
.message-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid white;
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  z-index: 10;
}

.message-close-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.message-close-btn:active {
  transform: scale(0.9) rotate(90deg);
}

.message-close-btn i {
  font-size: 1.5rem;
  line-height: 1;
}

.message-detail-from {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.message-detail-from i {
  font-size: 1.5rem;
  color: var(--primary);
}

.message-detail-from strong {
  display: block;
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.message-detail-from p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.message-detail-time {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.message-detail-time i {
  color: var(--gray-400);
}

.message-detail-product {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
  border-left: 3px solid var(--primary);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.message-detail-product i {
  color: var(--primary);
  font-size: 1.25rem;
}

.message-detail-product strong {
  color: var(--primary);
  margin-right: 0.5rem;
}

.message-detail-content-section {
  background: var(--gray-50);
  padding: 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.message-detail-content-section h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  color: var(--gray-900);
}

.message-detail-content-section h4 i {
  color: var(--primary);
}

.message-detail-content-section p {
  margin: 0;
  line-height: 1.6;
  color: var(--gray-700);
  white-space: pre-wrap;
}

/* ==================== REPLY SECTION ==================== */
.reply-section {
  border-top: 2px solid var(--gray-100);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.reply-section h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--gray-900);
}

.reply-textarea {
  width: 100%;
  min-height: 150px;
  padding: 0.875rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s;
}

.reply-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}




.reply-char-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

.reply-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

/* ==================== MESSAGE LIST ==================== */
.messages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.messages-content {
  display: block;
}

.messages-content.hidden {
  display: none;
}

/* ==================== MESSAGE BADGE (사이드바) ==================== */
#messageBadge {
  position: absolute;
  right: 1rem;
  background: var(--success);
  color: white;
  font-size: 0.7rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.75rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  display: none;
  align-items: center;
  justify-content: center;
  animation: badgePulse 2s ease-in-out infinite;
}

/* ==================== MESSAGE TOAST ==================== */
.message-toast {
  position: fixed;
  top: 5rem;
  right: 2rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
  z-index: 10000;
  min-width: 320px;
  max-width: 420px;
  animation: slideInRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
}

.message-toast:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(16, 185, 129, 0.5) !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .message-detail-content {
    padding: 1.5rem;
    max-width: 95%;
  }
  
  .message-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .message-badges {
    width: 100%;
  }
  
  .message-actions {
    width: 100%;
  }
  
  .message-actions .btn-sm {
    flex: 1;
  }
  
  .message-toast {
    top: 1rem !important;
    right: 1rem !important;
    left: 1rem !important;
    min-width: auto !important;
    max-width: none !important;
  }
  
  .reply-actions {
    flex-direction: column;
  }
  
  .reply-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .message-tabs {
    overflow-x: auto;
  }
  
  .message-tab {
    flex: 0 0 auto;
    min-width: 150px;
  }
  
  .message-filters {
    overflow-x: auto;
  }
  
  .message-filter-btn {
    flex: 0 0 auto;
  }
}

/* ========================================
   메시징 시스템 CSS 끝
   ======================================== */

/* ============================================================
   STEP 8: 알림 상태 배지 및 경고 스타일 (추가됨)
   ============================================================ */

/* 알림 상태 배지 */
.notification-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.notification-enabled {
    background: #d4edda;
    color: #155724;
}

.notification-disabled {
    background: #f8d7da;
    color: #721c24;
}

.notification-unknown {
    background: #e2e3e5;
    color: #383d41;
}

/* 알림 경고 메시지 */
.notification-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: none;
}

.notification-warning.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.notification-warning-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.notification-warning-icon {
    font-size: 24px;
}

.notification-warning-title {
    font-weight: 700;
    color: #856404;
    margin: 0;
}

.notification-warning-content {
    color: #856404;
    line-height: 1.6;
    font-size: 14px;
}

.notification-warning-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.notification-warning-content li {
    margin: 5px 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 메시지 목록의 알림 상태 표시 */
.message-notification-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.message-notification-status.enabled {
    background: #d4edda;
    color: #155724;
}

.message-notification-status.disabled {
    background: #f8d7da;
    color: #721c24;
}

/* 상대방 정보 카드 내 알림 상태 */
.recipient-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.recipient-info-badge.enabled {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.recipient-info-badge.disabled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 툴팁 스타일 */
.notification-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.notification-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
}

.notification-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ============================================================
   STEP 8 스타일 끝
   ============================================================ *//* ========================================
   환영 모달 (Onboarding Modal) 스타일
   mypage.css 파일 맨 아래에 추가하세요
   ======================================== */

/* 온보딩 모달 오버레이 */
.onboarding-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.onboarding-modal.show {
  opacity: 1;
  visibility: visible;
}

/* 모달 컨텐츠 */
.onboarding-content {
  background: white;
  border-radius: 24px;
  padding: 48px;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
}

.onboarding-modal.show .onboarding-content {
  transform: scale(1);
}

/* 헤더 */
.onboarding-header {
  text-align: center;
  margin-bottom: 40px;
}

.onboarding-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.2;
}

.onboarding-header p {
  font-size: 18px;
  color: #64748b;
  font-weight: 500;
}

/* 환영 이모지 */
.onboarding-emoji {
  font-size: 72px;
  margin-bottom: 24px;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 단계 섹션 */
.onboarding-steps {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.onboarding-step {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: default;
}

.onboarding-step:hover {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #60a5fa;
  transform: translateX(8px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
}

/* 단계 번호 */
.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* 단계 내용 */
.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-description {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.step-time {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde047 100%);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  border: 1px solid #fbbf24;
}

/* 특징 카드 (고객용) */
.onboarding-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.feature-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #60a5fa;
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.2);
}

.feature-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

/* 버튼 영역 */
.onboarding-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.onboarding-actions button {
  flex: 1;
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-secondary {
  background: white;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

/* 하단 안내 */
.onboarding-skip-notice {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.onboarding-skip-notice small {
  color: #94a3b8;
  font-size: 14px;
}

/* 닫기 버튼 (X) */
.onboarding-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #64748b;
  transition: all 0.3s ease;
  font-weight: 700;
}

.onboarding-close:hover {
  background: #e2e8f0;
  color: #1e293b;
  transform: rotate(90deg);
}

/* 반응형 - 태블릿 */
@media (max-width: 768px) {
  .onboarding-content {
    padding: 32px 24px;
    max-width: 90%;
    margin: 0 16px;
  }

  .onboarding-header h2 {
    font-size: 26px;
  }

  .onboarding-header p {
    font-size: 16px;
  }

  .onboarding-emoji {
    font-size: 60px;
  }

  .onboarding-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .onboarding-step {
    flex-direction: column;
    gap: 16px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .step-content h3 {
    font-size: 17px;
  }

  .step-description {
    font-size: 14px;
  }
}

/* 반응형 - 모바일 */
@media (max-width: 480px) {
  .onboarding-content {
    padding: 24px 20px;
    border-radius: 16px;
    max-height: 90vh;
  }

  .onboarding-header h2 {
    font-size: 22px;
  }

  .onboarding-emoji {
    font-size: 48px;
  }

  .onboarding-actions {
    flex-direction: column;
  }

  .onboarding-actions button {
    width: 100%;
  }
}

/* 스크롤바 커스텀 */
.onboarding-content::-webkit-scrollbar {
  width: 8px;
}

.onboarding-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.onboarding-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 10px;
}

.onboarding-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}
/* ========================================
   메뉴 툴팁 스타일 (Menu Tooltip Styles)
   mypage.css에 추가하세요
   ======================================== */

/* 메뉴 도움말 아이콘 */
.menu-help {
  margin-left: auto;
  opacity: 0.4;
  cursor: help;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 50%;
}

.menu-help:hover {
  opacity: 1;
  background: rgba(99, 102, 241, 0.1);
  transform: scale(1.1);
}

.menu-help svg {
  display: block;
  color: currentColor;
}

/* 메뉴 아이템에 help 아이콘이 있을 때 레이아웃 조정 */
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.menu-item .menu-icon {
  flex-shrink: 0;
}

.menu-item span:not(.menu-icon):not(.menu-badge):not(.menu-help) {
  flex: 1;
}

.menu-item .menu-badge {
  flex-shrink: 0;
}

.menu-item .menu-help {
  flex-shrink: 0;
  margin-left: 0;
}

/* 툴팁 */
.menu-tooltip {
  position: fixed;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 250px;
  z-index: 10001;
  pointer-events: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.2s ease;
}

.menu-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

/* 툴팁 화살표 (선택사항) */
.menu-tooltip::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 6px 6px 0;
  border-color: transparent #1e293b transparent transparent;
}

/* 툴팁이 왼쪽에 있을 때 */
.menu-tooltip.left::before {
  left: auto;
  right: -6px;
  border-width: 6px 0 6px 6px;
  border-color: transparent transparent transparent #1e293b;
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
  .menu-tooltip {
    max-width: 200px;
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .menu-help {
    padding: 2px;
  }
  
  .menu-help svg {
    width: 12px;
    height: 12px;
  }
}

/* 다크 모드 대응 (선택사항) */
@media (prefers-color-scheme: dark) {
  .menu-tooltip {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  }
}
/* ========================================
   Empty State 스타일 (Empty State Styles)
   mypage.css에 추가하세요
   ======================================== */

/* Empty State 컨테이너 */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  margin: 40px 0;
  border: 2px dashed #e2e8f0;
  transition: all 0.3s ease;
}

.empty-state:hover {
  border-color: #cbd5e1;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Empty 아이콘 */
.empty-icon {
  font-size: 80px;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
  display: inline-block;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Empty 제목 */
.empty-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Empty 설명 */
.empty-description {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* 액션 영역 */
.empty-action {
  margin: 32px 0;
}

/* Empty State 액션 버튼 */
.btn-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-empty-action:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.btn-empty-action:active {
  transform: translateY(0);
}

.btn-empty-action .action-icon {
  font-size: 20px;
}

/* 팁 영역 */
.empty-tips {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px dashed #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 팁 아이템 */
.tip-item {
  text-align: left;
  padding: 12px 20px;
  background: white;
  border-radius: 10px;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.tip-item:hover {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
  transform: translateX(4px);
}

/* 반응형 - 태블릿 */
@media (max-width: 768px) {
  .empty-state {
    padding: 60px 30px;
    margin: 30px 0;
  }
  
  .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
  }
  
  .empty-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .empty-description {
    font-size: 15px;
    margin-bottom: 24px;
  }
  
  .btn-empty-action {
    padding: 14px 28px;
    font-size: 15px;
  }
  
  .empty-tips {
    margin-top: 32px;
    padding-top: 24px;
  }
  
  .tip-item {
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* 반응형 - 모바일 */
@media (max-width: 480px) {
  .empty-state {
    padding: 40px 20px;
    margin: 20px 0;
    border-radius: 16px;
  }
  
  .empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
  }
  
  .empty-title {
    font-size: 18px;
  }
  
  .empty-description {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .btn-empty-action {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
  
  .empty-tips {
    margin-top: 24px;
    padding-top: 20px;
    gap: 10px;
  }
  
  .tip-item {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* 섹션별 커스텀 스타일 */

/* 제품 Empty State */
.empty-state[data-section="products"] {
  background: linear-gradient(135deg, #fef3c7 0%, #fde047 100%);
  border-color: #fbbf24;
}

.empty-state[data-section="products"] .btn-empty-action {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.empty-state[data-section="products"] .btn-empty-action:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

/* 쇼룸 Empty State */
.empty-state[data-section="showroomApplications"] {
  background: linear-gradient(135deg, #fae8ff 0%, #f5d0fe 100%);
  border-color: #d946ef;
}

.empty-state[data-section="showroomApplications"] .btn-empty-action {
  background: linear-gradient(135deg, #d946ef 0%, #a21caf 100%);
  box-shadow: 0 4px 16px rgba(217, 70, 239, 0.3);
}

/* 네트워킹 Empty State */
.empty-state[data-section="proposals"],
.empty-state[data-section="connections"] {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #60a5fa;
}

/* 메시지 Empty State */
.empty-state[data-section="messages"] {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #34d399;
}

/* 로딩 상태 */
.empty-state.loading {
  opacity: 0.6;
  pointer-events: none;
}

.empty-state.loading .empty-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 다크 모드 대응 */
@media (prefers-color-scheme: dark) {
  .empty-state {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #475569;
  }
  
  .empty-title {
    color: #f1f5f9;
  }
  
  .empty-description {
    color: #cbd5e1;
  }
  
  .tip-item {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
  }
  
  .tip-item:hover {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    border-color: #64748b;
  }
}/* ============================================================================
   Phase 2: 진행률 체크리스트 스타일
   ============================================================================ */

/* 체크리스트 카드 */
.progress-checklist-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.progress-checklist-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* 헤더 */
.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checklist-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checklist-icon {
    font-size: 24px;
    line-height: 1;
}

.checklist-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.checklist-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* 배지 */
.checklist-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.checklist-badge-progress {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* 진행률 바 */
.checklist-progress-bar {
    position: relative;
    height: 32px;
    background: #f3f4f6;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 16px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

/* 진행률 변경 시 퍼센트 텍스트 강조 */
.progress-percentage.updated {
    animation: percentPulse 0.6s ease;
}

@keyframes percentPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        color: #3b82f6;
    }
}

/* 체크리스트 항목들 */
.checklist-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.checklist-item:hover {
    background: #f9fafb;
}

.checklist-item.completed {
    background: #f0fdf4;
    border-color: #d1fae5;
}

.checklist-item.completed:hover {
    background: #dcfce7;
}

/* 🎉 방금 완료된 항목 축하 애니메이션 */
.checklist-item.just-completed {
    animation: celebrate 0.6s ease;
}

@keyframes celebrate {
    0%, 100% { 
        transform: scale(1); 
    }
    25% { 
        transform: scale(1.05) rotate(2deg); 
    }
    50% { 
        transform: scale(1.08); 
    }
    75% { 
        transform: scale(1.05) rotate(-2deg); 
    }
}

/* 체크박스 체크 애니메이션 */
.checklist-item.completed .item-checkbox svg {
    animation: checkPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkPop {
    0% { 
        transform: scale(0); 
        opacity: 0;
    }
    50% { 
        transform: scale(1.2); 
    }
    100% { 
        transform: scale(1); 
        opacity: 1;
    }
}

/* 체크박스 */
.item-checkbox {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.item-checkbox svg {
    color: #10b981;
}

.checkbox-empty {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: block;
    transition: all 0.2s ease;
}

.checklist-item:hover .checkbox-empty {
    border-color: #3b82f6;
}

/* 항목 콘텐츠 */
.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.checklist-item.completed .item-title {
    color: #059669;
}

.item-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* 액션 버튼 */
.item-action-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.item-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.item-action-btn:active {
    transform: translateY(0);
}

/* 완료 축하 메시지 */
.checklist-completion {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    text-align: center;
    border: 2px solid #fbbf24;
    animation: completionSlideIn 0.5s ease-out;
}

@keyframes completionSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.completion-message {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
    animation: completionTextBounce 0.6s ease 0.2s backwards;
}

@keyframes completionTextBounce {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.completion-next {
    font-size: 14px;
    color: #b45309;
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 완료 토스트 */
.completion-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.completion-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 24px;
    line-height: 1;
}

.toast-message {
    font-size: 15px;
    font-weight: 600;
}

/* 반응형 - 태블릿 */
@media (max-width: 768px) {
    .progress-checklist-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .checklist-title h3 {
        font-size: 18px;
    }
    
    .checklist-icon {
        font-size: 22px;
    }
    
    .checklist-item {
        flex-wrap: wrap;
        padding: 14px;
    }
    
    .item-action-btn {
        width: 100%;
        margin-top: 12px;
        margin-left: 40px;
        text-align: center;
    }
    
    .item-content {
        flex: 1;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 480px) {
    .progress-checklist-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .checklist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .checklist-title {
        gap: 8px;
    }
    
    .checklist-title h3 {
        font-size: 16px;
    }
    
    .checklist-icon {
        font-size: 20px;
    }
    
    .checklist-count {
        font-size: 13px;
    }
    
    .checklist-progress-bar {
        height: 28px;
        margin-bottom: 20px;
    }
    
    .progress-percentage {
        font-size: 13px;
    }
    
    .checklist-item {
        padding: 12px;
        gap: 12px;
    }
    
    .item-title {
        font-size: 14px;
    }
    
    .item-description {
        font-size: 12px;
    }
    
    .item-action-btn {
        margin-left: 36px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .completion-message {
        font-size: 15px;
    }
    
    .completion-next {
        font-size: 13px;
    }
    
    .completion-toast {
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(-100px);
    }
    
    .completion-toast.show {
        transform: translateX(0) translateY(0);
    }
}

/* 다크모드 지원 */
@media (prefers-color-scheme: dark) {
    .progress-checklist-card {
        background: #1f2937;
        border-color: #374151;
    }
    
    .checklist-title h3 {
        color: #f9fafb;
    }
    
    .checklist-count {
        color: #9ca3af;
    }
    
    .checklist-progress-bar {
        background: #374151;
    }
    
    .progress-percentage {
        color: #f9fafb;
    }
    
    .checklist-item {
        border-color: transparent;
    }
    
    .checklist-item:hover {
        background: #374151;
    }
    
    .checklist-item.completed {
        background: #064e3b;
        border-color: #065f46;
    }
    
    .checklist-item.completed:hover {
        background: #065f46;
    }
    
    .item-title {
        color: #f9fafb;
    }
    
    .checklist-item.completed .item-title {
        color: #34d399;
    }
    
    .item-description {
        color: #9ca3af;
    }
    
    .checkbox-empty {
        border-color: #6b7280;
    }
    
    .checklist-item:hover .checkbox-empty {
        border-color: #60a5fa;
    }
    
    .checklist-completion {
        background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
        border-color: #b45309;
    }
    
    .completion-message {
        color: #fde68a;
    }
    
    .completion-next {
        color: #fcd34d;
    }
}

/* 인쇄 시 숨김 */
@media print {
    .progress-checklist-card {
        display: none;
    }
}
/* ==================== 취급 제품 - 태그 제품 카드 ==================== */

/* 태그 제품 리스트 그리드 */
.tags-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* 태그 제품 카드 */
.tag-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  max-height: 450px;  /* 최대 높이 제한 */
}

.tag-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

/* 태그 아이콘 영역 */
.tag-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  flex-shrink: 0;
}

.tag-icon i {
  font-size: 2.5rem;
  color: var(--info);
}

/* 태그 정보 영역 */
.tag-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tag-info h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

/* 태그 메타 정보 */
.tag-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.tag-meta i {
  font-size: 0.875rem;
  margin-right: 0.25rem;
}

/* 카테고리 배지 */
.tag-category {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-weight: 500;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* 태그 메모 */
.tag-note {
  font-size: 0.875rem;
  color: var(--text-light);
  background: var(--gray-50);
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-top: 0.25rem;
  line-height: 1.5;
  border-left: 3px solid var(--info);
  display: flex;
  gap: 0.5rem;
}

.tag-note i {
  color: var(--info);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* 태그 액션 버튼 */
.tag-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.btn-edit-tag,
.btn-remove-tag {
  flex: 1;
  padding: 0.625rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.btn-edit-tag {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-edit-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-edit-tag:active {
  transform: translateY(0);
}

.btn-remove-tag {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-remove-tag:hover {
  background: var(--danger);
  color: white;
  transform: translateY(-1px);
}

.btn-remove-tag:active {
  transform: translateY(0);
}

.btn-edit-tag i,
.btn-remove-tag i {
  font-size: 1.125rem;  /* 아이콘 크기 증가 (1rem → 1.125rem) */
  line-height: 1;  /* 아이콘 중앙 정렬 */
}

/* 빈 상태 개선 */
.tags-list .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
  background: var(--gray-50);
  border-radius: 0.75rem;
  border: 2px dashed var(--gray-300);
}

.tags-list .empty-state i {
  font-size: 4rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
  display: block;
}

.tags-list .empty-state h4 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.tags-list .empty-state p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ==================== 반응형 디자인 ==================== */

@media (max-width: 1024px) {
  .tags-list {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .tags-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tag-card {
    padding: 1.25rem;
  }
  
  .tag-icon {
    width: 60px;
    height: 60px;
  }
  
  .tag-icon i {
    font-size: 2rem;
  }
  
  .tag-info h5 {
    font-size: 1rem;
  }
  
  .tag-actions {
    padding-top: 0.75rem;
  }
  
  .btn-edit-tag,
  .btn-remove-tag {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .tag-card {
    padding: 1rem;
  }
  
  .tag-note {
    padding: 0.625rem;
    font-size: 0.8rem;
  }
}

/* ==================== 플랫폼 제품 카드 (일관성 위해 추가) ==================== */

/* 플랫폼 제품 그리드 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* 플랫폼 제품 카드 */
.product-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  max-height: 450px;  /* 최대 높이 제한 */
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

/* 플랫폼 제품 배지 */
.product-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

/* 플랫폼 제품 이미지 */
.product-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--gray-50);
}

/* 플랫폼 제품 바디 */
.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.product-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.product-card-manufacturer {
  font-size: 0.875rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.product-card-manufacturer i {
  color: var(--gray-400);
}

.product-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}

/* 플랫폼 제품 푸터 */
.product-card-footer {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
}

.btn-view-product,
.btn-remove-product {
  padding: 0.625rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.btn-view-product {
  flex: 1;
  background: var(--primary);
  color: white;
}

.btn-view-product:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-remove-product {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.625rem 0.875rem;
  min-width: 44px;  /* 최소 터치 영역 확보 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-product i {
  font-size: 1.25rem;  /* 아이콘 크기 더 증가 (1.125 → 1.25rem) */
  color: var(--gray-700);  /* 아이콘 색상 명시 */
  line-height: 1;  /* 아이콘 중앙 정렬 */
}

.btn-remove-product:hover {
  background: var(--danger);
  color: white;
  transform: translateY(-1px);
}

.btn-remove-product:hover i {
  color: white;  /* 호버 시 아이콘도 흰색 */
}

/* 플랫폼 제품 빈 상태 */
.products-grid .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
  background: var(--gray-50);
  border-radius: 0.75rem;
  border: 2px dashed var(--gray-300);
}

.products-grid .empty-state i {
  font-size: 4rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
  display: block;
}

.products-grid .empty-state h4 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.products-grid .empty-state p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ==================== 로딩 상태 ==================== */

.loading,
.loading-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.loading-state .spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== 다크모드 지원 (선택사항) ==================== */

@media (prefers-color-scheme: dark) {
  .tag-card,
  .product-card {
    background: #1f2937;
    border-color: #374151;
  }
  
  .tag-card:hover,
  .product-card:hover {
    border-color: #60a5fa;
  }
  
  .tag-icon {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  }
  
  .tag-icon i {
    color: #93c5fd;
  }
  
  .tag-info h5,
  .product-card-title {
    color: #f9fafb;
  }
  
  .tag-meta,
  .product-card-manufacturer {
    color: #9ca3af;
  }
  
  .tag-category {
    background: #1e40af;
    color: #bfdbfe;
  }
  
  .tag-note {
    background: #374151;
    color: #d1d5db;
    border-left-color: #3b82f6;
  }
  
  .tag-actions,
  .product-card-footer {
    border-top-color: #374151;
  }
  
  .btn-edit-tag,
  .btn-remove-product {
    background: #374151;
    color: #d1d5db;
  }
  
  .btn-edit-tag:hover {
    background: var(--primary);
    color: white;
  }
  
  .btn-remove-tag:hover,
  .btn-remove-product:hover {
    background: var(--danger);
    color: white;
  }
  
  .empty-state {
    background: #1f2937;
    border-color: #4b5563;
  }
  
  .empty-state i {
    color: #4b5563;
  }
  
  .empty-state h4 {
    color: #f9fafb;
  }
  
  .empty-state p {
    color: #9ca3af;
  }
  
  .product-card-image {
    background: #374151;
  }
  
  .product-card-price {
    color: #a5b4fc;
  }
}
/* ==================== STATUS INDICATOR ==================== */
.status-indicator {
  position: absolute;
  right: 1rem;
  display: none; /* 기본적으로 숨김 */
  width: auto;
  height: auto;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

/* 완료 상태 - 초록색 체크 배지 */
.status-indicator.status-complete {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
  border: 1px solid #a7f3d0;
}

.status-indicator.status-complete::before {
  content: '✓';
  font-size: 10px;
  font-weight: 700;
}

.status-indicator.status-complete::after {
  content: '완료';
}

/* 미완료 상태 - 주황색 필요 배지 */
.status-indicator.status-pending {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #d97706;
  border: 1px solid #fcd34d;
  animation: pulse-pending 2s infinite;
}

.status-indicator.status-pending::before {
  content: '!';
  font-size: 10px;
  font-weight: 700;
}

.status-indicator.status-pending::after {
  content: '필요';
}

@keyframes pulse-pending {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.2); }
  50% { box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1); }
}

/* 호버 시 배지 강조 효과 */
.menu-item:hover .status-indicator.status-complete {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.menu-item:hover .status-indicator.status-pending {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.menu-item {
  position: relative;
}
/* ============================================
   🪪 내 정보 섹션 강조 스타일
   ============================================ */

/* 내 정보 섹션 하이라이트 */
.sidebar-section-highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: 12px;
  padding: 0.75rem;
  margin: -0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.15);
  position: relative;
}

.sidebar-section-highlight::before {
  content: '⭐';
  position: absolute;
  top: -8px;
  right: 12px;
  font-size: 14px;
  background: white;
  padding: 0 4px;
  border-radius: 4px;
}

/* 내 정보 타이틀 강조 */
.sidebar-title-highlight {
  color: var(--primary) !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-title-highlight::after {
  content: '필수';
  font-size: 0.65rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

/* 내 명함 메뉴 아이템 강조 */
.sidebar-section-highlight .menu-item:first-of-type {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.sidebar-section-highlight .menu-item:first-of-type:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
  border-color: rgba(99, 102, 241, 0.3);
}

/* 메뉴 그룹 구분선 */
.sidebar-section {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* 메뉴 아이콘 개선 */
.menu-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* 활성 메뉴 아이템 개선 */
.menu-item.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transform: translateX(2px);
}

/* 메뉴 배지 애니메이션 */
.menu-badge:not(:empty) {
  animation: badge-pop 0.3s ease;
}

@keyframes badge-pop {
  0% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* 모바일 대응 - 내 정보 섹션 */
@media (max-width: 768px) {
  .sidebar-section-highlight {
    margin: 0;
    margin-bottom: 1rem;
    padding: 0.5rem;
  }
  
  .sidebar-section-highlight::before {
    display: none;
  }
  
  .sidebar-title-highlight::after {
    font-size: 0.6rem;
    padding: 1px 4px;
  }
}