:root {
    --primary: #6366f1;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --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;
  }

  .hidden {
    display: none !important;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  /* Header */
  .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;
    transition: color 0.3s ease;
  }

  .breadcrumb a:hover {
    color: var(--primary-dark);
  }

  /* Navigation Actions */
  .nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .guest-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .user-info {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  /* 알림벨 스타일 */
  .notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
  }

  .notification-bell:hover {
    background-color: var(--gray-100);
  }

  .notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
    display: none;
  }

  .notification-dot.active {
    display: block;
  }

  /* 사용자 정보 표시 개선 */
  .user-info-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
  }

  .user-info-inner:hover {
    background-color: var(--gray-100);
  }

  .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
  }

  .user-name {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 14px;
  }

  .dropdown-icon {
    color: var(--text-light);
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.2s ease;
  }

  .user-info-inner:hover .dropdown-icon {
    color: var(--gray-900);
  }

  /* 드롭다운 메뉴 개선 */
  .user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
  }

  .user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-menu {
    list-style: none;
    padding: 4px 0;
    margin: 0;
  }

  .dropdown-menu li {
    padding: 0;
  }

  .dropdown-menu a,
  .dropdown-menu button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: none;
    text-align: left;
    color: var(--gray-700);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    font-family: inherit;
  }

  .dropdown-menu a:hover,
  .dropdown-menu button:hover {
    background-color: var(--gray-50);
  }

  .dropdown-menu button.logout {
    color: var(--danger);
  }

  .dropdown-menu button.logout:hover {
    background-color: #fef2f2;
  }

  .dropdown-divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 4px 0;
  }

  .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-block;
  }

  .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;
    box-shadow: var(--shadow-sm);
  }

  .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  /* Hero Section */
  .hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="white" opacity="0.1"><circle cx="20" cy="30" r="2"/><circle cx="80" cy="20" r="1.5"/><circle cx="60" cy="70" r="2.5"/><circle cx="30" cy="80" r="1"/></g></svg>');
    animation: networkFloat 30s infinite linear;
  }

  @keyframes networkFloat {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-100px) translateY(-50px); }
  }

  .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Main Content */
  .main-content {
    padding: 4rem 0;
  }

  .section-header {
    text-align: center;
    margin-bottom: 3rem;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--gray-900);
    margin-bottom: 0.5rem;
  }

  .section-header p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
  }

  /* Network Options */
  .network-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .option-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
  }

  .option-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
  }

  .option-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
  }

  .option-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
  }

  .option-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .option-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
  }

  .option-features li {
    padding: 0.25rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
  }

  .option-features li::before {
    content: '✓';
    color: var(--success);
    margin-right: 0.5rem;
    font-weight: bold;
  }

  /* MBTI Quick Match */
  .mbti-match {
    background: var(--gray-100);
    padding: 4rem 0;
  }

  .mbti-content {
    text-align: center;
  }

  .mbti-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 2rem auto;
  }

  .mbti-type {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
  }

  .mbti-type:hover, .mbti-type.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
  }

  /* Network Status */
  .network-status {
    background: white;
    padding: 4rem 0;
  }

  .status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
  }

  .status-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--gray-50);
    border: 1px solid var(--border-light);
  }

  .status-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
  }

  .status-label {
    color: var(--text-light);
    font-weight: 600;
    margin-top: 0.5rem;
  }

  /* Action Buttons */
  .action-section {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: white;
    padding: 4rem 0;
    text-align: center;
  }

  .action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
  }

  .btn-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.75rem;
  }

  .btn-hero.btn-white {
    background: white;
    color: var(--primary);
    border: none;
  }

  .btn-hero.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-3px);
  }

  .btn-hero.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
  }

  .btn-hero.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
  }

  /* Footer */
  .footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 2rem 0;
    text-align: center;
  }

  .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }

  .footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer-links a:hover {
    color: white;
  }

  /* Modal Styles */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    box-shadow: var(--shadow-xl);
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }

  .modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: var(--gray-900);
  }

  .modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
  }

  .modal-close:hover {
    background-color: var(--gray-100);
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-label {
    display: block;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
  }

  .form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
  }

  .form-textarea {
    min-height: 100px;
    resize: vertical;
  }

  .form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  }

  .form-button {
    width: 100%;
    background-color: var(--primary);
    color: white;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
  }

  .form-button:hover:not(:disabled) {
    background-color: var(--primary-dark);
  }

  .form-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .container {
      padding: 0 1rem;
    }

    .nav {
      flex-direction: column;
      gap: 1rem;
      align-items: stretch;
    }

    .breadcrumb {
      order: -1;
      justify-content: center;
    }

    .user-name {
      font-size: 14px;
    }

    .network-options {
      grid-template-columns: 1fr;
    }

    .action-buttons {
      flex-direction: column;
      align-items: center;
    }

    .btn-hero {
      width: 100%;
      max-width: 300px;
    }

    .user-info {
      gap: 12px;
    }

    .notification-bell {
      font-size: 18px;
      padding: 6px;
    }
  }