:root {
  --primary: #5d4037;
  --focus: #e0e0e0;
  --text: #333;
  --text-light: #888;
  --border: #5d4037;
  --bg-light: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== 네비게이션 메뉴바 ===== */
nav.navbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav.navbar .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

nav.navbar .logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

nav.navbar .nav-menu {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
  flex: 1;
  margin-left: 40px;
  justify-content: center;
}

nav.navbar .nav-menu li {
  position: relative;
}

nav.navbar .nav-menu a {
  font-size: 20px;
  display: block;
  padding: 8px 32px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

nav.navbar .nav-menu a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

nav.navbar .nav-menu a.active {
  background: #5d4037;
  color: #fff;
  border-radius: 4px;
  padding: 8px 16px;
  border-bottom-color: transparent;
}

nav.navbar .nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

nav.navbar .btn-myinfo {
  padding: 8px 16px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

nav.navbar .btn-myinfo:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}

nav.navbar .btn-logout {
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

nav.navbar .btn-logout:hover {
  background: #4d2c28;
}

/* ===== 레이아웃 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  min-height: calc(100vh - 64px);
  padding: 40px 20px;
}

/* ===== 페이지 헤더 ===== */
.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--primary);
}

.page-header p {
  color: var(--text-light);
  font-size: 14px;
}

/* ===== 게시판 ===== */
.board-container {
  background: #fff;
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--focus);
}

.board-header .info {
  color: var(--text-light);
  font-size: 13px;
}

.btn-write {
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-write:hover {
  background: #4d2c28;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.board-table thead th {
  background: var(--primary);
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  border-bottom: 2px solid var(--primary);
}

.board-table tbody td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.board-table tbody tr:hover {
  background: var(--bg-light);
  cursor: pointer;
}

.board-table .title-col {
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-table .author-col {
  color: var(--text-light);
  font-size: 13px;
}

.board-table .date-col {
  color: var(--text-light);
  font-size: 13px;
  white-space: nowrap;
}

.board-table .views-col {
  color: var(--text-light);
  font-size: 13px;
  text-align: center;
}

/* ===== 페이지네이션 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination .disabled {
  color: #ccc;
  cursor: not-allowed;
  border-color: #ccc;
}

/* ===== 빈 상태 ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h2 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-light);
}

.empty-state p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ===== 회원가입/로그인 폼 ===== */
.form-container {
  max-width: 400px;
  margin: 60px auto;
}

.form-title {
  text-align: center;
  margin-bottom: 32px;
}

.form-title h1 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 8px;
}

/* 로그인/회원가입 카드 스타일 */
.signup-card {
  max-width: 480px;
  margin: 80px auto;
  background: #fff;
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.signup-form h1 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 24px;
  color: var(--primary);
}

.field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.field .label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.3s;
}

.field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.1);
}

.input-error {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

.actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.muted {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-light);
}

.muted a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.muted a:hover {
  text-decoration: underline;
}

/* 헤더 스타일 */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.top-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.top-nav a:hover {
  color: var(--primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.1);
}

.form-group input::placeholder {
  color: #aaa;
}

.form-group .input-error {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 4px;
  display: block;
  min-height: 16px;
}

.form-banner {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 13px;
  display: none;
}

.form-banner.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-banner.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.form-group.checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  cursor: pointer;
}

.form-group.checkbox label {
  margin: 0;
  cursor: pointer;
  font-weight: 400;
  flex: 1;
}

.form-group.checkbox .link {
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px dotted var(--primary);
}

.form-group.checkbox .link:hover {
  text-decoration: underline;
}

.btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover:not(.disabled) {
  background: #4d2c28;
  box-shadow: 0 4px 12px rgba(93, 64, 55, 0.2);
}

.btn.primary.disabled {
  background: #bbb;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.ghost:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}

.form-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}

.form-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* ===== 대시보드 ===== */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 28px;
  color: var(--primary);
}

.user-info {
  text-align: right;
}

.user-info .name {
  font-weight: 600;
  color: var(--text);
}

.user-info .email {
  font-size: 13px;
  color: var(--text-light);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.dashboard-card {
  background: #fff;
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s;
}

.dashboard-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dashboard-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-card .value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

/* ===== 이용약관 ===== */
.terms-container {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  border: 1px solid var(--primary);
}

.terms-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg-light);
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.8;
}

.terms-content h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 8px 0;
}

.terms-content h2:first-child {
  margin-top: 0;
}

.terms-content p {
  margin-bottom: 12px;
}

.terms-actions {
  display: flex;
  gap: 12px;
}

.terms-actions button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-agree {
  background: var(--primary);
  color: #fff;
}

.btn-agree:hover {
  background: #4d2c28;
}

.btn-cancel {
  background: var(--border);
  color: var(--text);
}

.btn-cancel:hover {
  background: #ccc;
}

/* ===== 햄버거 메뉴 버튼 ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 모바일 전용 요소 - 데스크탑에서 숨김 */
.mobile-only,
.mobile-auth-item {
  display: none;
}

/* 데스크탑 전용 요소 - 기본 표시 */
.desktop-only {
  display: block;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
  /* PC 전용 메뉴 숨기기 */
  .desktop-only {
    display: none !important;
  }

  /* 모바일에서 mobile-only 표시 */
  li.mobile-only,
  li.mobile-auth-item {
    display: list-item !important;
  }

  .mobile-only,
  .mobile-auth-item {
    display: block !important;
  }

  /* 햄버거 메뉴 표시 */
  .hamburger {
    display: flex;
    order: 3;
  }

  nav.navbar .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
  }

  nav.navbar .logo {
    font-size: 18px;
    order: 1;
    margin: 0;
  }

  /* 데스크톱 메뉴 숨김 */
  nav.navbar .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    margin: 0;
    gap: 0;
    z-index: 100;
    overflow-y: auto;
  }

  nav.navbar .nav-menu.show {
    display: flex;
  }

  nav.navbar .nav-menu li {
    width: 100%;
  }

  nav.navbar .nav-menu a {
  font-size: 20px;
    display: block;
    padding: 16px 20px;
    font-size: 20px;
    border-bottom: 1px solid #f0f0f0;
    border-left: none;
  }

  nav.navbar .nav-menu a:hover {
    background: #f8f8f8;
  }

  nav.navbar .nav-menu a.active {
    background: var(--primary);
    color: #fff;
    border-radius: 0;
    margin: 0;
  }

  /* 모바일에서 로그인/로그아웃 버튼 숨김 - 메뉴 안에서만 표시 */
  nav.navbar .nav-actions {
    display: none;
  }

  /* 메뉴 내 로그인/로그아웃 버튼 - JS에서 동적 추가 */
  nav.navbar .nav-menu .mobile-auth-item {
    border-top: 2px solid #eee;
    margin-top: 10px;
    padding-top: 10px;
  }

  nav.navbar .nav-menu .mobile-auth-item a,
  nav.navbar .nav-menu .mobile-auth-item button {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-size: 20px;
    text-align: left;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
  }

  /* 페이지 헤더 */
  .page-header {
    margin-bottom: 20px;
  }

  .page-header h1 {
    font-size: 20px;
  }

  .page-header p {
    font-size: 13px;
  }

  /* 메인 컨텐츠 */
  main {
    padding: 20px 12px;
  }

  .container {
    padding: 0 12px;
  }

  /* 게시판 테이블 - 가로 스크롤 */
  .board-container {
    overflow-x: auto;
  }

  .board-table {
    min-width: 600px;
  }

  .board-table thead th,
  .board-table tbody td {
    padding: 12px 8px;
    font-size: 13px;
  }

  .board-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* 대시보드 */
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard-header h1 {
    font-size: 22px;
  }

  .user-info {
    text-align: left;
  }

  /* 폼 컨테이너 */
  .form-container {
    margin: 20px 0;
  }

  .signup-card {
    margin: 20px 0;
    padding: 24px 16px;
  }

  /* 버튼 */
  .btn-write {
    padding: 8px 16px;
    font-size: 12px;
  }

  /* 페이지네이션 */
  .pagination {
    flex-wrap: wrap;
    gap: 4px;
  }

  .pagination a,
  .pagination span {
    padding: 6px 10px;
    font-size: 12px;
  }
}

.form-banner.error {
  background: #fff0f0;
  border: 1px solid #f5c6cb;
  color: #a71d2a
}

.btn[disabled],
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed
}

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center
}

@media(max-width:900px) {
  .signup-card {
    margin: 28px 0;
    padding: 0 18px
  }

  .two-col {
    grid-template-columns: 1fr
  }
}

/* Terms page */
.terms-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 18px
}

.terms-box {
  background: #fff;
  border: 1px solid var(--primary);
  padding: 20px;
  border-radius: 8px;
  line-height: 1.7;
  color: #333
}

.terms-box h3 {
  margin-top: 12px;
  color: var(--primary)
}

.terms-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 14px
}

/* ensure tel inputs inherit same style */
.field input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(93, 64, 55, 0.18);
  border-radius: 6px;
  background: transparent;
  font-size: 15px
}

/* ===== User Info Dropdown Modal ===== */
.user-info-modal {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.user-info-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-info-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.user-info-modal .modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: var(--primary);
  font-weight: 600;
}

.user-info-modal .modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.user-info-modal .modal-close:hover {
  color: var(--text);
}

.user-info-modal .modal-body {
  padding: 20px;
}

.user-info-modal .info-group {
  margin-bottom: 16px;
}

.user-info-modal .info-group:last-child {
  margin-bottom: 0;
}

.user-info-modal .info-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-info-modal .info-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-light);
}

.user-info-modal .info-group input[readonly] {
  cursor: default;
}

.user-info-modal .info-group input.editable {
  background: #fff;
  border-color: var(--primary);
}

.user-info-modal .info-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.1);
}

.user-info-modal .modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.user-info-modal .btn-modal-edit,
.user-info-modal .btn-modal-save,
.user-info-modal .btn-modal-cancel {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.user-info-modal .btn-modal-edit {
  background: var(--primary);
  color: #fff;
}

.user-info-modal .btn-modal-edit:hover {
  background: #4d2c28;
}

.user-info-modal .btn-modal-save {
  background: #5d4037;
  color: #fff;
}

.user-info-modal .btn-modal-save:hover {
  background: #4d2c28;
}

.user-info-modal .btn-modal-cancel,
.user-info-modal .btn-modal-back {
  background: var(--border);
  color: var(--text);
}

.user-info-modal .btn-modal-cancel:hover,
.user-info-modal .btn-modal-back:hover {
  background: #ccc;
}

.user-info-modal .btn-modal-portfolio,
.user-info-modal .btn-modal-back {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.user-info-modal .btn-modal-portfolio {
  background: #5d4037;
  color: #fff;
}

.user-info-modal .btn-modal-portfolio:hover {
  background: #4d2c28;
}

/* ===== Investment Portfolio View ===== */
.user-info-modal .modal-investments {
  max-height: 320px;
  overflow-y: auto;
}

.user-info-modal .investments-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.user-info-modal .investments-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.user-info-modal .investments-empty p {
  margin: 0;
}

.user-info-modal .investments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-info-modal .investment-card {
  background: var(--bg-light);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 14px;
  position: relative;
}

.user-info-modal .investment-company {
  font-weight: 600;
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 10px;
  padding-right: 70px;
}

.user-info-modal .investment-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-info-modal .investment-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.user-info-modal .investment-row .label {
  color: var(--text-light);
}

.user-info-modal .investment-row .value {
  color: var(--text);
  font-weight: 500;
}

.user-info-modal .investment-status {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.user-info-modal .investment-status.status-pending {
  background: #fff3e0;
  color: #e65100;
}

.user-info-modal .investment-status.status-approved {
  background: #e8f5e9;
  color: #2e7d32;
}

.user-info-modal .investment-status.status-rejected {
  background: #ffebee;
  color: #c62828;
}

/* ===== Intro Page Styles ===== */

/* Hero Section */
.intro-hero {
  background: linear-gradient(135deg, #5d4037 0%, #4d2c28 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 60px;
}

.intro-hero h1 {
  font-size: 40px;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.intro-hero .highlight {
  color: #d4a574;
}

.intro-hero p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn-primary {
  padding: 14px 32px;
  background: #fff;
  color: #5d4037;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-buttons .btn-primary:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-secondary {
  padding: 14px 32px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s;
}

.hero-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Intro Section Styles */
.intro-section {
  max-width: 1000px;
  margin: 0 auto 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  color: #5d4037;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 32px;
  color: #5d4037;
  margin-bottom: 16px;
  font-weight: 700;
}

.section-header p {
  color: #666;
  font-size: 20px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Ecosystem Diagram */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 48px;
}

.ecosystem-card {
  background: #f5f5f5;
  padding: 32px;
  border-radius: 8px;
  border-left: 4px solid #5d4037;
  text-align: center;
  transition: all 0.3s;
}

.ecosystem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ecosystem-icon {
  width: 64px;
  height: 64px;
  background: #e8dcd0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  transition: all 0.3s;
}

.ecosystem-card:hover .ecosystem-icon {
  transform: scale(1.1);
}

.ecosystem-card h3 {
  font-size: 18px;
  color: #5d4037;
  margin-bottom: 12px;
  font-weight: 700;
}

.ecosystem-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.ecosystem-badge {
  display: inline-block;
  background: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: #666;
}

.ecosystem-center {
  position: relative;
}

.ecosystem-logo {
  background: #fff;
  padding: 32px;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(93, 64, 55, 0.15);
  border: 4px solid #f5f5f5;
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.ecosystem-logo .logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #5d4037;
}

.ecosystem-logo .logo-subtext {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
}

/* Key Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 48px;
}

.service-item h3 {
  font-size: 22px;
  color: #5d4037;
  margin-bottom: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-icon {
  width: 40px;
  height: 40px;
  background: #5d4037;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.service-item p {
  color: #666;
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-item .highlight-text {
  font-weight: 700;
  color: #5d4037;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: #666;
  font-size: 15px;
}

.service-list li::before {
  content: "\2713";
  color: #5d4037;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  background: #f5f5f5;
  padding: 32px;
  border-radius: 8px;
  border-left: 4px solid #5d4037;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  font-size: 18px;
  color: #5d4037;
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* Process Flow */
.process-section {
  background: #fff;
  padding: 80px 20px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  position: relative;
}

.process-card {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  position: relative;
  transition: all 0.3s;
}

.process-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.process-card.featured {
  border: 2px solid #5d4037;
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(93, 64, 55, 0.15);
}

.process-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-weight: 700;
  font-size: 20px;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.process-card .process-number {
  background: #f5f5f5;
  color: #5d4037;
}

.process-card.featured .process-number {
  background: #5d4037;
  color: #fff;
}

.process-card h3 {
  font-size: 20px;
  color: #5d4037;
  margin-bottom: 8px;
  text-align: center;
  font-weight: 700;
}

.process-card .process-subtitle {
  text-align: center;
  color: #5d4037;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.process-list {
  list-style: none;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 8px;
}

.process-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #666;
  font-size: 14px;
}

.process-list li:last-child {
  margin-bottom: 0;
}

.process-list li::before {
  content: "\2022";
  color: #5d4037;
  font-size: 20px;
  flex-shrink: 0;
}

.process-card.featured .process-list li::before {
  color: #5d4037;
  font-weight: 700;
}

.process-list .highlight {
  font-weight: 700;
  color: #5d4037;
}

/* Differentiators */
.differentiators-section {
  background: #5d4037;
  color: #fff;
  padding: 80px 20px;
}

.differentiators-section .section-header h2 {
  color: #fff;
}

.differentiators-section .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

.differentiators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.differentiator-card {
  background: rgba(0, 0, 0, 0.2);
  padding: 32px;
  border-radius: 8px;
  transition: all 0.3s;
}

.differentiator-card:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.differentiator-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.differentiator-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: 700;
}

.differentiator-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.8;
}

.differentiator-card .old-way {
  display: block;
  margin-bottom: 8px;
}

.differentiator-card .new-way {
  display: block;
  font-weight: 700;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 40px 0;
  text-align: center;
}

.stat-item {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #5d4037;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #888;
}

/* CTA Section */
.cta-section {
  background: #5d4037;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.cta-section h2 {
  font-size: 32px;
  margin-bottom: 16px;
  font-weight: 700;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: #fff;
  color: #5d4037;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s;
}

.cta-button:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Advantages Section */
.advantages-list {
  max-width: 900px;
  margin: 0 auto;
}

.advantages-list p {
  color: #666;
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 16px;
  padding-left: 20px;
  position: relative;
}

.advantages-list strong {
  color: #5d4037;
  font-weight: 700;
}

/* Intro Page Responsive */
@media (max-width: 768px) {
  .intro-hero h1 {
    font-size: 28px;
  }

  .intro-hero p {
    font-size: 20px;
  }

  .ecosystem-grid,
  .services-grid,
  .process-grid,
  .differentiators-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-center {
    order: -1;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .process-card.featured {
    transform: none;
  }
}

/* ===== Project Detail Page Styles ===== */

.detail-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.detail-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.detail-section h2 {
  background: #f8f8f8;
  padding: 16px 24px;
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

.detail-section-body {
  padding: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px 24px;
}

.info-grid dt {
  font-weight: 600;
  color: #555;
}

.info-grid dd {
  margin: 0;
  color: #333;
}

.youtube-container {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.no-video {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: #f5f5f5;
  border-radius: 8px;
  color: #888;
}

.pdf-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pdf-list li {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #f9f9f9;
  border-radius: 6px;
  margin-bottom: 8px;
}

.pdf-list li:last-child {
  margin-bottom: 0;
}

.pdf-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.pdf-list a:hover {
  text-decoration: underline;
}

.pdf-icon {
  margin-right: 12px;
  font-size: 1.5rem;
}

.no-files {
  color: #888;
  text-align: center;
  padding: 24px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 24px;
}

.back-btn:hover {
  text-decoration: underline;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-active {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-closed {
  background: #ffebee;
  color: #c62828;
}

.manager-info {
  background: #fff8e1;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
}

.manager-info h4 {
  margin: 0 0 8px 0;
  color: var(--primary);
}

.loading {
  text-align: center;
  padding: 60px;
  color: #888;
}

.error-state {
  text-align: center;
  padding: 60px;
  color: #c62828;
}

/* Q&A Section */
.qna-section {
  margin-top: 40px;
}

.qna-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.qna-header h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.qna-count {
  color: #666;
  font-size: 0.9rem;
}

.qna-form {
  background: #f9f9f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.qna-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  resize: vertical;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.qna-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.qna-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.btn-submit-qna {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.btn-submit-qna:hover {
  background: #4e342e;
}

.btn-submit-qna:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.qna-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.qna-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.qna-item:last-child {
  border-bottom: none;
}

.qna-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.qna-author {
  font-weight: 600;
  color: var(--primary);
}

.qna-date {
  font-size: 0.85rem;
  color: #888;
}

.qna-content {
  color: #333;
  line-height: 1.6;
  white-space: pre-wrap;
}

.qna-reply {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fff8e1;
  border-radius: 6px;
  border-left: 3px solid var(--primary);
}

.qna-reply-label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.qna-empty {
  text-align: center;
  padding: 40px;
  color: #888;
}

.qna-login-notice {
  text-align: center;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 8px;
  color: #666;
  margin-bottom: 24px;
}

.qna-login-notice a {
  color: var(--primary);
  font-weight: 500;
}

.qna-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.btn-reply {
  background: #f5f5f5;
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-reply:hover {
  background: #e8e8e8;
}

.reply-form {
  margin-top: 12px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 6px;
  display: none;
}

.reply-form.show {
  display: block;
}

.reply-form textarea {
  width: 100%;
  min-height: 60px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  resize: vertical;
  font-family: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.reply-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.reply-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.btn-cancel-reply {
  background: #fff;
  color: #666;
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-cancel-reply:hover {
  background: #f5f5f5;
}

.btn-submit-reply {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-submit-reply:hover {
  background: #4e342e;
}

.btn-submit-reply:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* AI Chat Section */
.chat-section {
  margin-top: 40px;
}

.chat-container {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 500px;
}

.chat-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  text-align: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #fafafa;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.chat-message {
  margin-bottom: 16px;
  display: flex;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.model {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chat-message.user .chat-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-message.model .chat-bubble {
  background: #fff;
  color: #333;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-sender {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: inherit;
  opacity: 0.8;
}

.chat-message.model .chat-sender {
  color: var(--primary);
  opacity: 1;
}

.chat-sources {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
}

.chat-sources-title {
  font-weight: 600;
  color: #666;
  margin-bottom: 4px;
}

.chat-sources a {
  display: block;
  color: var(--primary);
  text-decoration: none;
  margin-top: 2px;
}

.chat-sources a:hover {
  text-decoration: underline;
}

.chat-input-area {
  padding: 16px;
  background: #f5f5f5;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  resize: none;
  font-family: inherit;
  font-size: 0.95rem;
  min-height: 44px;
  max-height: 100px;
  overflow-y: auto;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-chat-send {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 44px;
}

.btn-chat-send:hover {
  background: #4e342e;
}

.btn-chat-send:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-chat-send .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Investment Button */
.btn-invest-wrapper {
  text-align: center;
  margin: 24px 0;
}

.btn-invest {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 48px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-invest:hover {
  background: #4e342e;
}

.btn-edit-project {
  background: #5d4037;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 12px;
}

.btn-edit-project:hover {
  background: #4d2c28;
}

/* Investment Modal */
.invest-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.invest-modal-overlay.show {
  display: flex;
}

.invest-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.invest-modal-header {
  background: var(--primary);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
}

.invest-modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  line-height: 1;
}

.btn-close-modal:hover {
  opacity: 1;
}

.invest-modal-body {
  padding: 24px;
}

.invest-section {
  margin-bottom: 24px;
}

.invest-section:last-child {
  margin-bottom: 0;
}

.invest-section h3 {
  color: var(--primary);
  font-size: 1rem;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.invest-form-group {
  margin-bottom: 16px;
}

.invest-form-group:last-child {
  margin-bottom: 0;
}

.invest-form-group label {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.invest-form-group label .required {
  color: #c62828;
}

.invest-form-group input,
.invest-form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.invest-form-group input:focus,
.invest-form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.invest-form-group input::placeholder {
  color: #aaa;
}

.invest-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.invest-modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-invest-cancel {
  background: #f5f5f5;
  color: #666;
  border: 1px solid var(--border);
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.btn-invest-cancel:hover {
  background: #e8e8e8;
}

.btn-invest-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-invest-submit:hover {
  background: #4e342e;
}

.btn-invest-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Message Box */
.message-box-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.message-box-overlay.show {
  display: flex;
}

.message-box {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.message-box p {
  margin: 0 0 20px 0;
  color: #333;
  line-height: 1.6;
}

.message-box button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.message-box button:hover {
  background: #4e342e;
}

@media (max-width: 600px) {
  .invest-form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Investment List Page Styles ===== */
.list-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.list-container .page-title {
  margin-bottom: 24px;
}

.list-container .page-title h1 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 0 8px 0;
}

.list-container .page-title p {
  color: #666;
  margin: 0;
}

.stats-bar {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-label {
  color: #666;
}

.stat-value {
  font-weight: 600;
  color: var(--primary);
}

.investment-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.investment-table th,
.investment-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.investment-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
}

.investment-table tbody tr:hover {
  background: #fafafa;
}

.investment-table tbody tr:last-child td {
  border-bottom: none;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-pending {
  background: #fff3e0;
  color: #e65100;
}

.status-approved {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-rejected {
  background: #ffebee;
  color: #c62828;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}

.empty-state h2 {
  margin: 16px 0 8px;
  color: #666;
}

.loading {
  text-align: center;
  padding: 60px;
  color: #888;
}

.error-state {
  text-align: center;
  padding: 60px;
  color: #c62828;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 24px;
}

.back-link:hover {
  text-decoration: underline;
}

.ssn-hidden {
  color: #999;
}

@media (max-width: 768px) {
  .investment-table {
    display: block;
    overflow-x: auto;
  }
}

/* ===== Investment Registration Page Styles ===== */
.form-section {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.form-section h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.form-grid label {
  font-weight: 600;
  color: #555;
}

.form-grid input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.file-drop {
  border: 2px dashed var(--border);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 12px;
}

.file-drop:hover {
  background: #f9f9f9;
}

.uploaded-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.uploaded-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.youtube-preview {
  position: relative;
  padding-top: 56.25%;
  background: #f0f0f0;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 12px;
}

.youtube-preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.action-buttons {
  text-align: right;
  margin-top: 24px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-primary:hover {
  background: #4a322e;
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

/* 모달 스타일 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  color: var(--primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 24px;
}

.preview-section {
  margin-bottom: 24px;
}

.preview-section h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
}

.preview-grid dt {
  font-weight: 600;
  color: #555;
}

.preview-grid dd {
  margin: 0;
  color: #333;
}

.preview-youtube {
  position: relative;
  padding-top: 56.25%;
  background: #f0f0f0;
  border-radius: 8px;
  margin-top: 12px;
}

.preview-youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.preview-files {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.preview-files li {
  padding: 4px 0;
  color: #5d4037;
}

/* ===== Admin Dashboard Styles ===== */
.admin-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  text-align: center;
}

.stat-card h3 {
  font-size: 14px;
  color: #666;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .value {
  font-size: 32px;
  font-weight: 700;
  color: #111;
}

.admin-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  font-size: 20px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: #0052cc;
  border-bottom-color: #0052cc;
}

.admin-section {
  display: none;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.admin-section.active {
  display: block;
}

.admin-container table {
  width: 100%;
  border-collapse: collapse;
}

.admin-container th,
.admin-container td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.admin-container th {
  font-weight: 600;
  color: #444;
  background: #f9fafb;
}

.role-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.role-super_admin {
  background: #e3f2fd;
  color: #0d47a1;
}

.role-admin {
  background: #e8f5e9;
  color: #1b5e20;
}

.role-user {
  background: #f5f5f5;
  color: #616161;
}

.action-btn {
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  font-size: 12px;
}

.action-btn:hover {
  background: #f5f5f5;
}

.btn-danger {
  color: #d32f2f;
  border-color: #ffcdd2;
}

.btn-danger:hover {
  background: #ffebee;
}

/* Admin Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.admin-container .modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.admin-container .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-container .modal-header h2 {
  margin: 0;
  color: var(--primary);
}

.close {
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.admin-container .modal-body {
  margin-bottom: 20px;
}

.modal-field {
  margin-bottom: 15px;
}

.modal-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--text);
}

.modal-field input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-btn-primary {
  background: var(--primary);
  color: #fff;
}

.modal-btn-primary:hover {
  background: #4d2c28;
}

.modal-btn-secondary {
  background: #f5f5f5;
  color: var(--text);
}

.modal-btn-secondary:hover {
  background: #e0e0e0;
}

/* ===== Forming Page (Admin View) Styles ===== */
.admin-only-col {
  display: none;
}

.admin-only-col.show {
  display: table-cell;
}

.btn-view {
  background: #5d4037;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-view:hover {
  background: #4e342e;
}

/* ===== Post Write/Edit Form Styles ===== */
.post-form {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.post-form .form-group {
  margin-bottom: 20px;
}

.post-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.post-form .form-group input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 20px;
}

.post-form .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
}

.post-form .form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.post-form .btn-cancel {
  padding: 12px 24px;
  background: #f5f5f5;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.post-form .btn-cancel:hover {
  background: #e0e0e0;
}

.post-form .btn-submit {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.post-form .btn-submit:hover {
  background: #4e342e;
}

/* ===== Post Detail Styles ===== */
.post-detail {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.post-detail .post-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.post-detail .post-header h1 {
  margin: 0 0 12px 0;
  font-size: 1.5rem;
  color: var(--text);
}

.post-detail .post-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #888;
}

.post-detail .post-meta .author {
  font-weight: 500;
  color: var(--primary);
}

.post-detail .post-body {
  padding: 24px;
  min-height: 200px;
  line-height: 1.8;
  color: var(--text);
}

.post-detail .post-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.post-detail .btn-edit,
.post-detail .btn-delete {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.post-detail .btn-edit {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.post-detail .btn-edit:hover {
  background: #f5f5f5;
}

.post-detail .btn-delete {
  background: #fff;
  color: #d32f2f;
  border: 1px solid #ffcdd2;
}

.post-detail .btn-delete:hover {
  background: #ffebee;
}

/* ===== Comments Section Styles ===== */
.comments-section {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 24px;
}

.comments-section h3 {
  margin: 0 0 20px 0;
  font-size: 1.1rem;
  color: var(--text);
}

.comments-section h3 span {
  color: var(--primary);
}

.comment-form {
  margin-bottom: 24px;
}

.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
  margin-bottom: 12px;
}

.comment-form .btn-comment-submit {
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.comment-form .btn-comment-submit:hover {
  background: #4e342e;
}

.comments-list .no-comments {
  text-align: center;
  color: #888;
  padding: 20px;
}

.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 600;
  color: var(--text);
}

.comment-date {
  font-size: 13px;
  color: #888;
}

.comment-body {
  line-height: 1.6;
  color: var(--text);
}

/* ===== 파일 업로드 스타일 ===== */
.form-hint {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.file-upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 20px;
  background: #fafafa;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 20px;
  color: #666;
  transition: all 0.2s;
}

.upload-placeholder:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.upload-icon {
  font-size: 32px;
}

.upload-formats {
  font-size: 12px;
  color: #999;
}

.file-list {
  margin-top: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 8px;
}

.file-name {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: 12px;
  color: #888;
}

.file-remove {
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.file-remove:hover {
  color: #e53935;
}

/* 게시물 상세 - 링크 및 첨부파일 */
.post-link {
  margin-top: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.link-label {
  font-weight: 600;
  color: var(--text);
  margin-right: 8px;
}

.post-link a {
  color: var(--primary);
  text-decoration: none;
  word-break: break-all;
}

.post-link a:hover {
  text-decoration: underline;
}

.post-attachments {
  margin-top: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.attachments-label {
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 12px;
}

.attachments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
}

.attachment-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.attachment-icon {
  font-size: 20px;
}

.attachment-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 기존 첨부파일 (수정 페이지) */
.existing-attachments {
  margin-top: 16px;
  padding: 12px;
  background: #f0f0f0;
  border-radius: 6px;
}

.existing-attachments label {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  display: block;
}

.existing-attachments .attachments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-item.existing {
  background: #fff;
  border: 1px solid #ddd;
}

.attachment-item .file-remove {
  margin-left: 8px;
}

/* ===== 추가 반응형 스타일 ===== */

/* 스몰 모바일 (480px 이하) */
@media (max-width: 480px) {
  /* 네비게이션 */
  nav.navbar .container {
    padding: 0 12px;
    height: 56px;
  }

  nav.navbar .logo {
    font-size: 20px;
  }

  nav.navbar .nav-menu {
    top: 56px;
  }

  nav.navbar .btn-myinfo,
  nav.navbar .btn-logout {
    padding: 5px 10px;
    font-size: 11px;
  }

  /* 페이지 타이틀 */
  .page-header h1 {
    font-size: 18px;
  }

  /* 대시보드 카드 */
  .dashboard-card {
    padding: 16px;
  }

  .dashboard-card .value {
    font-size: 24px;
  }

  /* 통계 바 */
  .stats-bar {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  /* 관리자 대시보드 */
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card .value {
    font-size: 24px;
  }

  /* 탭 버튼 */
  .admin-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* 프로젝트 상세 */
  .detail-container {
    margin: 20px auto;
    padding: 0 12px;
  }

  .detail-section h2 {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .detail-section-body {
    padding: 16px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .info-grid dt {
    margin-top: 8px;
  }

  /* 투자 신청 모달 */
  .invest-modal {
    max-height: 85vh;
    margin: 10px;
  }

  .invest-modal-header {
    padding: 16px;
  }

  .invest-modal-header h2 {
    font-size: 1rem;
  }

  .invest-modal-body {
    padding: 16px;
  }

  .invest-form-row {
    grid-template-columns: 1fr;
  }

  .invest-modal-footer {
    padding: 12px 16px 16px;
    flex-direction: column;
  }

  .btn-invest-cancel,
  .btn-invest-submit {
    width: 100%;
    padding: 14px;
  }

  /* 채팅 섹션 */
  .chat-container {
    height: 400px;
  }

  .chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    font-size: 14px;
  }

  .chat-input-area {
    padding: 12px;
    gap: 8px;
  }

  .chat-input {
    padding: 10px;
    font-size: 14px;
  }

  .btn-chat-send {
    padding: 10px 16px;
    min-width: 50px;
  }

  /* Q&A 섹션 */
  .qna-item {
    padding: 12px 16px;
  }

  .qna-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* 폼 */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .form-grid label {
    margin-top: 8px;
  }

  .field input,
  .form-group input,
  .form-group textarea {
    padding: 10px;
    font-size: 14px;
  }

  /* 게시물 상세 */
  .post-detail .post-header {
    padding: 16px;
  }

  .post-detail .post-header h1 {
    font-size: 1.2rem;
  }

  .post-detail .post-meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
  }

  .post-detail .post-body {
    padding: 16px;
    font-size: 14px;
  }

  .post-detail .post-actions {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  /* 댓글 */
  .comments-section {
    padding: 16px;
  }

  .comment-form textarea {
    min-height: 80px;
  }
}

/* 태블릿 (768px ~ 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  nav.navbar .nav-menu a {
  font-size: 20px;
    padding: 8px 16px;
    font-size: 14px;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ecosystem-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .ecosystem-center {
    grid-column: 1 / -1;
    order: -1;
  }

  .services-grid {
    gap: 32px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .differentiators-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .differentiator-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* 투자 리스트 테이블 모바일 */
@media (max-width: 768px) {
  .list-container {
    margin: 20px auto;
    padding: 0 12px;
  }

  .list-container .page-title h1 {
    font-size: 1.2rem;
  }

  .investment-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .investment-table th,
  .investment-table td {
    padding: 10px 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* 관리자 페이지 테이블 */
  .admin-container {
    margin: 20px auto;
    padding: 0 12px;
  }

  .admin-section {
    padding: 16px;
    overflow-x: auto;
  }

  .admin-container table {
    min-width: 500px;
  }

  .admin-container th,
  .admin-container td {
    padding: 10px 8px;
    font-size: 13px;
  }

  /* 회원가입 폼 그리드 */
  .form-section {
    padding: 16px;
  }

  .form-section h2 {
    font-size: 1.1rem;
  }

  /* 유저 정보 모달 */
  .user-info-modal {
    width: calc(100vw - 40px);
    max-width: 320px;
    right: -10px;
  }
}

/* 인트로 페이지 추가 반응형 */
@media (max-width: 480px) {
  .intro-hero {
    padding: 40px 16px;
    margin-bottom: 40px;
  }

  .intro-hero h1 {
    font-size: 24px;
    line-height: 1.4;
  }

  .intro-hero p {
    font-size: 14px;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    padding: 12px 24px;
    font-size: 14px;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .section-header p {
    font-size: 14px;
  }

  .intro-section {
    margin-bottom: 40px;
  }

  .ecosystem-card,
  .feature-card,
  .process-card,
  .differentiator-card {
    padding: 20px;
  }

  .ecosystem-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .ecosystem-logo {
    width: 140px;
    height: 140px;
    padding: 20px;
  }

  .ecosystem-logo .logo-text {
    font-size: 18px;
  }

  .process-number {
    width: 60px;
    height: 60px;
    font-size: 14px;
  }

  .cta-section {
    padding: 40px 16px;
  }

  .cta-section h2 {
    font-size: 22px;
  }

  .cta-section p {
    font-size: 14px;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 14px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 16px;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-label {
    font-size: 12px;
  }
}

/* ===== 벤처투자 서브메뉴 레이아웃 ===== */
.venture-layout {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.venture-sidebar {
  width: 200px;
  flex-shrink: 0;
}

.venture-sidebar .sidebar-menu {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  position: sticky;
  top: 84px;
}

.venture-sidebar .sidebar-title {
  background: var(--primary, #5d4037);
  color: #fff;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 20px;
}

.venture-sidebar .sidebar-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.venture-sidebar .sidebar-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.venture-sidebar .sidebar-menu li:last-child {
  border-bottom: none;
}

.venture-sidebar .sidebar-menu a {
  display: block;
  padding: 14px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.venture-sidebar .sidebar-menu a:hover {
  background: #f8fafc;
  color: var(--primary, #5d4037);
}

.venture-sidebar .sidebar-menu a.active {
  background: #efebe9;
  color: var(--primary, #5d4037);
  font-weight: 600;
  border-left: 3px solid var(--primary, #5d4037);
}

.venture-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .venture-layout {
    flex-direction: column;
  }

  .venture-sidebar {
    width: 100%;
  }

  .venture-sidebar .sidebar-menu {
    position: static;
  }

  .venture-sidebar .sidebar-menu ul {
    display: flex;
    overflow-x: auto;
  }

  .venture-sidebar .sidebar-menu li {
    border-bottom: none;
    border-right: 1px solid #f0f0f0;
    flex-shrink: 0;
  }

  .venture-sidebar .sidebar-menu a {
    white-space: nowrap;
    padding: 12px 16px;
  }

  .venture-sidebar .sidebar-menu a.active {
    border-left: none;
    border-bottom: 3px solid var(--primary, #5d4037);
  }
}