:root {
    --primary: #ec4899;
    --primary-dark: #be185d;
    --primary-light: #f472b6;
    --secondary: #f97316;
    --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-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; }
  
  body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif; 
    background: var(--gray-50); 
    margin: 0; 
    padding: 0; 
    color: var(--gray-900);
    line-height: 1.6;
  }

  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .header { 
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .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;
    color: inherit;
  }

  .breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    align-items: center;
  }

  .breadcrumb li {
    color: var(--text-light);
    font-size: 0.9rem;
  }

  .breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: var(--gray-300);
  }

  .breadcrumb a {
    color: var(--primary);
    text-decoration: none;
  }

  .nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
  }

  .btn-outline:hover {
    background: var(--primary);
    color: white;
  }

  .btn-primary {
    background: var(--primary);
    color: white;
  }

  .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
  }

  .guest-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .hidden {
    display: none !important;
  }

  .user-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
  }

  /* ¾Ë¸² º§ ½ºÅ¸ÀÏ */
  .notification-bell {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
  }

  .notification-bell:hover {
    transform: scale(1.1);
  }

  .notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
    display: none;
  }

  .notification-dot.active {
    display: block;
  }

  /* user-info-inner ÄÁÅ×ÀÌ³Ê */
  .user-info-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
  }

  .user-info-inner:hover {
    background: var(--gray-50);
  }

  .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
  }

  .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 ease;
  }

  .user-info.active .dropdown-icon {
    transform: rotate(180deg);
  }

  .user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
  }

  .user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-menu {
    list-style: none;
    padding: 0.5rem;
    margin: 0;
  }

  .dropdown-menu li {
    margin: 0;
  }

  .dropdown-menu a,
  .dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    color: var(--gray-700);
    text-decoration: none;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background 0.2s ease;
    font-size: 0.9rem;
  }

  .dropdown-menu a:hover,
  .dropdown-menu button:hover {
    background: var(--gray-50);
  }

  .dropdown-menu button.logout {
    color: var(--danger);
  }

  .dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.5rem 0;
  }

  .main {
    padding: 2rem 0;
  }

  .matching-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: start;
  }

  .search-panel {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: sticky;
    top: 120px;
  }

  .panel-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-light);
  }

  .panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
  }

  .panel-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
  }

  .panel-content {
    padding: 2rem;
  }

  .form-section {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.95rem;
  }

  .form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
  }

  .form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
  }

  .form-textarea {
    resize: vertical;
    min-height: 80px;
  }

  .tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
  }

  .tag.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .tag:hover:not(.selected) {
    background: var(--gray-200);
  }

  .range-group {
    margin: 1rem 0;
  }

  .range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
  }

  .range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
  }

  .range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
  }

  .range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
  }

  .search-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .search-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .search-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }

  .results-panel {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    min-height: 600px;
  }

  .results-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
  }

  .results-count {
    color: var(--text-light);
    font-size: 0.95rem;
  }

  .sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .sort-label {
    font-size: 0.95rem;
    color: var(--text-light);
  }

  .sort-select {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.9rem;
  }

  .partner-list {
    padding: 0 2rem 2rem;
  }

  .partner-card {
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: white;
  }

  .partner-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
  }

  .partner-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }

  .partner-info {
    flex: 1;
  }

  .company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
  }

  .company-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .company-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
  }

  .detail-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .match-score {
    text-align: center;
    min-width: 100px;
  }

  .score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 0.5rem;
  }

  .score-circle::before {
    content: '';
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    position: absolute;
  }

  .score-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    z-index: 1;
  }

  .score-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 600;
  }

  .partner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
  }

  .partner-tag {
    padding: 0.25rem 0.5rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
  }

  .partner-tag.highlight {
    background: var(--primary-light);
    color: white;
  }

  .partner-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
  }

  .loading-state {
    display: none;
    text-align: center;
    padding: 4rem;
    color: var(--text-light);
  }

  .loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .empty-state {
    display: none;
    text-align: center;
    padding: 4rem;
    color: var(--text-light);
  }

  .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
  }

  /* Modal Styles */
  .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
  }

  .modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
  }

  .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
  }

  .modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
  }

  .modal-content {
    padding: 2rem;
  }

  .info-section {
    margin-bottom: 2rem;
  }

  .info-section:last-child {
    margin-bottom: 0;
  }

  .info-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .info-item.full-width {
    grid-column: 1 / -1;
  }

  .info-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
  }

  .info-value {
    font-size: 1rem;
    color: var(--gray-900);
    font-weight: 600;
  }

  .info-text {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.6;
    white-space: pre-wrap;
  }

  .modal-actions {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
  }

  .contact-info {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .contact-item:last-child {
    border-bottom: none;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  .contact-details {
    flex: 1;
  }

  .contact-label {
    font-size: 0.875rem;
    color: var(--text-light);
  }

  .contact-value {
    font-size: 1rem;
    color: var(--gray-900);
    font-weight: 600;
  }

  .contact-value a {
    color: var(--primary);
    text-decoration: none;
  }

  .contact-value a:hover {
    text-decoration: underline;
  }

  @media (max-width: 768px) {
    .info-grid {
      grid-template-columns: 1fr;
    }

    .modal {
      width: 95%;
      max-height: 95vh;
    }

    .modal-header {
      padding: 1.5rem;
    }

    .modal-content {
      padding: 1.5rem;
    }

    .modal-actions {
      flex-direction: column;
    }
    
    .user-name {
      display: none;
    }
  }

  @media (max-width: 1024px) {
    .matching-layout {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    .search-panel {
      position: static;
    }
    .container {
      padding: 0 1rem;
    }
  }

  @media (max-width: 768px) {
    .partner-header {
      flex-direction: column;
      gap: 1rem;
    }
    .match-score {
      align-self: flex-start;
    }
    .company-details {
      flex-direction: column;
      gap: 0.5rem;
    }
    .partner-actions {
      flex-direction: column;
    }
    .btn {
      justify-content: center;
    }
    .results-header {
      flex-direction: column;
      align-items: flex-start;
    }
  }