/* ── Global Overrides ────────────────────────────────── */
body, * {
  font-family: 'Pretendard', sans-serif;
}

/* 메이커존 한정(이 CSS는 makers 화면에만 로드): 전역 헤더 상단광고의 회색 경계(7px)만 제거.
   배너 아래 20px 여백(top-news-ad margin)은 유지 — 배너와 히어로가 붙으면 답답하다는 피드백(2026-07-22). */
.top-ad-wrap { border-bottom: none; }

/* 스크립트 광고(DCM iframe, 고정 1050px)는 모바일에서 축소되지 않고 화면 밖으로 밀림 —
   레이아웃 요동(가로 스크롤 생겼다 사라짐) 방지용으로 광고 영역 안에서만 잘라낸다(2026-07-23).
   이미지 광고는 width:100% 축소가 그대로 동작. 모바일 전용 소재는 광고 담당 결정 대기. */
.top-ad-wrap { overflow-x: clip; }

/* 커뮤니티 우측 사이드바(공지/FAQ·인기 글) 가독성 — .small(0.875em, 체감 12~13px)을 14px 고정으로 상향(2026-07-22 피드백).
   날짜 등 <small> 태그는 보조 정보라 기존 크기 유지(위계 보존). */
.sidebar-card .small { font-size: 14px; }

/* 프로젝트 목록 모바일 카테고리 칩 바 — 세로 사이드 카테고리 대체(가로 스크롤, 2026-07-22) */
.pj-cat-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pj-cat-chips::-webkit-scrollbar { display: none; }
.pj-cat-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #4b5563; background: #fff; border: 1.5px solid #e5e7eb; border-radius: 20px; padding: 7px 14px; white-space: nowrap; cursor: pointer; }
.pj-cat-chip.active { color: #fff; background: #2563eb; border-color: #2563eb; }
.pj-cat-chip .n { font-size: 11.5px; font-weight: 800; background: rgba(0,0,0,.06); border-radius: 10px; padding: 1px 7px; }
.pj-cat-chip.active .n { background: rgba(255,255,255,.2); }

h5 {
  font-size: 1.4rem;
}

.bg-light {
  background-color: #f0f4f9 !important;
}

:root {
  --bs-success-rgb: 1, 146, 118;
  --border: #ECEDF0;
  --border-strong: #DDDFE4;
  --ink-1: #0E1116;
  --ink-2: #2A2F3A;
  --ink-3: #5A6070;
  --ink-4: #8A8F9C;
  --ink-5: #B4B8C2;
  --brand: #6D55F5;
  --brand-600: #5A41E8;
  --brand-50: #F1EEFF;
  --brand-100: #E3DCFF;
  --pc-success: #1F9D6F;
  --pc-success-bg: #E8F5EE;
  --pc-radius: 12px;
  --pc-shadow-sm: 0 1px 2px rgba(14, 17, 22, .04);
}

.btn-primary {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--color-blue-hover);
  border-color: var(--color-blue-hover);
}

.btn-success {
  background-color: var(--color-green-hover);
  border-color: var(--color-green-hover);
}

.btn-winner {
  background-color: #FFC234;
  border-color: #F5B820;
  color: #3B1A00;
  font-weight: 600;
}
.btn-winner:hover,
.btn-winner:focus,
.btn-winner:active {
  background-color: #F5B820;
  border-color: #E0A800;
  color: #3B1A00;
}
.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background-color: var(--color-green);
  border-color: var(--color-green);
}

::placeholder {
  font-size: 0.85rem;
  font-weight: 500;
  color: #8f949f !important;
  opacity: 1;
}

/* ══════════════════════════════════════════════════════
   INDEX PAGE STYLES - CSS NESTING
   ══════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 2.3rem 0;
  background-color: #f3f8ff;
  background-image:
    radial-gradient(ellipse 750px 500px at 0%   55%, rgba(91,  108, 255, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 520px 380px at 100% 10%, rgba(146,  78, 255, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse 460px 560px at 90%  95%, rgba( 22, 188, 156, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 380px 280px at 50%  -5%, rgba( 56, 182, 255, 0.09) 0%, transparent 60%);
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
}

.hero-subtitle {
  color:var(--color-50);
  font-size: 1.1rem;
  line-height: 1.7;
}

.btn-create-project {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;

  &:hover {
    opacity: 0.9;
    color: #fff;
  }
}

.index-stats {
  position: relative;
  width:80%;
justify-content: space-evenly;
&::before {
    content: "";
  position: absolute;
  top: -1rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    #2563eb 0%,
    #7c3aed 50%,
    #16a34a 100%
  );
  }

  .stat-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .stat-icon {
    font-size: 1.4rem;
    color: var(--color-blue);
    margin-right: 0.5rem;
  }

  .stat-number {
    font-size: 1.4rem;
    font-weight: 800;
  }

  .stat-label {
    font-size: 0.78rem;
    color: #6e7b92;
  }
}

/* ── btn-arrow ───────────────────────────────────────── */
.btn-arrow {
  border: none !important;
}
.btn-arrow i {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn-arrow:hover i {
  transform: translateX(4px);
}
.btn-apply {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  border: 1px solid #16a34a;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-apply:hover {
  background-color: #16BC9C !important;
  color: #fff !important;
}

.btn-outline-primary.btn-arrow:hover {
  background-color: transparent !important;
  border-color: transparent !important;
  color: var(--bs-primary);
}
.btn-outline-purple.btn-arrow {
  color: #7c3aed;
  border-color: #7c3aed;
  background-color: transparent;
}
.btn-outline-purple.btn-arrow:hover {
  background-color: transparent !important;
  border-color: transparent !important;
  color: #7c3aed;
}
.btn-outline-success.btn-arrow:hover {
  background-color: transparent !important;
  border-color: transparent !important;
  color: var(--bs-success);
}
.btn-outline-warning.btn-arrow {
  color: #d97706;
  border-color: #d97706;
}
.btn-outline-warning.btn-arrow:hover {
  background-color: transparent !important;
  border-color: transparent !important;
  color: #d97706;
}

/* ── Community Share Page ────────────────────────────── */
.quest-title {
  font-size: 1.6rem;
}

.divider-light {
  opacity: 0.35;
}

.quest-info-box {
  background: linear-gradient(to right, #f5f3ff, #faf5ff);
  border: 1px solid #ddd6fe;
}

.text-purple {
  color: #7c3aed;
}

.icon-box,
.icon-box-blue,
.icon-box-orange,
.icon-box-purple,
.icon-box-green,
.icon-box-gray,
.icon-box-red {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.icon-box-blue {
  background: #dbeafe;
  color: #2563eb;
}

.icon-box-orange {
  background: #ffedd5;
  color: #ea580c;
}

.icon-box-purple {
  background: #ede9fe;
  color: #7c3aed;
}

.icon-box-green {
  background: #dcfce7;
  color: #16a34a;
}

.icon-box-red {
  background: #fee2e2;
  color: #dc2626;
}

.icon-box-gray {
  background: #f3f4f6;
  color: #6b7280;
}

.icon-box-red {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  background: #fee2e2;
  color: #dc2626;
}

.lh-18 {
  line-height: 1.8;
}

.lh-20 {
  line-height: 2;
}

.lh-22 {
  line-height: 2.2;
}

.section-bg-purple {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
}

.section-bg-blue {
  background: #dbeafe;
}

.badge-purple {
  background: #ede9fe;
  color: #7c3aed;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}

.comment-bg-purple {
  background: #f5f3ff;
  border: 2px solid #ddd6fe;
}

.comment-bg-gray {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
}

.sidebar-gradient-box {
  background: linear-gradient(to bottom right, #f5f3ff, #faf5ff);
  border: 1px solid #ddd6fe !important;
}

.img-overlay-relative {
  position: relative;
  height: 128px;
}

.img-cover-fade {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(109, 40, 217, 0.5), rgba(124, 58, 237, 0.5));
}

.badge-absolute {
  position: absolute;
  bottom: 12px;
  left: 12px;
}

.badge-light {
  background: rgba(255, 255, 255, 0.2);
}

.text-small-75 {
  font-size: 0.75rem;
}

/* ── Q&A Page Styles ────────────────────────────── */
.badge-blue {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.badge-purple-light {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.section-bg-blue-light {
  background: linear-gradient(to right, #eff6ff, #eef2ff);
  border: 1px solid #bfdbfe;
}

.section-bg-white-red {
  background: #fff;
  border: 1px solid #fecaca;
}

.section-bg-red {
  background: #fff5f5;
  border: 1px solid #fecaca;
}

.section-bg-green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.section-bg-gray {
  background: #fff;
  border: 1px solid #e5e7eb;
}

.section-bg-gray-2 {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
}

.section-bg-green-2 {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
}

.code-block {
  background: #1e1e2e;
  color: #cdd6f4;
  font-size: 0.875rem;
}

.text-blue {
  color: #2563eb;
}

.text-orange {
  color: #ea580c;
}

.bg-orange-subtle {
  background-color: #fff3ed;
}

.text-orange-btn {
  color: #ea580c;
}

.btn-download {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  border: 1px solid #ea580c;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-download:hover {
  background-color: #ea580c !important;
  color: #fff !important;
}

/* ===== Icon Color Utilities ===== */
.icon-like    { color: #f43f5e; font-size: 0.85rem; }
.icon-view    { color: #6b7280; font-size: 0.85rem; }
.icon-comment { color: #3b82f6; font-size: 0.85rem; }
.text-indigo  { color: #4338ca; }
.text-white-muted { color: rgba(255, 255, 255, 0.62); }
.text-lavender    { color: #e9d5ff; }

/* ===== Btn Notice ===== */
.btn-notice-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4f6c8a;
  background-color: #f0f4f8;
  border: 1px solid #c9d8e8;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-notice-all:hover {
  background-color: #4f6c8a;
  border-color: #4f6c8a;
  color: #fff;
}

/* ===== Custom Pagination ===== */
.custom-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 1.5rem;
}
.custom-pagination a,
.custom-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: #6b7280;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.custom-pagination a:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
}
.custom-pagination a.active {
  background-color: #4f6c8a;
  border-color: #4f6c8a;
  color: #fff;
  font-weight: 700;
}
.custom-pagination span.dots {
  background: transparent;
  border-color: transparent;
  color: #9ca3af;
  cursor: default;
}
.custom-pagination a.pager-arrow {
  color: #9ca3af;
}
.custom-pagination a.pager-arrow.disabled {
  pointer-events: none;
  opacity: 0.4;
}

.text-green {
  color: #16a34a;
}

.text-red {
  color: #dc2626;
}

.textarea-monospace {
  font-family: monospace;
  font-size: 0.875rem;
}

.text-small-85 {
  font-size: 0.85rem;
}

.avatar-40 {
  width: 40px;
  height: 40px;
}

.alert-warning-custom {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.border-warning-custom {
  border: 1px solid #fecaca;
}

/**/
.hero-right{
  display: flex;
  justify-content: flex-end;
  overflow: hidden;

  .frame {
  position: relative;
  width: 472px;
  padding: 22px;
  box-sizing: border-box;
  background: transparent;
}

.frame__bg {
  position: absolute;
  top: 0;
  left: 30px;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

/* 바깥 흰 배경 */
.frame__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 8%,
    rgba(255, 255, 255, 0.75) 14%,
    rgba(255, 255, 255, 1) 22%,
    rgba(255, 255, 255, 1) 100%
  );
}

/* 바깥 테두리 */
.frame__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-image: linear-gradient(
      to right,
      rgba(217, 217, 217, 0) 0%,
      rgba(217, 217, 217, 0.35) 8%,
      rgba(217, 217, 217, 0.75) 14%,
      rgba(217, 217, 217, 1) 22%,
      rgba(217, 217, 217, 1) 100%
    )
    1;
}

.card {
  position: relative;
  z-index: 1;
  margin-left: -2.5rem;
  width: 460px;
  background: #ffffff;
  border:none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
}

.card__thumb {
  height: 168px;
  overflow: hidden;
}

.card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 18px 28px 24px;
}

.card__category {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #5a66ff;
  font-weight: 500;
}

.card__title {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.45;
  color: #111;
  font-weight: 700;
}

.card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  word-break: keep-all;
}

}















/* Featured card in hero */
.featured-hero-card {
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
  border-radius: 1rem;
  padding: 1.5rem;

  .project-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
  }
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Project Creation Modal ───────────────────────────── */
.modal-gradient-header {
  background: url('../img/bg_contest_detail_top2.jpg') center/cover no-repeat;
  color: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem 0.5rem 0 0;
}

.project-type-card {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  &.personal {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #bfdbfe;
  }

  &.contest {
    background: linear-gradient(135deg, #faf5ff, #ede9fe);
    border-color: #ddd6fe;
  }
}

.modal-info-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  font-size: 0.82rem;
  color: #166534;
}

/* ── Btn Outline All ─────────────────────────────────── */
.btn-outline-all {
  border: none;
  color: #374151;
  background: transparent;
  padding: 0.4rem 0;
  text-decoration: none;
  white-space: nowrap; /* 모바일에서 '전체 보기'가 두 줄로 꺾이지 않도록(2026-07-22) */
  flex-shrink: 0;

  &:hover {
    background: transparent;
    color: #374151;
    text-decoration: none;

    i {
      transform: translateX(7px);
    }
  }

  i {
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.2s ease;
  }
}

/* ── Projects Showcase ───────────────────────────────── */
.project-card-row {

  .project-card {
    border: 1px solid #d9dcf0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;

    &:hover {
      box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    }

    .project-card-img-wrap {
      position: relative;
    }

    .card-img-top {
      height: 160px;
      object-fit: cover;
    }

    .project-card-img-badge {
      position: absolute;
      top: 10px;
      left: 10px;
      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(4px);
      color: #374151;
      font-size: 0.72rem;
      font-weight: 600;
      padding: 0.25rem 0.65rem;
      border-radius: 9999px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.12);
      &.red {
        background:var(--color-red);
        color: #fff;
      }
    }

    .project-card-img-badge--right {
      left: auto;
      right: 10px;
      background: rgba(124, 58, 237, 0.9);
      color: #fff;
    }

    .card-body {
      padding: 1rem;

      h5 {
        font-size: 1.15rem;
        color: var(--color-10);
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .project-desc {
        min-height: 42px;
      }

      .ms-auto i {
        font-size: 0.75rem;
      }
    }

    .author-avatar {
      background: #e0e7ff;
      color: #4338ca;
    }
  }
}


/* ── Active Challenges ───────────────────────────────── */
.challenge-card {
  border: 1px solid #924eff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);

  .ch-header {
    padding: 1.5rem 2rem 0.5rem 2rem;
    color: #fff;

    h5 {
      font-size: 1.4em;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: var(--color-20);
    }
  }

  .card-body {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.d-badge {
  display: inline-block;
  background-color: var(--color-red);
  border-radius: 9999px;
  padding: 0.1rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.difficulty-advanced {
  background: #fef3c7;
  color: #92400e;
}

.difficulty-beginner {
  background: #dcfce7;
  color: #166534;
}

.ch-tag {
  background: #f4f6f8;
  font-size: 0.72rem;
  border-radius: 9999px;
  padding: 0.15rem 0.5rem;
  color:var(--color-purple);
}

/* ── Community Hub ───────────────────────────────────── */
.community-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: var(--color-50);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;

  .filter-count {
    font-size: 0.75rem;
    font-weight: 600;
  }

  &[data-filter="all"]:hover       { border-color: #6b7280; color: #6b7280; }
  &[data-filter="question"]:hover  { border-color: var(--color-blue); color: var(--color-blue); }
  &[data-filter="progress"]:hover  { border-color: var(--color-purple); color: var(--color-purple); }
  &[data-filter="teammate"]:hover  { border-color: var(--color-green-hover); color: var(--color-green-hover); }
  &[data-filter="resource"]:hover  { border-color: #ea580c; color: #ea580c; }

  &.active {
    color: #fff;
    .filter-count { color: rgba(255,255,255,0.85); }
  }
  &.active:hover { color: #fff; }
  &[data-filter="all"].active      { background: #6b7280; border-color: #6b7280; }
  &[data-filter="question"].active { background: var(--color-blue); border-color: var(--color-blue); }
  &[data-filter="progress"].active { background: var(--color-purple); border-color: var(--color-purple); }
  &[data-filter="teammate"].active { background: var(--color-green-hover); border-color: var(--color-green-hover); }
  &[data-filter="resource"].active { background: #ea580c; border-color: #ea580c; }
}

.community-card-wrap {
  display: flex;
}

.community-card-wrap[data-type="question"] .community-card {
  border-left: 3px solid var(--color-blue);
}

.community-card-wrap[data-type="progress"] .community-card {
  border-left: 3px solid var(--color-purple);
}

.community-card-wrap[data-type="teammate"] .community-card {
  border-left: 3px solid var(--color-green-hover);
}

.community-card-wrap[data-type="resource"] .community-card {
  border-left: 3px solid #ea580c;
}

.community-card {
  position: relative;
  border: 1px solid #C2DFEE;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);
  border-radius: 0.75rem;
  padding: 1rem;
  background: #fff;
  transition: box-shadow 0.2s;
  width: 100%;
  display: flex;
  flex-direction: column;

  > .d-flex {
    flex: 1;

    > .flex-grow-1 {
      display: flex;
      flex-direction: column;

      > .d-flex.justify-content-between {
        margin-top: auto !important;
        padding-top: 0.5rem;
      }
    }
  }

  &:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;

  &.question {
    background: #e8f3ff;
    color: var(--color-blue);
    border: 1px solid #bfdbfe;
  }

  &.progress {
    --bs-progress-height: auto;
    background: #f5f3ff;
    color: var(--color-purple);
    border: 1px solid #ddd6fe;
  }

  &.teammate {
    background: #e6f7f4;
    color: var(--color-green-hover);
    border: 1px solid #a7f3d0;
  }

  &.resource {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
  }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;

  &.solving {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
  }

  &.done {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
  }

  &.deadline {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
  }

  &.recommend {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fcd34d;
  }
}

.comment-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.project-link-box {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color:var(--color-50);
  margin-top: 0.5rem;
}

.community-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}

.community-project-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  padding: 0.6rem 0.85rem;
}

.community-project-name {
  font-size: 0.94rem;
  font-weight: 600;
  color: #1e293b;
  padding-left: 0.5rem;
  margin-bottom: 0.25rem;
}

.meta-dot {
  margin: 0 0.3rem;
}

.community-project-meta {
  padding-left: 0.5rem;
  font-size: 0.83rem;
  color: #4b515e;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.community-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.community-author-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
}

.community-stat {
  font-size: 0.75rem;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.3rem;
}

.community-card .text-muted {
  font-size: 0.75rem;
}

/* ── Events ──────────────────────────────────────────── */
.event-card {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f6f8, #e6f1ff);
  background-color: var(--ds-testimonials-card-bg, var(--warm-grey-20));

  .ev-header {
      position: relative;
      padding: 1.25rem 1.25rem 0 1.25rem;
  
      .ev-status {
        position: absolute;
        top: 2.25rem;
        left: 2.25rem;
        font-size: 0.72rem;
        font-weight: 600;
        padding: 0.2rem 0.55rem;
        border-radius: 9999px;
  
        &.open {
          background: #dcfce7;
          color: #166534;
        }
  
        &.closing {
          background: #fef3c7;
          color: #92400e;
        }
      }

            .ev-status {
              position: absolute;
              top: 2.25rem;
              left: 0;
              margin-left: 1rem;
              font-size: 0.94rem;
              font-weight: 600;
              color: #166534;
              display: inline-flex;
              align-items: center;
              height: 30px;
              padding: 0 24px;
              background: #dcfce7;
              border-radius: 0 999px 999px 0;
              box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
      
              &.off {
                background: #fef3c7;
                color: #92400e;
              }

              &.on {
                background: #fef2f2;
                color: var(--color-red);
              }
            }


      h5 {
        font-size: 1.05rem;
        line-height: 1.3;
        font-weight: 600;
        margin-top: 0.75rem;
        padding-left: 0.5rem;
        color: var(--color-10);
        min-height: 50px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
    }

    .card-body {
      padding: 0 1.5rem 1.25rem 1.5rem;

      .ev-tags {
        margin: 0.5rem 0 1rem 0;
      }
    }
}



.card-body .small i[class*="fa-"] {
  margin-right: 0.3rem;
}

.data-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.05rem;
}

.share-card-thumb {
  height: 160px;
  overflow: hidden;
  position: relative;
  border-radius: calc(var(--bs-card-border-radius) - 1px) calc(var(--bs-card-border-radius) - 1px) 0 0;
}
.share-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-tag {
  font-size: 0.75rem;
  border-radius: 9999px;
  padding: 0.15rem 0.55rem;
  color:var(--color-50);
  background: #Fff;
}

/* section titles */
.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #111827;
}

.section-sub {
  color:var(--color-50);
  font-size: 0.938rem;
  padding-top: 0.2rem;
  padding-left: 0.125rem;
  font-weight: 400;
}

/* ── Modal Overlay ──────────────────────────────────── */
#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s;

  &.show {
    opacity: 1 !important;
  }
}

/* ── Project Creation Modal ────────────────────────── */
#projectCreationModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.2s;

  &.show {
    opacity: 1 !important;
  }
}

.modal-center-wrapper {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content-box {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 870px;
  overflow: hidden;
}

.modal-gradient-header-wrapper {
  position: relative;

  .header-text-center {
    text-align: center;
    padding-bottom: 0.5rem;

    .project-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 9999px;
      padding: 0.3rem 0.9rem;
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 0.75rem;
    }

    .modal-title {
      font-size: 1.6rem;
      margin-bottom: 0.25rem;
    }

    .modal-subtitle {
      opacity: 0.85;
      font-size: 0.95rem;
    }
  }
}

.modal-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body-wrapper {
  padding: 2rem;

  .modal-row {
    margin-bottom: 1rem;

    .decorative-circle {
      position: absolute;
      top: 0;
      right: 0;
      border-radius: 50%;
      transform: translate(40%, -40%);
      opacity: 0.5;

      &.blue {
        width: 8rem;
        height: 8rem;
        background: #bfdbfe;
      }

      &.purple {
        width: 8rem;
        height: 8rem;
        background: #ddd6fe;
      }
    }
  }

  .modal-col {
    height: 100%;

    a {
      display: block;
      height: 100%;
      text-decoration: none;
    }
  }
}

.project-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;

  &.personal {
    background: var(--color-blue);
    color: #fff;
  }

  &.contest {
    background: var(--color-purple);
    color: #fff;
  }
}

.project-title {
  font-size: 1.25rem;
  color: #111827;
  margin-bottom: 0.25rem;
}

.project-description {
  color:var(--color-50);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.checklist-items {
  color: #374151;
  font-size: 1rem;
  margin-bottom: 1rem;

  li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;

    span {
      font-size: 0.85rem;

      &.personal-check {
        color: var(--color-blue);
      }

      &.contest-check {
        color: var(--color-purple);
      }
    }
  }
}

.recommendation-box {
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;

  &.personal {
    background: #eff6ff;

    .rec-label {
      font-size: 0.88rem;
      color: #1e3a8a;
      margin-bottom: 0.2rem;
    }

    .rec-text {
      font-size: 0.88rem;
      color: #1d4ed8;
    }
  }

  &.contest {
    background: #faf5ff;

    .rec-label {
      font-size: 0.88rem;
      color: #3b0764;
      margin-bottom: 0.2rem;
    }

    .rec-text {
      font-size: 0.88rem;
      color: #7c3aed;
    }
  }
}

.project-action-btn {
  background: var(--color-blue);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;

  &.contest {
    background: var(--color-purple);
  }
}

.modal-info-box {
  background: #f0fdf4;
  border: 1px solid var(--color-green);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;

  .info-icon {
    width: 36px;
    height: 36px;
    background: var(--color-green);
    color: #fff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .info-content {
    .info-title {
      color: #111827;
      margin-bottom: 0.25rem;
      font-size: 0.95rem;
    }

    .info-text {
      color: #4b5563;
      line-height: 1.6;
      font-size: 0.88rem;
    }
  }
}

.later-btn {
  background: none;
  border: none;
  color:var(--color-50);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 1.25rem;
}

/* ── Featured Card Avatars ──────────────────────────── */
.avatar-purple {
  background: #ddd6fe !important;
  color: #7c3aed !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
}

/* ── Featured Project Badge ────────────────────────── */
.featured-badge {
  background: #ede9fe;
  color: #7c3aed;
  font-size: 0.75rem;
}

/* ── Featured Project Title ────────────────────────── */
.featured-title {
  color: #1e1b4b;
}

/* ── Project Cards in Showcase ────────────────────── */
.project-card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: #f1f1f1;
  color: #4338ca;
}

/* ── Project Category Badges ────────────────────── */
.project-badge {
  font-size: 0.72rem;
  border-radius: 9999px;
  padding: 0.3rem 0.65rem;
  background-color: #e7f0ff;
  color: #2551D6;
}

/* ── Challenge Progress Bar ──────────────────────── */
.progress-bar-purple {
  width: 48%;
  background: #7c3aed;
  height: 6px;
}

.challenge-btn-submit {
  background: var(--color-purple-light);
  color: var(--color-purple);
  font-size: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.6rem;

  &:hover {
    background: var(--color-purple);
    color: #fff;
  }
}

/* ── Event Tags ──────────────────────────────────── */
.event-tag {
  font-size: 0.72rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 0.15rem 0.55rem;
  color:var(--color-50);
}

.event-type-badge {
  opacity: 0.85;
}

/* ── Popularity Badge ────────────────────────────── */
.popularity-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #fff;
  border-radius: 9999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ── Community Card Avatars ────────────────────── */
.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-avatar.user-avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 0.72rem;
}
.user-avatar {

  &.question {
    background: #ede9fe;
    color: #7c3aed;
  }

  &.progress {
    background: #dcfce7;
    color: #166534;
  }

  &.teammate {
    background: #fef3c7;
    color: #92400e;
  }

  &.resource {
    background: #dbeafe;
    color: #1d4ed8;
  }

  &.teammate-variant {
    background: #dcfce7;
    color: #166534;
  }

  &.resource-variant {
    background: #fef9c3;
    color: #854d0e;
  }
}

/* ── List Item Checkmarks ────────────────────── */
.checkmark-personal {
  color: var(--color-blue);
}

.checkmark-contest {
  color: var(--color-purple);
}


/* ── CTA Section ─────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,58,138,0.50) 0%, rgba(124,58,237,0.50) 100%),
              url('../img/bg_index_project.jpg') center/cover no-repeat;
  transform: scale(1);
  transition: transform 0.5s ease;
  z-index: 0;
}
.cta-section:hover::before {
  transform: scale(1.05);
}
.cta-section > * {
  position: relative;
  z-index: 1;
}


/* ══════════════════════════════════════════════════════
   CONTESTS PAGE
   ══════════════════════════════════════════════════════ */

.btn-purple {
  background: var(--color-purple);
  color: #fff;
  border: none;

  &:hover {
    background: #6d28d9;
    color: #fff;
  }

  &:focus,
  &:active,
  &:focus-visible {
    background: #6d28d9;
    color: #fff;
    box-shadow: 0 0 0 .25rem rgba(124, 58, 237, .4);
  }
}

/* ── Contest Card ───────────────────────────────────── */
.contest-card-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  & i {
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
  }
}
.contest-card {
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border-radius: 1rem !important;
  overflow: hidden;

  & img {
    border-radius: 1rem 1rem 0 0;
  }

  & h6 {
    font-size: 1.1rem;
  }
}
.contest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.12) !important;
}

#contest-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

#contest-grid .contest-item {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  flex: none !important;
}

@media (max-width: 991px) {
  #contest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  #contest-grid {
    grid-template-columns: 1fr;
  }
}

/* contest-item 뱃지 — projects.html 스타일 통일 */
.contest-item .badge {
  border-radius: 9999px !important;
  font-weight: 600;
}
.contest-item .badge.bg-success {
  background: #dcfce7 !important;
  color: #15803d !important;
}
.contest-item .badge.bg-warning {
  background: #fef9c3 !important;
  color: #854d0e !important;
}
.contest-item .badge.bg-danger {
  background: #dc2626 !important;
  color: #fee2e2 !important;
}
.contest-item .badge.bg-light {
  background: #f1f5f9 !important;
  color: #1f2937 !important;
  border: 1px solid #e2e8f0 !important;
}
.contest-thumb {
  height: 180px;
  object-fit: cover;
}

/* ── Tab Nav ────────────────────────────────────────── */
.tab-underline {
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #374151;
  position: relative;
  transition: color 0.15s;

  &:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #e5e7eb;
  }

  &:hover {
    color: #2563eb;
  }
}
.tab-underline.active {
  border-bottom: 2px solid #2563eb;
  color: #2563eb;
  font-weight: 600;
}
.contest-tabs-sticky {
  top: 100px;
  z-index: 100;
}

/* ── Hero Banner ────────────────────────────────────── */
.contest-hero {
  background:
    linear-gradient(135deg,
      rgba(90, 5, 180, 0.72) 0%,
      rgba(100, 20, 200, 0.65) 35%,
      rgba(30, 70, 210, 0.52) 70%,
      rgba(5, 130, 110, 0.38) 100%),
    url('../img/bg_contest_main.jpg') center/cover no-repeat;
  padding: 2.8rem 0;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.contest-hero::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,0.01);
  pointer-events: none;
}
.contest-hero::after {
  content: "";
  position: absolute;
  right: 14%;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.contest-hero-deco {
  position: absolute;
  left: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.contest-hero-inner {
  position: relative;
  z-index: 1;
}
.contest-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 9999px;
  padding: 0.28rem 1rem;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}
.contest-hero-title {
  font-size: 2.4rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.contest-hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.82;
  max-width: 660px;
  margin-inline: auto;
}

/* ── Project Hero ───────────────────────────────────── */
.project-hero {
  background: url('../img/bg_project_main.jpg') center/cover no-repeat;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.45);
  pointer-events: none;
}
.project-hero-inner {
  position: relative;
  z-index: 1;
}
.project-hero-subtitle {
  font-size: 1rem;
  opacity: .82;
  max-width: 560px;
}
.project-hero-search {
  min-width: 340px;
  flex-shrink: 0;
}
.project-hero-search-icon {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.project-hero-input {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.project-hero-input::placeholder { color: rgba(255,255,255,.65); }
.project-hero-input:focus {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
  color: #fff;
  box-shadow: none;
}
.project-hero-filter-btn {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,.3);
  color: #fff;
  font-weight: 600;
}
.project-hero-filter-btn:hover {
  background: rgba(255,255,255,.28);
  color: #fff;
}

@media (max-width: 767px) {
  .project-hero-search { min-width: 100%; }
  .project-hero { padding: 2rem 0; }
}

/* ── Glass Stat Cards ───────────────────────────────── */
.glass-stat {
  background: rgba(255,255,255,0.01);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 0.9rem 0.3rem;
  text-align: center;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.30),
    inset 0 -1px 0 rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.glass-stat:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 40px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.06);
}
.glass-stat .stat-num {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
.glass-stat .stat-label {
  font-size: 0.94rem;
  font-weight: 500;
  opacity: 0.78;
  margin-top: 0.3rem;
  color: #fff;
}


/* ══════════════════════════════════════════════════════
   COMMON LAYOUT UTILITIES
   ══════════════════════════════════════════════════════ */

/* 공통 헤더 인라인 스타일 → 클래스 */
.topbar-inner {
  height: 36px;
}
nav.navbar.px-0 {
  min-height: 64px;
}
.brand-text {
  font-size: 1.1rem;
}
#makers-zone-dropdown .dropdown-menu {
  min-width: 160px;
}
.footer-copyright {
  opacity: .6;
}
.sticky-top-110 {
  top: 110px;
}

/* 스티키 레이어 순서(2026-07-20): Bootstrap .sticky-top 기본 z-index(1020)가 사이트 상단 내비
   .sinmun-nav.is-sticky(z-index 999)보다 높아 스크롤 시 사이드바/탭바가 메뉴를 가림 → 내비 아래로. */
.make2026-main .sticky-top,
.sticky-top.sticky-top-110,
.sticky-top-110-sidebar,
.contest-tabs-sticky {
  z-index: 10;
}

/* 공통 라인 클램프 */
.two-line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.one-line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 공통 아바타 */
.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}
.avatar-circle-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* 슬라이딩 패널 (community, my-make 공용) */
.cpanel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9990; /* 모바일 헤더 로고(.logo z-index 9910)보다 위 — 패널 열림 시 로고 노출 방지(2026-07-22) */
  /* display 토글 대신 opacity 페이드(부드러운 진입/퇴장). React가 항상 마운트하고 클래스만 토글. */
  opacity: 0;
  visibility: hidden;
  transition: opacity .38s ease, visibility .38s ease;

  &.cpanel-show {
    opacity: 1;
    visibility: visible;
  }
}
.cpanel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 9995; /* backdrop(9990)과 세트 — 모바일 로고(9910) 위 */
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,.18);
  transform: translateX(100%);
  /* 살짝 감속하는 부드러운 슬라이드(cubic-bezier ease-out 계열, 살짝 오버슈트 없이 자연스럽게) */
  transition: transform .42s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;

  &.cpanel-show {
    transform: translateX(0);
  }
}
.cpanel-body {
  flex: 1;
  overflow-y: auto;
}
.cpanel-w {
  width: 100%;

  @media (min-width: 576px) {
    width: 520px;
  }

  @media (min-width: 992px) {
    width: 620px;
  }
}
.cpanel-700 {
  width: 100%;

  @media (min-width: 768px) {
    width: 700px;
  }
}

/* Quick Action 버튼 (community, my-make 공용) */
.qa-type-label {
  font-weight: 500;
}
.qa-icon {
  color: #9ca3af;
  transition: color .15s;
}
.qa-type-btn,
.qa-role-btn {
  border: 2px solid #e5e7eb;
  background: #fff;
  transition: all .15s;
  cursor: pointer;
  text-align: left;

  span {
    font-size: 0.94rem;
    font-weight: 400;
  }

  &:hover {
    border-color: #d1d5db;
    background: #f9fafb;
  }

  &.qa-selected {
    border-color: #2563eb;
    background: #eff6ff;
  }
}
.qa-role-btn.qa-selected {
  border-color: var(--color-green) !important;
  background: #f0fdfb !important;
}
.qa-quest-btn {
  border: 2px solid #e5e7eb;
  background: #fff;
  transition: all .15s;
  cursor: pointer;

  &:hover {
    border-color: #d1d5db;
    background: #f9fafb;
  }

  &.qa-selected {
    border-color: #ea580c;
    background: #fff7ed;
  }
}

/* 새 프로젝트 모달 (index, my-make 공용) */
.modal-gradient-header {
  background: url('../img/bg_contest_detail_top2.jpg') center/cover no-repeat;
  color: #fff;
  padding: 1.5rem;
  border-radius: .5rem .5rem 0 0;
}
.project-type-card {
  border: 2px solid transparent;
  border-radius: .75rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all .2s;
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }

  &.personal {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #bfdbfe;
  }

  &.contest {
    background: linear-gradient(135deg, #faf5ff, #ede9fe);
    border-color: #ddd6fe;
  }
}
/* ── my-make.html 새 프로젝트 모달 ──────────────────────
   index.html 의 #modal-overlay / #projectCreationModal 과
   동일한 동작 구조. JS 에서 display:block 후 .show 추가.
──────────────────────────────────────────────────────── */

/* 오버레이 (배경 dim) */
.np-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.22s;
}
#np-modal-overlay.show {
  opacity: 1 !important;
}

/* 모달 다이얼로그 래퍼 */
.np-modal-dialog {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.22s;
}
/* .show 표시 규칙을 클래스로 일반화 — 생성 모달 ID 전용이던 것을 설정 모달(npProjectSettingsModal)도 공유 */
.np-modal-dialog.show {
  opacity: 1 !important;
}

/* 수직·수평 중앙 정렬 */
.np-modal-centering {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* 모달 컨텐츠 박스 */
.np-modal-content {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 800px;
  overflow: hidden;
}

/* 헤더 내부 텍스트 영역 */
.np-modal-header-body {
  text-align: center;
  padding-bottom: 0.5rem;
}

/* 헤더 배지 */
.np-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
}

/* 헤더 제목 */
.np-modal-title {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

/* 헤더 서브타이틀 */
.np-modal-subtitle {
  opacity: 0.85;
  font-size: 0.95rem;
  color: #fff;
}

/* 닫기 버튼 */
.np-modal-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.np-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* 바디 영역 */
.np-modal-body {
  padding: 2rem;
}

/* 카드 내 relative + overflow:hidden */
.relative-overflow {
  position: relative;
  overflow: hidden;
}

/* 데코 원형 (배경 장식) */
.np-type-deco-circle {
  position: absolute;
  top: 0;
  right: 0;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  transform: translate(40%, -40%);
  opacity: 0.45;
  pointer-events: none;
}
.np-type-deco-blue   { background: #bfdbfe; }
.np-type-deco-purple { background: #ddd6fe; }

/* 프로젝트 타입 아이콘 박스 */
.np-type-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.np-type-icon-blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.np-type-icon-purple { background: linear-gradient(135deg, #7c3aed, #db2777); }

/* 카드 제목 */
.np-type-card-title {
  font-size: 1.25rem;
  color: #111827;
  margin-bottom: 0.25rem;
}

/* 추천 대상 박스 */
.np-type-recommend-box {
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
}
.np-type-recommend-blue   { background: #eff6ff; }
.np-type-recommend-purple { background: #faf5ff; }

.np-type-recommend-label { font-size: 0.78rem; margin-bottom: 0.2rem; }
.np-type-recommend-label-blue   { color: #1e3a8a; }
.np-type-recommend-label-purple { color: #3b0764; }

.np-type-recommend-text { font-size: 0.78rem; }
.np-type-recommend-text-blue   { color: #1d4ed8; }
.np-type-recommend-text-purple { color: #7c3aed; }

/* CTA 버튼 (카드 하단) */
.np-type-cta-btn {
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}
.np-type-cta-blue   { background: #2563eb; }
.np-type-cta-purple { background: linear-gradient(135deg, #7c3aed, #db2777); }

/* 인기 배지 */
.np-type-popular-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #fff;
  border-radius: 9999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 1;
}

/* 인포 박스 */
.np-info-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.np-info-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* 나중에 하기 버튼 */
.np-later-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 1.25rem;
}

/* 어두운 muted 텍스트 */
.text-muted-dark { color: #374151; }

/* 라인 높이 유틸리티 */
.lh-160 { line-height: 1.6 !important; }

/* 코드 블록 */
.code-block {
  background: #111827;
  color: #f3f4f6;
  border-radius: .75rem;
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: .85rem;
  overflow-x: auto;
}

/* 카카오 로그인 버튼 */
.btn-kakao {
  background: #FEE500;
  border: 1.5px solid #F0D800;
}


/* ══════════════════════════════════════════════════════
   PROJECTS PAGE
   ══════════════════════════════════════════════════════ */

.badge.bg-warning.text-dark {
  color: #78350f !important;
}

.border-success-subtle {
  border-color: #bbf7d0 !important;
}

.project-card .badge {
  border-radius: 9999px !important;
}

.project-card .badge.bg-info {
  background: var(--color-blue) !important;
  color: #fff !important;
  font-weight: 500 !important;
}

.project-sidebar {
  border: 1px solid #b0c2eb !important;
  border-radius: 0.75rem !important;
}

.sidebar-sort-label {
  font-size: 0.78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.project-card-img {
  height: 180px;
}

.badge-contest {
  background: #7c3aed;
}

.text-clamp-2 {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-item .card-body .d-flex i {
  font-size: 0.8em;
  margin-right: 0.2rem;
}

.project-item .card {
  border-radius: 0.75rem !important;

  & img {
    border-radius: 0.75rem 0.75rem 0 0;
  }
}

.project-card {
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.12) !important;
  }

  & .card-img-top {
    height: 180px;
    object-fit: cover;
  }
}
.filter-btn.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}


/* ══════════════════════════════════════════════════════
   COMMUNITY PAGE
   ══════════════════════════════════════════════════════ */

.activity-card {
  cursor: pointer;
  transition: box-shadow .2s;

  &:hover {
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.12) !important;
  }
}
.progress-img-wrap {
  overflow: hidden;
  border-radius: .5rem .5rem 0 0;
  height: 180px;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
  }

  &:hover img {
    transform: scale(1.05);
  }
}
.section-header {
  border-left: 4px solid;
  padding-left: .75rem;
}
.tag-badge {
  font-size: .85rem;
  font-weight: 400;
  padding: .25rem .6rem;
  background: #f1f3f5 !important;
}
/* ── Sidebar Nav (projects page) ─────────────────────── */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.94rem;
  color: var(--color-30);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: left;
}
.sidebar-nav-item:hover {
  background: #f0f4f9;
  color: #333;
}
.sidebar-nav-item.active-cat {
  background: #eff6ff;
  color: var(--color-blue);
  font-weight: 600;
  font-size: 1rem;
}
.sidebar-nav-item.active-cat .sidebar-nav-icon {
  color: var(--color-blue);
}
.sidebar-nav-icon {
  width: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.sidebar-nav-label {
  flex: 1;
}
.sidebar-nav-badge {
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 1px 8px;
  min-width: 28px;
  text-align: center;
}
.sidebar-nav-item.active-cat .sidebar-nav-badge {
  background: #dbeafe;
  color: var(--color-blue);
}

/* ── Project Filter Tabs ─────────────────────────────── */
.project-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.pft-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.94rem;
  color: var(--color-40);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pft-btn i {
  font-size: 0.85rem;
}
.pft-btn:hover {
  background: #f3f4f6;
  color: #374151;
}
.pft-btn.active {
  background: var(--color-blue);
  color: #fff;
}
.pft-btn.active .pft-badge {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.pft-badge {
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 1px 7px;
}

#sort-select:focus {
  border-color: #93c5fd !important;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.3);
  outline: none;
}

.sidebar-card {
  border-radius: .75rem;
}
.popular-tag {
  cursor: pointer;
  transition: background .15s;

  &:hover {
    opacity: .8;
  }
}


/* ══════════════════════════════════════════════════════
   COMMUNITY DETAIL PAGE
   ══════════════════════════════════════════════════════ */

.detail-img {
  width: 100%;
  border-radius: .5rem;
  object-fit: cover;
  max-height: 400px;
}
.answer-card {
  border-left: 4px solid #e2e8f0;
  padding-left: 1rem;

  &.helpful {
    border-left-color: #16a34a;
  }
}
.resource-item {
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  padding: 1rem;
  transition: box-shadow .2s;

  &:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
  }
}
.action-btn {
  transition: all .15s;

  &.liked {
    color: #ef4444;
    border-color: #ef4444;
    background: #fff5f5;
  }

  &.saved {
    color: #2563eb;
    border-color: #2563eb;
    background: #eff6ff;
  }
}
.community-detail-img {
  height: 120px;
  object-fit: cover;
}


/* ══════════════════════════════════════════════════════
   PROJECT DETAIL PAGE
   ══════════════════════════════════════════════════════ */

.hero-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: .75rem;
  overflow: hidden;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/* 프로젝트 상세 히어로 이미지: 16:9 강제 크롭 대신 원본 비율로 균일 축소(전체 이미지 노출, 리사이즈/모바일 시 상하좌우 동일 축소) */
.pd-hero-img {
  aspect-ratio: auto;
}
.pd-hero-img img {
  height: auto;
  object-fit: contain;
}
/* 프로젝트 상세 하단(탭+진행기록)은 상단과 동일한 row g-4(col-lg-8/col-lg-4) 그리드로 좌측 콘텐츠·
   우측 sticky 진행 타임라인을 배치한다(과거엔 max-width로 우측을 비웠으나 실제 그리드로 교체). */

/* 진행 타임라인 — 우측 내비 전용 레이어. 본문(mk-content-html)과 무관, 로그의 날짜+제목(메타)만 사용.
   개발자가 궁금해서 클릭하고 싶은 톤: 번호 스텝 배지 · 그라데이션 연결선 · 활성 노드 글로우/카드 · hover 화살표. */
.pd-timeline {
  --tl-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #ec4899 100%);
  --tl-accent: #6d5efc;
  position: sticky;
  top: 5.5rem;
  background: #fff;
  border: 1px solid #eceaf6;
  border-radius: 1rem;
  padding: 1.1rem 1rem 1.25rem;
  box-shadow: 0 10px 30px -12px rgba(99, 102, 241, 0.28), 0 2px 8px -4px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}
.pd-timeline::before {
  /* 카드 상단 그라데이션 액센트 바 */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--tl-grad);
}
.pd-timeline-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
}
.pd-timeline-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: .65rem;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .9rem;
  background: var(--tl-grad);
  box-shadow: 0 4px 12px -3px rgba(139, 92, 246, 0.5);
}
.pd-timeline-heading {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.pd-timeline-title {
  font-weight: 800;
  color: #1f2937;
  font-size: .98rem;
  letter-spacing: -.01em;
}
.pd-timeline-count {
  font-size: .72rem;
  font-weight: 600;
  color: #8b5cf6;
}
.pd-timeline-list {
  display: flex;
  flex-direction: column;
  gap: .8rem;                 /* 카드 간 여백 */
  position: relative;
  max-height: calc(100vh - 11rem);
  overflow-y: auto;
  padding: .2rem .1rem;
}
.pd-timeline-list::before {
  /* 카드 사이로 이어지는 세로 그라데이션 라인 (카드 뒤로 지나 배지 열 정렬 — 카드 사이 간격에서 드러남) */
  content: "";
  position: absolute;
  z-index: 0;
  top: 1.6rem;
  bottom: 1.6rem;
  left: calc(.1rem + .95rem + 15px);
  width: 2px;
  background: linear-gradient(180deg, #c7d2fe 0%, #ddd6fe 50%, #fbcfe8 100%);
  border-radius: 2px;
}
.pd-timeline-node {
  position: relative;
  z-index: 1;                 /* 카드가 라인 위를 덮어 '구슬 꿴 줄' 느낌 */
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  text-align: left;
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid #ece9f9;
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pd-timeline-node:hover {
  transform: translateX(2px);
  border-color: #d8d0fb;
  box-shadow: 0 8px 20px -10px rgba(99, 102, 241, .35);
}
.pd-timeline-node:focus-visible {
  outline: 2px solid var(--tl-accent);
  outline-offset: 1px;
}
.pd-timeline-dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .74rem;
  font-weight: 800;
  color: #8b5cf6;
  background: #fff;
  border: 2px solid #ddd6fe;
  transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pd-timeline-node:hover .pd-timeline-dot {
  border-color: #a78bfa;
  transform: scale(1.06);
}
.pd-timeline-body {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
  flex: 1;
  padding-top: .1rem;
}
.pd-timeline-date {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 500;
  color: #9ca3af;
}
.pd-timeline-label {
  font-size: .87rem;
  color: #374151;
  font-weight: 600;
  line-height: 1.45;
  /* 한 줄 말줄임 대신 최대 2줄까지 자연스럽게 흐름 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pd-timeline-go {
  flex-shrink: 0;
  font-size: .7rem;
  color: #c4b5fd;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s ease, transform .18s ease;
}
.pd-timeline-node:hover .pd-timeline-go {
  opacity: 1;
  transform: translateX(0);
}
/* 활성(스크롤스파이) 노드 — 그라데이션 카드 + 글로우 */
.pd-timeline-node.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.08));
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.25);
}
.pd-timeline-node.active .pd-timeline-dot {
  color: #fff;
  background: var(--tl-grad);
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18), 0 4px 10px -2px rgba(139, 92, 246, 0.5);
}
.pd-timeline-node.active .pd-timeline-label {
  color: #6d28d9;
  font-weight: 800;
}
.pd-timeline-node.active .pd-timeline-go {
  opacity: 1;
  transform: translateX(0);
  color: #a78bfa;
}
.pd-timeline-empty {
  padding: 1rem;
}
@media (prefers-reduced-motion: reduce) {
  .pd-timeline-node,
  .pd-timeline-dot,
  .pd-timeline-go { transition: none; }
  .pd-timeline-node:hover { transform: none; }
}
@media (max-width: 991.98px) {
  /* 모바일에선 aside가 본문 아래로 쌓여 방해가 되므로 타임라인은 숨김(본문은 전폭으로 자연 노출) */
  .pd-timeline,
  .pd-timeline-empty {
    display: none;
  }
}
/* 렌더 콘텐츠(미션 정의·진행기록·콘테스트 소개·프로젝트 스토리) 가독성 타이포그래피.
   레거시 CKEditor HTML을 일관되게 정돈: 본문색·행간·문단간격·제목·목록·표·인용·코드,
   이미지는 반응형+원본비율 균일 축소(인라인 치수 무력화 위해 !important). */
.mk-content-html {
  color: #374151;
  font-size: 0.975rem;
  line-height: 1.75;
  word-break: break-word;
}
.mk-content-html > *:first-child { margin-top: 0; }
.mk-content-html > *:last-child { margin-bottom: 0; }
.mk-content-html p { margin: 0 0 1rem; }
.mk-content-html h1, .mk-content-html h2, .mk-content-html h3, .mk-content-html h4, .mk-content-html h5 {
  color: #1f2937; font-weight: 700; line-height: 1.35; margin: 1.75rem 0 0.75rem;
}
.mk-content-html h1 { font-size: 1.5rem; }
.mk-content-html h2 { font-size: 1.3rem; }
.mk-content-html h3 { font-size: 1.13rem; }
.mk-content-html h4, .mk-content-html h5 { font-size: 1rem; }
.mk-content-html img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 1.25rem auto;
  border-radius: .5rem;
}
.mk-content-html figure { margin: 1.25rem 0; }
.mk-content-html figcaption { text-align: center; font-size: .85rem; color: #6b7280; margin-top: .5rem; }
.mk-content-html ul, .mk-content-html ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.mk-content-html li { margin-bottom: .35rem; }
.mk-content-html a { color: #2563eb; text-decoration: underline; }
.mk-content-html blockquote {
  margin: 1.25rem 0; padding: .5rem 1rem; border-left: 3px solid #d1d5db;
  color: #4b5563; background: #f9fafb; border-radius: 0 .375rem .375rem 0;
}
.mk-content-html pre {
  background: #1f2937; color: #f3f4f6; padding: 1rem; border-radius: .5rem;
  overflow-x: auto; font-size: .875rem; margin: 1.25rem 0;
}
.mk-content-html :not(pre) > code { background: #f3f4f6; color: #b91c1c; padding: .1em .35em; border-radius: .25rem; font-size: .9em; }
.mk-content-html table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9rem; }
.mk-content-html th, .mk-content-html td { border: 1px solid #e5e7eb; padding: .5rem .75rem; text-align: left; }
.mk-content-html th { background: #f9fafb; font-weight: 700; }
.mk-content-html iframe, .mk-content-html video { max-width: 100%; }
.demo-btn-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  padding: 1rem;
  display: flex;
  gap: .75rem;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: .5rem;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.detail-tabs .nav-link {
  color: #374151;
  padding: .5rem 2.25rem;
  border: 0;
  background: transparent;

  &.active {
    color: #2563eb;
    font-weight: 600;
    border-bottom: 2px solid #2563eb;
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: .5rem;
  overflow: hidden;
  cursor: pointer;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
  }

  &:hover img {
    transform: scale(1.1);
  }

  & .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: flex-end;
    padding: .75rem;
  }

  &:hover .gallery-overlay {
    opacity: 1;
  }
}
.resource-card {
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  padding: 1.5rem;
  transition: all .2s;
  cursor: pointer;

  &:hover {
    border-color: #f97316;
    box-shadow: 0 4px 16px rgba(249,115,22,.15);
  }
}
.resource-icon {
  width: 56px;
  height: 56px;
  border-radius: .75rem;
  background: linear-gradient(135deg, #fb923c, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.6rem;
  color: #fff7ed;
}
.rel-card {
  border: 2px solid #e5e7eb;
  border-radius: .75rem;
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;

  &:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
  }

  &:hover img {
    transform: scale(1.1);
  }
}
.author-link-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 9999px;
  padding: .2rem .6rem;
  text-decoration: none;
  font-weight: 600;

  &:hover {
    background: #ffedd5;
    color: #c2410c;
  }
}
/* 메이커 영역의 커스텀 탭(.detail-tabs 등) 전용 tab-pane 규칙.
   ─ 부트스트랩 모달 안의 .tab-pane (예: 로그인 모달) 까지 잡지 않도록
     `.modal` 내부는 명시적으로 제외.
   ─ 기존 SCSS 중첩 `&.active` 는 native CSS nesting 미지원 환경 호환을 위해
     평면 셀렉터로 풀어 쓴다. */
.tab-pane:not(.modal .tab-pane) {
  display: none;
}
.tab-pane:not(.modal .tab-pane).active {
  display: block;
}
.comment-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sticky-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
}

.sidebar-card-contest {
  background: #faf5ff;
  border-color: #ddd6fe;
}

.sidebar-contest-header {
  display: flex;
  align-items: center;
}

.sidebar-contest-name {
  font-size: 1.05rem;
  color: var(--color-20);
}

.sidebar-contest-award {
  color: var(--color-20);
  opacity: 0.6;
}

.sidebar-contest-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--color-purple);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}

.sidebar-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
}

.sidebar-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sidebar-outline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* ===== Sidebar Top Card ===== */
.sidebar-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.sidebar-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.sidebar-stat-num {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.sidebar-stat-label {
  font-size: 0.72rem;
  color: #9ca3af;
}
.sidebar-stat-divider {
  width: 1px;
  height: 28px;
  background: #e5e7eb;
}
.sidebar-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.btn-share-full {
  width: 100%;
}

.btn-like-action {
  color: #2d4f6e;
  background-color: #dde8f2;
  border: 1px solid #a8c0d8;
}
.btn-like-action:hover {
  background-color: #2d4f6e;
  border-color: #2d4f6e;
  color: #fff;
}

.btn-save-action {
  color: #2d4f6e;
  background-color: #dde8f2;
  border: 1px solid #a8c0d8;
}
.btn-save-action:hover {
  background-color: #2d4f6e;
  border-color: #2d4f6e;
  color: #fff;
}

.btn-share-action {
  color: #2d4f6e;
  background-color: #dde8f2;
  border: 1px solid #a8c0d8;
}
.btn-share-action:hover {
  background-color: #2d4f6e;
  border-color: #2d4f6e;
  color: #fff;
}

.sidebar-link-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  background: #fff;
  border: 1.5px solid #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;

  &:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
  }
}

.sidebar-link-icon {
  font-size: 1rem;
  color: #6366f1;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}
.progress-h-6 {
  height: 6px;
}

.badge-outline-purple {
  font-size: 0.82rem;
  font-weight: 500;
  background: transparent;
  border: 1.5px solid var(--color-purple);
  color: var(--color-purple);
  border-radius: 9999px;
}

.badge-project {
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 9999px;
}

.project-detail-top-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 0.2rem;
}

.contest-banner {
  background: linear-gradient(100deg, #1e2fb3 0%, #2563eb 45%, #00c4b4 100%);
  color: #fff;
  padding: 1.4rem 0;
  position: relative;
  overflow: hidden;
}

/* 우측 큰 원호 */
.contest-banner-arc {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}
.contest-banner-arc2 {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.banner-label {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.banner-badge-done {
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 9999px;
  padding: 0.1rem 0.6rem;
}
.banner-sub {
  font-size: 0.82rem;
  color: #7dd3fc;
  margin-top: 0.1rem;
}
.banner-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.8);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.4rem 1.2rem;
  white-space: nowrap;
  transition: background .2s, color .2s;

  &:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
  }
}
.banner-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.banner-progress-inner {
  width: 100px;
  height: 5px;
  background: rgba(255,255,255,0.25);
  border-radius: 9999px;
  overflow: hidden;
}
.banner-progress-fill {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 9999px;
}
.banner-progress-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.completed-bar {
  background: linear-gradient(90deg, #eff6ff, #f5f3ff);
  border: 1px solid #bfdbfe;
  border-radius: .75rem;
  padding: 1rem 1.25rem;
}


/* ══════════════════════════════════════════════════════
   CONTEST DETAIL PAGE
   ══════════════════════════════════════════════════════ */

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.timeline-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.quest-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.prize-row {
  border-radius: .75rem;
  padding: 1.5rem;
}
.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1.5rem;

  &:last-child {
    border-bottom: none;
  }
}
.cd-tabs .nav-item {
  position: relative;

  &:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1.25rem;
    background: #e5e7eb;
  }
}
.cd-tabs .nav-link {
  color: #6b7280;
  font-weight: 500;
  font-size: 1.15rem;
  padding: .75rem 2.75rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  border-radius: 0;

  &.active {
    color: var(--color-purple);
    border-bottom-color: var(--color-purple);
    font-weight: 600;
  }

  &:hover:not(.active) {
    color: #374151;
  }
}
.contest-detail-hero {
  padding-top: 2.5rem !important;
  /* 흰 글씨 가독성: 이미지 위 진한 보라 그라디언트 오버레이(밝은 영역 대비 확보).
     이미지 미로드 시에도 회색 폴백(#f3f8ff) 대신 보라 배경 유지(background-color는 쇼트핸드 뒤). */
  background:
              linear-gradient(135deg, rgba(76, 29, 149, 0.85) 0%, rgba(91, 33, 182, 0.75) 40%, rgba(49, 46, 129, 0.72) 100%),
              url('../img/bg_contest_detail_top.jpg') center/cover no-repeat;
  background-color: #5b21b6;

  & .badge {
    font-size: 0.95rem;
    padding: 0.5em 1em !important;
    border-radius: 9999px !important;
    line-height: 1.4;
  }
}
.btn-hero-primary {
  background-color: #fff;
  color: #7c3aed;
  border-color: #fff;
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-hero-primary:hover {
  background-color: #ede9fe;
  color: #5b21b6;
  border-color: #ede9fe;
  transform: translateY(-2px);
}

.btn-hero-secondary {
  background-color: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-hero-secondary:hover {
  background-color: rgba(255,255,255,0.28);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.contest-detail-hero-img-wrap {
  border-radius: 1rem;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,.2);
  box-shadow: 0 25px 50px rgba(0,0,0,.3);
}


/* ══════════════════════════════════════════════════════
   MAKER PROFILE PAGE
   ══════════════════════════════════════════════════════ */

.profile-hero {
  background: url('../img/bg_mymake.jpg') center/cover no-repeat;
}
.maker-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 4px solid rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  flex-shrink: 0;
}
.maker-award-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eab308;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .75rem;
  background: rgba(255,255,255,.15);
  border-radius: 9999px;
  font-size: .82rem;
  font-weight: 500;
  color: #fff;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .83rem;
  color: rgba(255,255,255,.8);
}
.sns-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .75rem;
  background: rgba(255,255,255,.12);
  border-radius: 9999px;
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: background .15s;

  &:hover {
    background: rgba(255,255,255,.25);
    color: #fff;
  }
}
.maker-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .65rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid;
}
.badge-amber {
  background: #8ad9b8;
  color: var(--color-10);
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-yellow {
  background: #fefce8;
  color: #92400e;
  border-color: #fde68a;
}
.badge-blue {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}
.badge-purple {
  background: #f5f3ff;
  color: #5b21b6;
  border-color: #ddd6fe;
}
.badge-green {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}
.badge-orange {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}
.badge-gray {
  background: #f9fafb;
  color: #374151;
  border-color: #d1d5db;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.mp-tab-btn {
  color: #6b7280;
  padding: .5rem 1.25rem;
  border: 0;
  background: transparent;
  white-space: nowrap;

  &.active {
    color: #2563eb;
    font-weight: 600;
    border-bottom: 2px solid #2563eb;
  }
}
.mp-tab-pane {
  display: none;

  &.active {
    display: block;
  }
}
.proj-card {
  border: 2px solid #e5e7eb;
  border-radius: .75rem;
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;

  &:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
  }
}
.proj-card-img {
  width: 208px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
  }
}
.proj-card:hover .proj-card-img img {
  transform: scale(1.05);
}
@media (max-width: 576px) {
  .proj-card {
    flex-direction: column !important;
  }

  .proj-card-img {
    width: 100%;
    height: 160px;
  }
}
.activity-type-icon {
  width: 40px;
  height: 40px;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.25rem;
  border-radius: .75rem;
  border: 1px solid;
  text-align: center;
}
.badge-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.summary-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border-radius: .75rem;
}
.summary-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border-radius: 50%;
}
.privacy-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .75rem;
  border-radius: .5rem;
  font-size: .78rem;
  font-weight: 500;
}
.privacy-on {
  background: #f0fdf4;
  color: #166534;
}
.privacy-off {
  background: #f9fafb;
  color: #9ca3af;
}
.contest-item {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: .75rem;
  cursor: pointer;
  transition: all .15s;

  &:hover {
    border-color: #c4b5fd;
    background: #f5f3ff;
  }
}
.av-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
}


/* ══════════════════════════════════════════════════════
   MY MAKE PAGE
   ══════════════════════════════════════════════════════ */

.hero-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 60%, #db2777 100%);
}
.avatar-xl {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  border: 4px solid #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.icon-circle-80 {
  width: 80px;
  height: 80px;
  font-size: 1.75rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
}
.icon-circle-28-btn {
  width: 28px;
  height: 28px;
  bottom: 2px;
  right: 2px;
  font-size: .8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff !important;
}

.my-make-summary-card {
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  border: 1px solid #e5e7eb;

  &:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.10);
    transform: translateY(-2px);
  }
}
.my-make-project-card {
  cursor: pointer;
  transition: box-shadow .3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  &:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
  }

  & img {
    transition: transform .5s;
  }

  &:hover img {
    transform: scale(1.08);
  }

  & .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  & .card-body .pt-2.border-top {
    margin-top: auto;
  }
}
.filter-tab {
  padding: .4rem .85rem;
  border-radius: .6rem;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  transition: all .15s;
  cursor: pointer;

  &:hover {
    background: #f3f4f6;
  }

  &.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
  }

  &.active-purple {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
  }
}
.activity-card-link {
  border-left: 4px solid transparent;
  transition: box-shadow .2s;
  cursor: pointer;

  &:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
  }

  &.has-new {
    border-left-color: #7c3aed;
  }
}
.like-tab-btn,
.save-tab-btn {
  padding: .4rem 1rem;
  border-radius: .75rem;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;

  &.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
  }
}
.reaction-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: .75rem;
  padding: .85rem;
}
.following-maker {
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  overflow: hidden;

  &.has-update {
    border-color: #bfdbfe;
    background: #f0f7ff;
  }
}
.app-status-card {
  border-radius: .75rem;
}
.section-divider {
  border-top: 1px solid #e5e7eb;
  padding-top: 2rem;
  margin-top: 2rem;
}
.quest-btn-primary {
  background: linear-gradient(90deg, #7c3aed, #db2777);
  border: none;
  color: #fff;
  padding: .45rem 1rem;
  border-radius: .5rem;
  font-size: .85rem;
  font-weight: 600;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: opacity .15s;

  &:hover {
    opacity: .88;
    color: #fff;
  }
}
.quick-action-card {
  background: linear-gradient(135deg, #f5f3ff, #fdf2f8);
  border: 1px solid #e9d5ff;
}
.quick-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .55rem .85rem;
  border-radius: .5rem;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  text-align: left;
  transition: background .15s;
  cursor: pointer;

  &:hover {
    background: #f9fafb;
  }
}
.week-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: .9rem;

  &:last-child {
    border-bottom: none;
  }
}
.qa-type-btn.qa-selected .qa-icon {
  color: #2563eb !important;
}
.qa-type-btn.qa-selected .qa-type-label {
  color: #2563eb;
}
.qa-role-btn {
  &.qa-selected {
    border-color: var(--color-green) !important;
    background: #f0fdfb !important;
  }

  &.qa-selected .qa-icon {
    color: var(--color-green) !important;
  }
}


/* ══════════════════════════════════════════════════════
   EVENTS PAGE
   ══════════════════════════════════════════════════════ */

.events-hero {
  background: linear-gradient(135deg, rgba(0,51,153,0.6) 0%, rgba(0,20,80,0.6) 100%),
              url('../img/bg_event.jpg') center/cover no-repeat;
}
.event-card-img {
  height: 160px;
  object-fit: cover;
}

.events-card {
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  background: #fff !important;
  border-radius: 0.75rem !important;
  overflow: hidden;
}
.events-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.35) !important;
}
.events-card img {
  height: 200px;
  object-fit: cover;
}
.events-card .card-footer {
  background: #fff !important;
}
.events-card .badge {
  border-radius: 9999px !important;
  font-weight: 500;
}
.event-badge-type {
  background: #003399;
  color: #fff;
}
.event-progress {
  height: 4px;
}
.events-card .card-body h6 {
  font-size: 1.05rem;
}
.events-card .card-body .small i {
  color: #003399;
  margin-right: 0.5rem;
}
.events-card .card-body .small {
  letter-spacing: 0.04em;
}


/* ── Sponsor Bar (공통) ─────────────────────────────── */
.sponsor-bar {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 2rem 0;
  overflow: hidden;
}
.sponsor-bar-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 1.5rem;
}
.sponsor-track-wrap {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.sponsor-track-wrap:hover .sponsor-list {
  animation-play-state: paused;
}
.sponsor-list {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 3.5rem;
  animation: sponsor-scroll 28s linear infinite;
}
@keyframes sponsor-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.sponsor-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.sponsor-item img {
  height: 26px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.45);
  transition: filter 0.3s ease;
}
.sponsor-item img:hover {
  filter: grayscale(0%) opacity(1);
}
@media (max-width: 767px) {
  .sponsor-item img { height: 20px; }
  .sponsor-list { gap: 2.5rem; }
}


/* ══════════════════════════════════════════════════════
   NOTICES PAGE
   ══════════════════════════════════════════════════════ */

.notice-card-img {
  height: 160px;
  object-fit: cover;
}
.pin-icon {
  width: 14px;
}


/* ══════════════════════════════════════════════════════
   CREATE CONTEST PROJECT PAGE
   ══════════════════════════════════════════════════════ */

.contest-create-hero {
  background:
    linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('../img/bg_quest.jpg') center/cover no-repeat;
  color: #fff;
  /* 콘텐츠(배지/stepper/부제목 등)가 늘어나도 잘리지 않도록 min-height 로 전환.
     기존 188.05px 시각 footprint 는 유지된다. */
  min-height: 188.05px;
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
}

.personal-create-hero {
  background:
    linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('../img/hero-circuit-bg.svg') center/cover no-repeat;
  color: #fff;
  height: 188.05px;
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* 제출 준비 카드 */
.submit-ready-card {
  padding: 1.25rem 1.5rem !important;
}

.submit-ready-icon {
  color: #ff6100;
}

.submit-ready-text {
  flex: 1 1 auto;
  min-width: 0;
}

.submit-ready-title {
  font-size: 1.3rem;
}

.submit-ready-desc {
  font-size: 1rem;
}

.bottom-warn-box {
  background: #fefdf8;
  border: 1px solid #efe2ad;
  border-left: 4px solid #92400e;
  border-radius: .5rem;
  padding: 1rem 1.25rem;
  color: #92400e;
}

.bottom-warn-title {
  font-size: .95rem;
}

.bottom-warn-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.bottom-warn-list li {
  display: inline-flex;
  align-items: center;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: .3rem .8rem;
  border-radius: 9999px;
  font-size: .85rem;
  font-weight: 500;
}

@media (max-width: 575.98px) {
  .submit-ready-actions {
    width: 100%;
  }
  .submit-ready-actions .btn {
    flex: 1;
  }
  .submit-ready-title {
    font-size: 1.15rem;
  }
}

/* ──────────────────────────────────────────────────────────
   제출 버튼 — 폼 검증 상태에 따른 활성/비활성 디자인 분리
   .btn-submit-primary       : 기본 (큰 사이즈, 하단 버튼)
   .btn-submit-primary--sm   : 작은 사이즈 (헤더 버튼)
   ────────────────────────────────────────────────────────── */
.btn-submit-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .85rem 1.5rem;
  border-radius: .65rem;
  border: 1px solid transparent;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition:
    background .2s ease,
    color .2s ease,
    box-shadow .25s ease,
    transform .15s ease,
    border-color .2s ease;
  cursor: pointer;
}

.btn-submit-primary--sm {
  padding: .45rem 1rem;
  font-size: .875rem;
  border-radius: .5rem;
}

/* ─── 활성 상태 (폼 검증 통과) ─────────────────────────── */
.btn-submit-primary:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .28);
}

.btn-submit-primary:not(:disabled) .js-submit-icon,
.btn-submit-primary:not(:disabled) .js-submit-label {
  color: #ffffff;
}

.btn-submit-primary:not(:disabled):hover,
.btn-submit-primary:not(:disabled):focus-visible {
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(124, 58, 237, .42);
  transform: translateY(-1px);
  outline: none;
}

.btn-submit-primary:not(:disabled):focus-visible {
  outline: 3px solid rgba(124, 58, 237, .35);
  outline-offset: 2px;
}

.btn-submit-primary:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(124, 58, 237, .35);
}

/* 활성 상태에서는 안내 힌트 숨김 */
.btn-submit-primary:not(:disabled) .btn-submit-state-hint {
  display: none;
}

/* ─── 비활성 상태 (검증 미통과) ───────────────────────── */
.btn-submit-primary:disabled,
.btn-submit-primary[disabled] {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1; /* 부트스트랩 기본 .65 opacity 덮어쓰기 */
  pointer-events: auto; /* 마우스 hover 인식해서 not-allowed 커서 표시 */
}

.btn-submit-primary:disabled .js-submit-icon,
.btn-submit-primary:disabled .js-submit-label,
.btn-submit-primary[disabled] .js-submit-icon,
.btn-submit-primary[disabled] .js-submit-label {
  color: #9ca3af;
}

/* 비활성 상태에서만 보이는 보조 안내 (큰 버튼 한정) */
.btn-submit-primary .btn-submit-state-hint {
  display: block;
  flex-basis: 100%;
  margin-top: .25rem;
  font-size: .78rem;
  font-weight: 500;
  color: #9ca3af;
  letter-spacing: 0;
}

.btn-submit-primary--sm .btn-submit-state-hint {
  display: none; /* 헤더 작은 버튼에는 안내 텍스트 미노출 */
}

/* 비활성 상태에서 hover 했을 때 살짝의 시각 피드백 (변경 없이 멈춤) */
.btn-submit-primary:disabled:hover,
.btn-submit-primary[disabled]:hover {
  background: #f3f4f6;
  color: #9ca3af;
  transform: none;
  box-shadow: none;
}

/* 로딩 (submitting) 상태: 활성 색을 유지하되 살짝 어둡게 */
.btn-submit-primary.is-loading,
.btn-submit-primary:disabled.is-loading {
  background: linear-gradient(135deg, #1e40af 0%, #6d28d9 100%);
  color: #ffffff;
  cursor: progress;
  opacity: .9;
}
.btn-submit-primary.is-loading .js-submit-icon,
.btn-submit-primary.is-loading .js-submit-label {
  color: #ffffff;
}
.btn-submit-primary.is-loading .btn-submit-state-hint {
  display: none;
}

.personal-create-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.personal-create-hero > .container,
.personal-create-hero > [class*="container-"] {
  position: relative;
  z-index: 2;
}
.personal-create-hero::before {
  z-index: 1;
}

.personal-create-hero .pch-btn-group { margin-right: 5rem; }
.personal-create-hero .pch-btn-group .btn { opacity: 1 !important; isolation: isolate; }
@media (max-width: 767.98px) {
  .personal-create-hero .pch-btn-group { margin-right: 0; gap: .4rem !important; }
  .personal-create-hero {
    padding: 2rem 0;
  }
  .personal-create-hero .ccp-hero-title {
    font-size: 1.4rem;
  }
  .personal-create-hero .d-flex.gap-2 {
    flex-wrap: nowrap;
  }
  /* 모바일에서 hero 버튼 쌍(미리보기 + 프로젝트 생성)을 좁고 컴팩트하게 — 가독성 유지하면서 화면 차지 비중 감소.
     .btn-submit-primary 부모 규칙의 flex-wrap:wrap 이 좁은 폭에서 아이콘/라벨을 세로로 분리시키므로
     display:inline-flex + flex-wrap:nowrap 으로 가로 한 줄 정렬을 강제한다. */
  .personal-create-hero .pch-btn-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    flex: 1 1 0;
    min-width: 0;
    padding: .4rem .55rem;
    font-size: .8rem;
    line-height: 1.2;
    border-radius: .45rem;
    white-space: nowrap;
  }
  .personal-create-hero .pch-btn-group .btn i {
    margin-right: .3rem !important;
  }
}
@media (max-width: 374.98px) {
  .personal-create-hero .pch-btn-group .btn {
    padding: .35rem .45rem;
    font-size: .74rem;
  }
  .personal-create-hero .pch-btn-group .btn i {
    margin-right: .2rem !important;
  }
}

/* ──────────────────────────────────────────────────
   예상 소요 기간 — 라디오버튼 옵션 (select 대체)
   pill 형태의 단일선택 버튼군. .is-active 가 선택 상태.
   브랜드 그라디언트는 .btn-submit-primary 와 동일 톤.
   ────────────────────────────────────────────────── */
.duration-options {
  margin-top: .25rem;
}
.duration-opt {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #475569;
  border-radius: 9999px;
  padding: .5rem 1.05rem;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .2s ease, transform .1s ease;
}
.duration-opt:hover {
  border-color: #c7d2fe;
  background: #f5f3ff;
  color: #1e293b;
}
.duration-opt:focus-visible {
  outline: 3px solid rgba(124, 58, 237, .25);
  outline-offset: 2px;
}
.duration-opt.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, .28);
}
.duration-opt.is-active:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
  color: #fff;
}
@media (max-width: 575.98px) {
  .duration-opt {
    padding: .42rem .85rem;
    font-size: .85rem;
  }
}

/* ══════════════════════════════════════════════════
   Quest 사이드바 컴포넌트
   ══════════════════════════════════════════════════ */

/* ── Progress Stepper ─────────────────────────── */
.qs-progress-card {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
}
.qs-progress-header {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.1rem;
}
.qs-progress-header i,
.qs-tips-title i,
.qs-community-title i,
.qs-deadline-icon i,
.qs-info-title i,
.qs-criteria-title i { margin-right: .45rem; }
.qs-steps { display: flex; flex-direction: column; }
.qs-step {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  position: relative;
  padding-bottom: 1rem;
}
.qs-step--last { padding-bottom: 0; }
.qs-step::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
  z-index: 0;
}
.qs-step--last::before { display: none; }
.qs-step--done::before   { background: linear-gradient(to bottom, #cbd5e1, #e2e8f0); }
.qs-step--active::before { background: linear-gradient(to bottom, #7c3aed, #e2e8f0); }
.qs-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.qs-step--done .qs-step-dot {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #94a3b8;
}
.qs-step--active .qs-step-dot {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 10px rgba(99,60,219,.35);
}
.qs-step-title {
  font-size: .95rem;
  font-weight: 600;
  color: #64748b;
  padding-top: .3rem;
  line-height: 1.3;
}
.qs-step--done .qs-step-title   { color: #94a3b8; }
.qs-step--active .qs-step-title { color: #2563eb; }
.qs-step-sub {
  font-size: .9rem;
  color: #94a3b8;
  margin-top: .15rem;
}
.qs-step--done .qs-step-sub { color: #94a3b8; }

/* ── Tips ─────────────────────────────────────── */
.qs-tips-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
}
.qs-tips-title {
  font-size: 1rem;
  font-weight: 700;
  color: #3730a3;
  margin-bottom: .85rem;
}
.qs-tips-card li { font-size: .92rem; color: #4b5563; }
.qs-tips-card li .fa-circle-check { color: #6366f1; }

/* ── Community ────────────────────────────────── */
.qs-community-card {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
}
.qs-community-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: .4rem;
}
.qs-community-desc {
  font-size: .9rem;
  color: #64748b;
  margin-bottom: .9rem;
}
.qs-community-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .6rem;
  color: #374151;
  font-size: .92rem;
  font-weight: 500;
  padding: .45rem .9rem;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.qs-community-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}
.qs-community-note {
  font-size: .82rem;
  color: #94a3b8;
}

/* ── Deadline ─────────────────────────────────── */
.qs-deadline-card {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
}
.qs-deadline-icon { color: #f59e0b; font-size: 1.1rem; padding-top: .15rem; }
.qs-deadline-title { font-size: .95rem; font-weight: 700; color: #78350f; margin-bottom: .35rem; }
.qs-deadline-body  { font-size: .9rem; color: #92400e; }
.qs-deadline-warn  { font-size: .85rem; color: #b45309; font-weight: 500; margin-top: .35rem; }

/* ── Info Card (Quest 2) ──────────────────────── */
.qs-info-card {
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
}
.qs-info-title { font-size: 1rem; font-weight: 700; color: #1e3a8a; margin-bottom: .8rem; }
.qs-info-body  { display: flex; flex-direction: column; gap: .65rem; }
.qs-info-row   { display: flex; flex-direction: column; }
.qs-info-label { font-size: .82rem; color: #94a3b8; font-weight: 500; }
.qs-info-value { font-size: .95rem; font-weight: 600; color: #1e293b; }

/* ── Criteria (Quest 3) ───────────────────────── */
.qs-criteria-card {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.qs-criteria-title { font-size: 1rem; font-weight: 700; color: #1e293b; margin-bottom: .85rem; }
.qs-criteria-list  { display: flex; flex-direction: column; gap: .55rem; }
.qs-criteria-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .92rem;
  color: #475569;
}
.qs-criteria-score { font-weight: 700; color: #1e293b; }
.qs-criteria-total {
  border-top: 1px solid #e2e8f0;
  padding-top: .55rem;
  font-weight: 700;
  color: #1e293b;
}
.qs-criteria-total .qs-criteria-score { color: #2563eb; font-size: 1rem; }

/* ── 안내 카드 ────────────────────────────────── */
/* ── Quest: 안내 카드 ────────────────────────────── */
.quest-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

.quest-info-card-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
  flex-shrink: 0;
}

.quest-info-card h6 {
  color: #1e293b;
  font-size: 1.05rem;
}

.quest-info-card ul li {
  color: #64748b;
  font-size: .95rem;
}

.quest-info-card ul li strong {
  color: #1e293b;
  font-weight: 500;
}

.quest-info-card-meta {
  color: #64748b;
}

/* ── Quest: 제출 버튼 ────────────────────────────── */
.btn-blue-purple,
.bg-gradient-blue-purple {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  border: none;
}
.btn-blue-purple:hover,
.btn-blue-purple:focus {
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
  color: #fff;
  border: none;
}
.btn-blue-purple:active {
  background: linear-gradient(135deg, rgba(29,78,216,0.85) 0%, rgba(109,40,217,0.85) 100%) !important;
  color: rgba(255,255,255,0.88) !important;
}
.btn-blue-purple:disabled,
.btn-blue-purple.disabled {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  opacity: .5;
  color: #fff;
}

/* ── Quest: 뒤로가기 링크 ────────────────────────── */
.quest-back-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  background: #f1f5f9;
  border: 1px solid #c9d3db;
  border-radius: 9999px;
  padding: .35rem .9rem;
  transition: background .15s, color .15s, border-color .15s;
}
.quest-back-link:hover {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #cbd5e1;
}

/* ── CCP: Hero 아이콘 & 배지 ─────────────────────── */
.ccp-hero-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
  font-size: 2rem;
  color: #fff;
  flex-shrink: 0;
}

.ccp-hero-badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #00ffce;
  font-size: .88rem;
  font-weight: 500;
  padding: .35rem 1rem;
  border-radius: 9999px;
  letter-spacing: .01em;
  margin-bottom: .6rem;
}

.ccp-hero-title {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-top: .4rem;
}

.ccp-hero-desc {
  font-size: .9rem;
  opacity: .9;
  line-height: 1.7;
}

/* ── CCP: Key Message 카드 ───────────────────────── */
.ccp-key-message {
  background: #eef2ff;
  border: 1px solid #c7d2fe !important;
}

.ccp-key-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  color: #4f46e5;
  font-size: 1.1rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.ccp-key-title {
  font-size: 1.25rem;
  color: #0B1B3B;
}

.ccp-key-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.ccp-key-list li {
  font-size: .95rem;
  font-weight: 500;
  color: #3540ae;
  line-height: 1.55;
}

.ccp-key-list i {
  color: #3540ae;
}
.ccp-key-list strong { font-weight: 500; }

/* ── CCP: 사이드바 공통 카드 아이콘 ─────────────── */
.ccp-scard-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ccp-scard-icon-purple { background: #ede9fe; color: #7c3aed; }
.ccp-scard-icon-blue   { background: #dbeafe; color: #2563eb; }
.ccp-scard-icon-green  { background: #dcfce7; color: #16a34a; }
.ccp-scard-icon-violet { background: #f5f3ff; color: #6d28d9; }
.ccp-scard-icon-orange { background: #ffedd5; color: #ea580c; }
.ccp-scard-icon-red    { background: #fee2e2; color: #dc2626; }

/* ── CCP: 콘테스트 정보 카드 ─────────────────────── */
.ccp-sidebar-contest {
  background: #fff;
  border: 1px solid #e5e7eb !important;
}

.ccp-sidebar-personal {
  background: #fff;
  border: 1px solid #e5e7eb !important;
}

.ccp-contest-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e1b4b;
}

.ccp-deadline-box {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: .75rem;
  padding: .85rem 1.1rem;
}

.ccp-deadline-label {
  font-size: .75rem;
  font-weight: 600;
  color: #991b1b;
  letter-spacing: .02em;
  margin-bottom: .1rem;
}

.ccp-deadline-date {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e1b4b;
}

/* ── CCP: Quest 진행 구조 ────────────────────────── */
.ccp-quest-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 0.5rem;
}

.ccp-quest-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.ccp-quest-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 800;
  z-index: 1;
}

.ccp-quest-num-active {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  box-shadow: 0 3px 10px rgba(37,99,235,.4);
}

.ccp-quest-num-inactive {
  background: #f3f4f6;
  color: #9ca3af;
  border: 2px solid #e5e7eb;
}

.ccp-quest-body { padding-top: .4rem; }

.ccp-quest-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: .2rem;
}

.ccp-quest-desc {
  font-size: .95rem;
  color: #8f96a1;
  line-height: 1.5;
  margin-bottom: .3rem;
}

.ccp-quest-date {
  font-size: .9rem;
  color: #6b7280;
}

/* ── CCP: 프로젝트 진행 흐름 ─────────────────────── */
.ccp-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ccp-flow-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 1.1rem;
}

.ccp-flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.ccp-flow-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  font-weight: 800;
  z-index: 1;
}

.ccp-flow-num-active {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  box-shadow: 0 3px 10px rgba(124,58,237,.4);
}

.ccp-flow-num-inactive {
  background: #f3f4f6;
  color: #9ca3af;
  border: 2px solid #e5e7eb;
}

.ccp-flow-body { padding-top: .35rem; }

.ccp-flow-title {
  font-size: .92rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: .15rem;
}

.ccp-flow-sub {
  font-size: .82rem;
  color: #6b7280;
}

/* ── CCP: 커뮤니티 도움받기 카드 ────────────────── */
.ccp-community-card {
  background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
  border: 1.5px solid #ddd6fe !important;
}

.ccp-comm-btn {
  width: 100%;
  text-align: left;
  border-radius: .65rem;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  border: 1.5px solid transparent;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.ccp-comm-btn-icon {
  width: 30px;
  height: 30px;
  border-radius: .45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  flex-shrink: 0;
}

.ccp-comm-btn-blue .ccp-comm-btn-icon  { background: #dbeafe; color: #2563eb; }
.ccp-comm-btn-green .ccp-comm-btn-icon { background: #dcfce7; color: #16a34a; }
.ccp-comm-btn-orange .ccp-comm-btn-icon{ background: #ffedd5; color: #ea580c; }
.ccp-comm-btn-purple .ccp-comm-btn-icon{ background: #ede9fe; color: #7c3aed; }

.ccp-comm-btn-blue:hover  { border-color: #bfdbfe; background: #eff6ff; }
.ccp-comm-btn-green:hover { border-color: #bbf7d0; background: #f0fdf4; }
.ccp-comm-btn-orange:hover{ border-color: #fed7aa; background: #fff7ed; }
.ccp-comm-btn-purple:hover{ border-color: #ddd6fe; background: #f5f3ff; }

/* ── CCP: 도움말 카드 ────────────────────────────── */
.ccp-help-card {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe !important;
}


/* ══════════════════════════════════════════════════════
   인라인 스타일 유틸리티 클래스
   ══════════════════════════════════════════════════════ */

/* CTA 섹션 버튼 */
.btn-cta-white {
  background: #fff;
  color: #1e3a8a;
}

/* CTA 섹션 텍스트 */
.cta-text-opacity {
  opacity: .85;
}

/* 진행 중인 콘테스트 progress height */
.progress-h6 {
  height: 6px;
}

/* 프로젝트 생성 모달 나중에하기 버튼 래퍼 */
.later-btn-wrap {
  text-align: center;
  margin-top: 1.25rem;
}

/* community.html 히어로 섹션 */
.community-hero {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

/* community.html 히어로 서브텍스트 */
.community-hero-sub {
  opacity: .85;
}

/* community.html 통계 강조 색상 */
.stat-purple {
  color: #7c3aed;
}

/* community.html 사이드바 그라디언트 카드 */
.sidebar-gradient-card {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
}

/* community.html section-header 색상 */
.section-header-blue {
  border-color: #2563eb;
}

.section-header-purple {
  border-color: #7c3aed;
}

.section-header-green {
  border-color: #16a34a;
}

.section-header-amber {
  border-color: #d97706;
}

/* login.html / signup.html e4ds 오렌지 컬러 */
.text-e4ds-orange {
  color: var(--e4ds-orange);
}

/* maker-profile.html 프로필 설명 텍스트 */
.profile-bio {
  color: rgba(255,255,255,.9);
  font-size: 1.05rem;
}

/* maker-profile.html 통계 아이콘 색상 */
.stat-icon-blue {
  color: #2563eb;
}

.stat-icon-red {
  color: #ef4444;
}

.stat-icon-gray {
  color: #6b7280;
}

.stat-icon-purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.stat-icon-yellow {
  background: #fefce8;
  color: #ca8a04;
}

/* maker-profile.html 통계 라벨 */
.stat-label-sm {
  font-size: .78rem;
}

/* maker-profile.html 기술 배지 (보라) */
.badge-tech-purple {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

/* maker-profile.html 관심분야 배지 (초록) */
.badge-interest-green {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* my-make.html 아이콘 박스들 */
.icon-box-blue {
  background: #eff6ff;
}

.icon-box-purple {
  background: #f5f3ff;
}

.icon-box-green {
  background: #f0fdf4;
}

.icon-box-orange {
  background: #fff7ed;
}

/* my-make.html 색상 강조 */
.text-purple {
  color: #7c3aed;
}

.text-orange {
  color: #f97316;
}

/* my-make.html 카드 커서 */
.card-clickable {
  cursor: pointer;
}

/* my-make.html 카드 이미지 h100 */
.card-img-h100 {
  height: 100px;
  object-fit: cover;
}

/* my-make.html 배지 폰트 사이즈 */
.badge-xs {
  font-size: .65rem;
}

.badge-sm {
  font-size: .7rem;
}

/* my-make.html 아이콘 박스 32 */
.icon-box-32 {
  width: 32px;
  height: 32px;
  border-radius: .375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* my-make.html 알림 배지 위치 */
.notification-badge {
  position: absolute;
  top: 0;
  left: 100%;
  transform: translate(-50%, -50%);
}

/* contest-detail.html 통계 구분선 */
.divider-white-20 {
  width: 1px;
  background: rgba(255,255,255,.2);
}

/* contest-detail.html 라벨 */
.text-light-blue {
  color: rgba(219,234,254,.8);
}

/* contest-detail.html 히어로 이미지 */
.contest-hero-img {
  height: 380px;
  object-fit: cover;
}

/* contest-detail.html 인트로 박스 */
.contest-intro-box {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid #bfdbfe !important;
}

/* project-detail.html 뱃지 bg 컬러 */
.badge-contest {
  background: #7c3aed;
}

/* ── projects.html 카드 이미지 위 뱃지 파스텔 통일 ── */
.project-card-img .badge {
  border-radius: 9999px;
  padding: 0.35rem 0.65rem;
}
.project-card-img .badge.badge-contest {
  font-weight: 500;
}
.project-card-img .badge.bg-success {
  background-color: #d1fae5 !important;
  color: var(--color-green-hover);
}
.project-card-img .badge.bg-warning {
  background-color: #fef9c3 !important;
  color: #92400e;
}
.project-card-img .badge.badge-contest {
  background: #7c3aed !important;
  color: #fff !important;
}
.project-card-img .badge.bg-info {
  background-color: var(--color-blue) !important;
  color: #fff !important;
}
.project-card-img .badge.bg-secondary {
  background-color: #f1f5f9 !important;
  color: #475569;
}
.project-card-img .badge.bg-light {
  background-color: #f8fafc !important;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.badge-award {
  background: linear-gradient(90deg, #eab308, #f97316);
}

.badge-done {
  background: #22c55e;
}

/* project-detail.html 기능 카드 배경 */
.feature-card-bg {
  background: linear-gradient(135deg, #f9fafb, #eff6ff);
}

/* project-detail.html 기능 설명 텍스트 */
.feature-desc {
  font-size: .8rem;
}

/* project-detail.html 저자 아바타 */
.author-av-lg {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}

/* project-detail.html 태그 배지 보라 */
.badge-tag-purple {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
}

/* project-detail.html 메타 아이콘 색상 */
.meta-icon-blue {
  color: #2563eb;
}

.meta-icon-green {
  color: #16a34a;
}

.meta-icon-purple {
  color: #9333ea;
}

/* contest-detail.html 요구조건 불릿 */
.bullet-purple {
  color: #7c3aed;
}

/* community.html 스티키 사이드바 top 값 */
.sticky-top-110-sidebar {
  position: sticky;
  top: 110px;
}

/* CREATE PERSONAL PROJECT PAGE */
.form-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
}

/* 입력란 테두리 가시성 — form-card 의 옅은 그림자 배경과 거의 구분이 안 되던 문제 해소.
   레거시 /assets/css/style.css 의 .form-control { border-color:#eeeeee !important; } 가
   더 낮은 specificity 임에도 !important 로 덮어쓰고 있어, 동일하게 !important 로 맞춰야 적용됨.
   장기적으로는 style.css 의 !important 제거가 깔끔하지만 사이트 전역 영향이 있어 별도 정리로 미룸. */
.form-card .form-control,
.form-card .form-select {
  border-color: #cbd5e1 !important;
}
.form-card .form-control:hover:not(:focus):not(:disabled):not([readonly]):not(.is-invalid),
.form-card .form-select:hover:not(:focus):not(:disabled):not(.is-invalid) {
  border-color: #94a3b8 !important;
}
.form-card .form-control.is-invalid,
.form-card .form-select.is-invalid {
  border-color: #dc3545 !important;
}

/* input/textarea 안쪽 여백 축소, 높이 40px 고정 — 상속된 50px 오버라이드 */
.form-card .form-control,
.form-card .form-select {
  padding: .3rem .6rem;
  height: 40px !important;
}

/* textarea — height 고정값 해제 후 min-height 로만 제어 */
.form-card textarea.form-control {
  height: auto !important;
  min-height: 92px;
}

/* 항목 간 여백 증가 — Bootstrap mb-3(1rem) 대신 1.75rem 으로 확대 */
.form-card > .mb-3,
.form-card > .row.mb-3 {
  margin-bottom: 1.75rem !important;
}

.form-section-title {
  font-size: 1.25rem;
}
.sticky-sidebar .form-section-title { font-size: 1.1rem; }

.section-icon {
  width: 40px;
  height: 40px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upload-zone {
  border: 2px dashed #d1d5db;
  border-radius: .75rem;
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s;
}

.upload-zone:hover {
  border-color: #ec4899;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .65rem;
  border-radius: 9999px;
  font-size: .8rem;
  font-weight: 500;
}

.chip-green {
  background: #d1fae5;
  color: #065f46;
}

.chip-purple {
  background: #ede9fe;
  color: #5b21b6;
}

.chip-blue {
  background: #dbeafe;
  color: #1e40af;
}

.chip-orange {
  background: #fed7aa;
  color: #92400e;
}

.remove-x {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  font-size: .75rem;
}

/* Sticky top bar */
.page-top-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: .875rem 0;
}

/* 커뮤니티 버튼 */
.comm-btn {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e9d5ff;
  border-radius: .5rem;
  padding: .65rem .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s;
}

.comm-btn:hover {
  background: #faf5ff;
}

/* 미리보기 패널 (우측 슬라이드인) */
/* 글로벌 모바일 헤더 로고(.sinmun-mobile-nav .logo) 가 z-index:9910 으로 떠 있어
   기본 모달 z-index(1045~) 로는 패널이 헤더 로고 뒤로 깔린다. 그 위로 올린다. */
#preview-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10045;
  background: rgba(0,0,0,.4);
  opacity: 0;
  transition: opacity .25s;
}

#preview-overlay.show {
  opacity: 1;
}

#preview-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 680px;
  z-index: 10046;
  background: #fff;
  box-shadow: -8px 0 40px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}

#preview-panel.show {
  transform: translateX(0);
}

.preview-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
  flex-shrink: 0;
  background: #fff;
}

.preview-tab-switch {
  background: #f3f4f6;
  border-radius: .5rem;
  padding: .25rem;
  display: inline-flex;
}

.preview-tab-btn {
  border: none;
  background: none;
  border-radius: .375rem;
  padding: .35rem .8rem;
  font-size: .82rem;
  color: #6b7280;
  cursor: pointer;
  transition: all .15s;
}

.preview-tab-btn.active {
  background: #fff;
  color: #111827;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.preview-draft-banner {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: .5rem 1.5rem;
  font-size: .78rem;
  color: #92400e;
  flex-shrink: 0;
}

.preview-body {
  flex: 1;
  overflow-y: auto;
  font-size: 1.05rem;
}
/* preview-body 아이콘 여백 */
.preview-body i[class*="fa-"] { margin-right: 0.4rem; }
/* preview-body 내부 폰트 클래스 */
.pvw-xxs  { font-size: 0.80rem; }
.pvw-xs   { font-size: 0.82rem; }
.pvw-btn  { font-size: 0.85rem; }
.pvw-sm   { font-size: 0.88rem; }
.pvw-sm2  { font-size: 0.92rem; }
.pvw-sm3  { font-size: 0.93rem; }
.pvw-base { font-size: 0.95rem; }
.pvw-md   { font-size: 1rem;    }
.pvw-lg   { font-size: 1.05rem; }
.pvw-h2   { font-size: 1.1rem;  }
.pvw-h1   { font-size: 1.45rem; }
.pvw-icon { font-size: 2.1rem;  }

.preview-footer {
  border-top: 1px solid #e5e7eb;
  padding: .875rem 1.5rem;
  background: #f9fafb;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* checklist */
/* 체크리스트 카드 리디자인 */
.ccp-checklist-card {
  background: #fff;
  border: 1px solid #e5e7eb !important;
}

.checklist-progress-label {
  font-size: .82rem;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: .01em;
}

.checklist-progress-pct {
  font-size: .9rem;
  font-weight: 700;
  color: #111827;
}

.checklist-progress-bar {
  height: 6px;
  background: #f3f4f6;
  border-radius: 9999px;
  overflow: hidden;
}

.checklist-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 9999px;
  transition: width .3s ease;
}

.checklist-items {
  display: flex;
  flex-direction: column;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .25rem;
  border-bottom: 1px solid #f3f4f6;
  transition: all .2s ease;
}

.checklist-item:last-child {
  border-bottom: 0;
}

.checklist-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .62rem;
  border: 1.5px solid;
  background: transparent;
  transition: all .2s ease;
}

/* 항목별 액센트 컬러 */
.checklist-item--1 .checklist-icon { border-color: #3b82f6; color: #3b82f6; }
.checklist-item--2 .checklist-icon { border-color: #8b5cf6; color: #8b5cf6; }
.checklist-item--3 .checklist-icon { border-color: #14b8a6; color: #14b8a6; }
.checklist-item--4 .checklist-icon { border-color: #f59e0b; color: #f59e0b; }

.checklist-item.is-done.checklist-item--1 .checklist-icon { background: #3b82f6; color: #fff; }
.checklist-item.is-done.checklist-item--2 .checklist-icon { background: #8b5cf6; color: #fff; }
.checklist-item.is-done.checklist-item--3 .checklist-icon { background: #14b8a6; color: #fff; }
.checklist-item.is-done.checklist-item--4 .checklist-icon { background: #f59e0b; color: #fff; }

.checklist-item.is-pending .checklist-icon {
  border-color: #e5e7eb;
}

.checklist-label {
  flex: 1;
  font-size: .9rem;
  font-weight: 500;
  color: #9ca3af;
  min-width: 0;
}

.checklist-item.is-done .checklist-label {
  color: #111827;
}

/* 레거시 체크리스트 (미리보기 상세뷰용) */
.check-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  padding: .2rem 0;
}

.check-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .7rem;
}

.check-dot.done {
  background: #16bc9c;
  color: #fff;
}

.check-dot.pending {
  background: #d1d5db;
}

/* card preview */
.pv-card {
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  overflow: hidden;
}

.pv-card-img {
  height: 176px;
  background: linear-gradient(135deg, #dbeafe, #ede9fe, #fce7f3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: .85rem;
  color: #9ca3af;
}

.pv-card-body {
  padding: 1rem;
}

/* CREATE CONTEST PROJECT PAGE */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .7rem;
  border-radius: 9999px;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
}

.tag-pill:not(.selected) {
  background: #f3f4f6;
  color: #374151;
}

.tag-pill:not(.selected):hover {
  background: #e5e7eb;
}

.tag-pill.selected {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.quest-step {
  display: flex;
  gap: .75rem;
  position: relative;
  padding-bottom: 1.25rem;
}

.quest-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.quest-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
}

.community-action-btn {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  padding: .55rem .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .83rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}

.community-action-btn:hover {
  background: #f9fafb;
}

/* PROJECT CREATE/EDIT PAGE */
.tag-btn {
  cursor: pointer;
  user-select: none;
  transition: all .15s;
}

.tag-btn.selected {
  background: #2563eb !important;
  color: #fff !important;
  border-color: #2563eb !important;
}

.upload-zone-light {
  border: 2px dashed #dee2e6;
  border-radius: .75rem;
  cursor: pointer;
  transition: border-color .2s;
  background: #f8f9fa;
}

.upload-zone-light:hover {
  border-color: #2563eb;
}

.form-section {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 1.5rem;
}

.quest-step-line {
  border-left: 2px solid #e5e7eb;
  padding-left: 1rem;
  position: relative;
}

.quest-step-line::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
}

.quest-step-line.inactive::before {
  background: #d1d5db;
}

.char-count {
  font-size: .75rem;
}

.sticky-top-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

/* PROJECT EDIT: 이미지 호버 오버레이 */
.img-hover-wrap {
  position: relative;
  overflow: hidden;
  border-radius: .75rem;
  cursor: pointer;
}

.img-hover-wrap .img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}

.img-hover-wrap:hover .img-overlay {
  opacity: 1;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 2rem;
  padding: .25rem .75rem;
  font-size: .8rem;
  font-weight: 500;
}

.tag-item .tag-remove {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  color: #1d4ed8;
  opacity: .7;
}

.tag-item .tag-remove:hover {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════
   CONTEST DETAIL PAGE — 미정의 클래스 추가
   (contest-detail.html 에서 사용되나 기존 CSS에 없던 클래스)
   ══════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────── */
/* 히어로 설명 텍스트 — 반투명 흰색 */
.contest-hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* 히어로 CTA 버튼 — 흰색 배경 + 파랑 텍스트 */
.btn-white-blue {
  background-color: #fff;
  color: #2563eb;
  border-color: #fff;
}
.btn-white-blue:hover {
  background-color: #dbeafe;
  color: #1e40af;
  border-color: #dbeafe;
}

/* 히어로 퀵스탯 상단 구분선 (흰색 20% 투명도) */
.border-top-white-20 {
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* 히어로 퀵스탯 텍스트 — 연한 파랑 */
.text-rgba-blue-80 {
  color: rgba(219, 234, 254, 0.85);
}

/* 히어로 퀵스탯 세로 구분선 */
.divider-white {
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
  align-self: stretch;
}

/* 히어로 이미지 최대 높이 */
.hero-img-380 {
  max-height: 380px;
  object-fit: cover;
}

/* 히어로 이미지 하단 그라디언트 오버레이 */
.hero-img-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37, 99, 235, 0.35) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

/* 배지 — 글래스모피즘 스타일 (진행중 등) */
.badge-glass-blur {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* ── 라인 높이 유틸리티 ────────────────────────────────── */
.lh-180 { line-height: 1.8 !important; }
.lh-190 { line-height: 1.9 !important; }
.lh-200 { line-height: 2.0 !important; }

/* ── 폰트 크기 유틸리티 ───────────────────────────────── */
.fs-105  { font-size: 1.05rem !important; }

/* ── 불투명도 유틸리티 ─────────────────────────────────── */
/* Bootstrap 5 는 opacity-25/50/75/100 만 지원 */
.opacity-80 { opacity: 0.8 !important; }

/* ── 회색 배경 유틸리티 ────────────────────────────────── */
.bg-gray-100 { background-color: #f3f4f6 !important; }
.bg-gray-400 { background-color: #9ca3af !important; }

/* ── 카드 그라디언트 + 테두리 ────────────────────────── */
/* 개요 탭 — 파랑·보라 그라디언트 + 파랑 테두리 */
.card-gradient-blue-violet-border-imp {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%) !important;
  border: 1px solid #bfdbfe !important;
}

/* Quest 탭 인포박스 — 연한 파랑 배경 + 파랑 테두리 */
.card-bg-blue-border1 {
  background: #eff6ff;
  border: 1px solid #bfdbfe !important;
}

.cd-quest-infobox {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #f5f3ff 100%);
  border: 1px solid #ddd6fe;
  border-left: 4px solid var(--color-purple);
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
}

.cd-quest-infobox-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-purple), #b87fff);
  color: #fff;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(146,78,255,0.3);
}

.cd-quest-infobox-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-20);
  margin-bottom: 0.5rem;
}

.cd-quest-infobox-text {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 0;

  strong { color: var(--color-purple); font-weight: 700; }
}

/* ── Quest 완료 카드 ─────────────────────────────────── */
.quest-card-done {
  border: 2px solid #86efac !important;
}
.quest-card-done-header {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

/* ── Quest 카드 (qc) ─────────────────────────────────── */
.qc {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  background: #fff;
}

/* 히어로 영역 (번호 + 정보) */
.qc-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
}

/* 본문 영역 (요구사항) */
.qc-body {
  padding: 1.25rem 2rem 1.75rem;
  border-top: 1px solid #f3f4f6;
}

/* 상태별 색상 */
.qc-done   { border: 1.5px solid #bbf7d0; }
.qc-active { border: 1.5px solid #c7d2fe; }
.qc-pending{ border: 1.5px solid #e5e7eb; opacity: 0.85; }

.qc-done   .qc-hero { background: linear-gradient(135deg, #f0fdf4 0%, #f5fffe 100%); }
.qc-active .qc-hero { background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%); }
.qc-pending .qc-hero{ background: #f9fafb; }

.qc-done   .qc-body { border-color: #d1fae5; }
.qc-active .qc-body { border-color: #e0e7ff; }
.qc-pending .qc-body{ border-color: #e5e7eb; }

/* 번호 원 */
.qc-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  flex-shrink: 0;
}

.qc-num-done    { background: linear-gradient(135deg, var(--color-green), #0ab88a); color: #fff; box-shadow: 0 4px 10px rgba(22,188,156,0.3); }
.qc-num-active  { background: linear-gradient(135deg, var(--color-purple), #b87fff); color: #fff; box-shadow: 0 4px 10px rgba(146,78,255,0.3); }
.qc-num-pending { background: #d1d5db; color: #fff; }

.qc-hero-info { flex: 1; }

/* 상태 배지 */
.qc-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.22rem 0.7rem;
  border-radius: 9999px;
}

.qc-status-done    { background: #dcfce7; color: #16a34a; }
.qc-status-active  { background: #ede9fe; color: var(--color-purple); }
.qc-status-pending { background: #e5e7eb; color: #6b7280; }

.qc-score {
  font-size: 0.88rem;
  font-weight: 700;
  color: #6b7280;
}

.qc-dday {
  font-size: 0.75rem;
  font-weight: 700;
  background: #fef9c3;
  color: #b45309;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

.qc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-20);
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
}

.qc-desc {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.qc-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.qc-date-late { color: #d97706; }

/* 요구사항 */
.qc-req-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.qc-req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f9fafb;
  border-radius: 0.65rem;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;

  li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: #374151;
  }

  i {
    font-size: 0.75rem;
    flex-shrink: 0;
    .qc-done & { color: var(--color-green); }
    .qc-active & { color: #c4b5fd; }
    .qc-pending & { color: #d1d5db; }
  }
}

.qc-submit-btn {
  background: linear-gradient(135deg, var(--color-purple), #b87fff);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 0.5rem;

  &:hover { background: linear-gradient(135deg, #7c3aed, var(--color-purple)); color: #fff; }
}

.qc-disabled-btn {
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 0.95rem;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: not-allowed;
}

/* ── Step Circle 보라색 변형 ─────────────────────────── */
.step-circle-violet {
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
}

/* ── 콘테스트 참가 3단계 ─────────────────────────────── */
.contest-join-steps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contest-join-step {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, #60a5fa, #a78bfa) border-box;
  border: 1.5px solid transparent;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.cjs-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cjs-icon-green  { background: #dcfce7; color: var(--color-green); }
.cjs-icon-blue   { background: #dbeafe; color: #2563eb; }
.cjs-icon-purple { background: #ede9fe; color: var(--color-purple); }

.cjs-body { flex: 1; }

.cjs-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-20);
  margin-bottom: 0.3rem;
}

.cjs-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0;
  line-height: 1.5;
}

.cjs-divider {
  color: #d1d5db;
  font-size: 0.8rem;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .contest-join-steps {
    flex-direction: column;
  }
  .cjs-divider {
    transform: rotate(90deg);
  }
}

/* ── 콘테스트 소개 섹션 배지 ──────────────────────────── */
.cd-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  flex-shrink: 0;
  color: #0E7C4A;
  background: #E6F7EE;
}
.cd-section-badge-blue   { color: #2551D6; background: #EFF5FF; }
.cd-section-badge-orange { color: #C2410C; background: #FFF1E6; }
.cd-section-badge-purple { color: #6D28D9; background: #F5F3FF; }

/* ── 진행 일정 타임라인 (기본: 가로 1줄) ─────────────── */
.cd-timeline {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  margin-top: 2rem;
}

.cd-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.cd-tl-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  background: #f3f4f6;
  color: #d1d5db;
  border: 2px solid #e5e7eb;
  z-index: 1;
  flex-shrink: 0;
  transition: all 0.2s;

  .cd-tl-done & {
    background: linear-gradient(135deg, var(--color-green), #0ab88a);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(22,188,156,0.35);
  }

  .cd-tl-active & {
    background: linear-gradient(135deg, var(--color-purple), #b87fff);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(146,78,255,0.35), 0 0 0 4px rgba(146,78,255,0.12);
  }

  .cd-tl-final & {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(251,191,36,0.35);
  }
}

/* 가로 연결선 + 화살표 */
.cd-tl-connector {
  position: absolute;
  top: 20px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: #e5e7eb;

  .cd-tl-done & { background: var(--color-green); }
  .cd-tl-active & { background: linear-gradient(to right, var(--color-purple), #e5e7eb); }

  &::after {
    content: "\f054";
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #d1d5db;
    line-height: 1;
  }

  .cd-tl-done &::after { color: var(--color-green); }
  .cd-tl-active &::after { color: #d1d5db; }
}

.cd-timeline-item:last-child .cd-tl-connector { display: none; }

.cd-tl-content {
  text-align: center;
  margin-top: 0.75rem;
  padding: 0 0.25rem;
}

/* 퀘스트 4개 이상(총 6개 이상) → 2줄 flex wrap (3개씩) */
.cd-timeline:has(.cd-timeline-item:nth-child(6)) {
  flex-wrap: wrap;
  row-gap: 2rem;
}

.cd-timeline:has(.cd-timeline-item:nth-child(6)) .cd-timeline-item {
  flex: 1 1 calc(33.333% - 1px);
}

/* 각 행 마지막(3번째, 6번째...) 아이템의 연결선 숨김 */
.cd-timeline:has(.cd-timeline-item:nth-child(6)) .cd-timeline-item:nth-child(3n) .cd-tl-connector { display: none; }

.cd-tl-date {
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.cd-tl-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-20);
  margin-bottom: 0.15rem;
}
.cd-tl-active .cd-tl-title { color: var(--color-purple); }

.cd-tl-sub {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .cd-timeline {
    flex-direction: column;
    gap: 0;
  }
  .cd-timeline-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    flex: unset;
    width: 100%;
    padding-bottom: 1.5rem;
  }
  .cd-tl-connector {
    width: 2px;
    height: calc(100% - 42px);
    top: 42px;
    left: 20px;
    right: auto;
  }
  .cd-tl-content {
    text-align: left;
    margin-top: 0.5rem;
  }
}

/* ── 참가 조건 카드 ───────────────────────────────────── */
.cd-req-card {
  border-radius: 0.75rem;
  padding: 1.25rem 1.25rem 1.25rem 1.75rem;
  height: 100%;
}

.cd-req-card-required {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
}

.cd-req-card-optional {
  background: #fefce8;
  border: 1px solid #fde68a;
}

.cd-req-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.cd-req-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;

  .cd-req-card-required & { background: var(--color-purple); color: #fff; }
  .cd-req-card-optional & { background: #d97706; color: #fff; }
}

.cd-req-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-20);
}

.cd-req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;

  li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.94rem;
    color: #374151;
    line-height: 1.5;
  }

  i {
    font-size: 0.7rem;
    margin-top: 0.3rem;
    flex-shrink: 0;

    .cd-req-card-required & { color: var(--color-purple); }
    .cd-req-card-optional & { color: #d97706; }
  }
}

/* ── 콘테스트 소개 서술형 본문 ───────────────────────── */
.cd-prose {
  color: #4b5563;
  line-height: 1.85;
  font-size: 1.05rem;

  p {
    margin-bottom: 1rem;

    &:last-child { margin-bottom: 0; }

    strong {
      color: var(--color-20);
      font-weight: 700;
    }
  }
}

/* ── 참가 프로젝트 카드 ──────────────────────────────── */
/* 카드 hover 전환 */
.transition-all-02 {
  transition: all 0.2s ease;
}
.transition-all-02:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* 썸네일 이미지 높이 180px */
.thumb-180h {
  height: 180px;
  object-fit: cover;
}

/* 이미지 좌측 상단 뱃지 */
.img-badge-topleft {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

#tab-projects .badge {
  border-radius: 9999px;
}

#tab-projects .badge.bg-purple {
  background-color: #7c3aed !important;
  color: #fff !important;
}

#tab-projects .badge.bg-success {
  background-color: #d1fae5 !important;
  color: var(--color-green-hover);
}

/* 파랑 원형 아바타 (저자 표시) */
.badge-blue-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── 시상 섹션 ──────────────────────────────────────── */
/* 대상 행 — 골드 그라디언트 배경 */
.prize-row-gold {
  background: linear-gradient(135deg, #fef9c3, #fef3c7);
  border: 1px solid #fde68a;
}

/* 상패 아이콘 기본 */
.prize-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  color: #fff;
}
.prize-icon-gold   { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.prize-icon-silver { background: linear-gradient(135deg, #d1d5db, #9ca3af); }
.prize-icon-bronze { background: linear-gradient(135deg, #fdba74, #f97316); }

/* 시상 — 대상 히어로 카드 */
.prize-hero-card {
  background: linear-gradient(135deg, #78350f 0%, #92400e 50%, #b45309 100%);
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
}
.prize-hero-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.12);
  pointer-events: none;
}
.prize-hero-card::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.08);
  pointer-events: none;
}

.prize-grand-label {
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 9999px;
  padding: 0.25rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.prize-icon-hero {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #78350f;
  box-shadow: 0 0 32px rgba(251, 191, 36, 0.45);
}

.prize-amount-hero {
  font-size: 2rem;
  font-weight: 800;
  color: #fde68a;
  letter-spacing: -0.02em;
}

/* 시상 — 최우수/우수 서브 카드 */
.prize-sub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.prize-amount-sub {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
}

/* 시상 — 3열 그리드 카드 */
.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 767px) {
  .prize-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .prize-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.prize-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.prize-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.prize-card-gold {
  background: linear-gradient(160deg, #fffbeb, #fef3c7);
  border-color: #fde68a;
}
.prize-card-silver {
  background: linear-gradient(160deg, #f6f4f0, #e4ddd4);
  border-color: #c5bbaf;
}
.prize-card-bronze {
  background: linear-gradient(160deg, #fff7ed, #ffedd5);
  border-color: #fed7aa;
}
.prize-card-default {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.prize-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.prize-card-icon-gold   { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 4px 14px rgba(251,191,36,0.4); }
.prize-card-icon-silver { background: linear-gradient(135deg, #d4cec6, #6e6860); box-shadow: 0 4px 14px rgba(150,130,110,0.45); }
.prize-card-icon-bronze { background: linear-gradient(135deg, #fdba74, #f97316); box-shadow: 0 4px 14px rgba(249,115,22,0.3); }
.prize-card-icon-default { background: linear-gradient(135deg, #94a3b8, #64748b); box-shadow: 0 4px 14px rgba(100,116,139,0.25); }

.prize-card-rank {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}
.prize-card-rank-gold   { background: rgba(251,191,36,0.18); color: #92400e; }
.prize-card-rank-silver { background: rgba(140,120,100,0.15); color: #5a4a3a; }
.prize-card-rank-bronze { background: rgba(249,115,22,0.15); color: #9a3412; }
.prize-card-rank-default { background: rgba(100,116,139,0.12); color: #475569; }

.prize-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}
.prize-card-amount {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.prize-card-note {
  font-size: 0.875rem;
  color: #6b7280;
}

/* ── FAQ ────────────────────────────────────────────── */
/* FAQ 목록 들여쓰기 */
.ps-faq {
  padding-left: 1.25rem;
}


/* ══════════════════════════════════════════════════════
   PROJECTS PAGE — 미정의 클래스 추가
   (projects.html 에서 사용되나 기존 CSS에 없던 클래스)
   ══════════════════════════════════════════════════════ */

/* 프로젝트 카드 저자 링크 */
.project-author-link {
  transition: opacity 0.15s;
}
.project-author-link:hover {
  opacity: 0.75;
}


/* ══════════════════════════════════════════════════════
   INDEX PAGE — 미정의 클래스 추가
   (index.html 에서 사용되나 기존 CSS에 없던 클래스)
   ══════════════════════════════════════════════════════ */

/* project-card-avatar 의 biotech 변형
   (index-styles.css 에 정의되어 있으나 index.html 에서 해당 파일을 로드하지 않아 미적용) */
.project-card-avatar.biotech {
  background: #fef9c3;
  color: #854d0e;
}

/* CTA 배너 버튼 — 흰색 배경 + 네이비 텍스트 */
.btn-white-navy {
  background-color: #fff;
  color: #1e3a8a;
  border-color: #fff;
}
.btn-white-navy:hover {
  background-color: #dbeafe;
  color: #1e3a8a;
  border-color: #dbeafe;
}


/* ── Tailwind 미지원 유틸리티 (Bootstrap 대체) ──────────── */
/* min-w-0 대체: flex 자식 요소 텍스트 말줄임 처리용 */
.flex-min-0 { min-width: 0; }
/* opacity-85 대체: Bootstrap은 25/50/75/100만 지원 */
.opacity-85 { opacity: 0.85; }
/* w-85 대체: 진행바 85% 너비 */
.progress-bar-w-85 { width: 85%; }


/* ══════════════════════════════════════════════════════
   PROJECT DETAIL PAGE — 미정의 클래스 추가
   (project-detail.html 에서 사용되나 기존 CSS에 없던 클래스)
   ══════════════════════════════════════════════════════ */

/* ── 배경색 ─────────────────────────────────────────── */
.bg-purple {
  background-color: #7c3aed !important;
  color: #fff;
}

/* ── 배지 ────────────────────────────────────────────── */
/* 콘테스트 배너 완성 배지 (녹색-500) */
.badge-green-500 {
  background-color: #22c55e;
  color: #fff;
}

/* 최우수상 등 앰버→오렌지 그라디언트 배지 */
.badge-grad-amber-orange {
  background: #f59e0b;
  color: #fff;
  border-radius: 9999px;
}

/* ── 텍스트 컬러 유틸리티 ────────────────────────────── */
.text-white-80  { color: rgba(255, 255, 255, 0.8) !important; }
.text-blue      { color: #2563eb !important; }
.text-green-600 { color: #16a34a !important; }
.text-purple-700 { color: #7c3aed !important; }

/* ── 폰트 크기 유틸리티 ──────────────────────────────── */
.fs-2rem { font-size: 2rem !important; }
/* fs-80: 기능 카드 설명 등 작은 텍스트 */
.fs-80   { font-size: 0.8rem !important; }

/* ── 기타 유틸리티 ───────────────────────────────────── */
.text-pre-line  { white-space: pre-line !important; }
.cursor-pointer { cursor: pointer !important; }


/* ── 저자 아바타 48px ────────────────────────────────── */
.author-avatar-48 {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── 통계 숫자/라벨 (standalone) ─────────────────────── */
.stat-num {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}
.stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

.card-tech-stack {
  background: #e0e7ff;
  border-radius: 0.75rem;
}

.badge-indigo {
  background: #fff;
  color: #4338ca;
  font-weight: 500;
  font-size: 0.82rem;
}

.badge-indigo-solid {
  background: #6366f1;
  color: #fff;
  font-weight: 500;
  font-size: 0.82rem;
}

/* ── 그라디언트 카드 배경 ────────────────────────────── */
.card-gradient-gray-blue {
  background: linear-gradient(135deg, #f1f5f9, #dbeafe);
  border: none !important;
  box-shadow: none !important;
}
.card-gradient-violet-pink-d8b4fe {
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
  color: #1e1b4b;
}
.card-gradient-amber-light {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(99,102,241,0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 75%, rgba(139,92,246,0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 10%, rgba(165,180,252,0.15) 0%, transparent 35%),
    radial-gradient(ellipse at 30% 85%, rgba(196,181,253,0.1) 0%, transparent 40%),
    linear-gradient(135deg, #eef2ff, #e0e7ff);
  border: 2px solid #c7d2fe !important;
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    background: rgba(99,102,241,0.09);
    top: -100px;
    right: -80px;
    transform: rotate(25deg);
    pointer-events: none;
  }

  &::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 30% 70% 40% 60% / 60% 30% 70% 40%;
    background: rgba(139,92,246,0.08);
    bottom: -80px;
    left: -60px;
    transform: rotate(-15deg);
    pointer-events: none;
  }

  & .quest-complete-icon {
    background: #6366f1;
  }

  & .quest-complete-title {
    color: #3730a3;
  }

  & .quest-complete-btn {
    background: #6366f1;
    color: #fff;
    width: fit-content;
    border: none;

    &:hover {
      background: #4f46e5;
      color: #fff;
    }
  }
}
.card-gradient-green-blue-86efac {
  background: linear-gradient(135deg, #dcfce7, #dbeafe);
}

/* ── 탭 버튼 (detail-tab-btn) ────────────────────────── */
/* .detail-tabs .nav-link 이 활성/비활성 스타일을 담당,
   여기서는 버튼 초기화 + 줄바꿈 방지만 보완 */
.detail-tab-btn {
  white-space: nowrap;
  background: none;
  border: none;
  font-size: 1.05rem;
  color: #374151;

  &.active {
    color: #111827;
  }
}

/* ── Quest 섹션 ──────────────────────────────────────── */
/* 퀘스트 개요 배너 대형 아이콘 원 */
.quest-hero-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 2rem;
  flex-shrink: 0;
}

/* 퀘스트 진행도 트랙 */
.quest-progress-track {
  height: 8px;
  overflow: hidden;
}

/* 퀘스트 진행도 100% 채움 */
.quest-progress-bar-full {
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #7c3aed, #db2777);
  border-radius: 9999px;
}

/* ── 콘테스트 진행 상황 히어로 카드 ── */
.contest-progress-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #7c3aed 100%);
  padding: 2rem 2rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.contest-progress-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.15);
  pointer-events: none;
}
.contest-progress-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 20px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(196, 181, 253, 0.1);
  pointer-events: none;
}

.contest-progress-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  flex-shrink: 0;
}

.contest-progress-tag {
  background: rgba(255, 255, 255, 0.13);
  color: #e9d5ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.2rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.contest-progress-tag-done {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  padding: 0.2rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.quest-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.quest-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.quest-step-done .quest-step-circle {
  background: rgba(255, 255, 255, 0.92);
  color: #3730a3;
  border-color: transparent;
}

.quest-step-divider {
  flex: 1;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 1.1rem;
  min-width: 40px;
}

/* 완료된 퀘스트 카드 테두리 */
.quest-card-completed {
  border: 2px solid #c7d2fe !important;
  border-radius: 0.75rem;
}

/* 완료된 퀘스트 헤더 배경 */
.quest-header-completed {
  background: linear-gradient(135deg, #f5f7ff, #eef2ff);
}

/* 완료된 퀘스트 아바타 */
.quest-avatar-done {
  background: #6366f1;
  color: #fff;
}

/* 아이콘 원형 — 중간 크기 (40px) */
.icon-circle-md {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  flex-shrink: 0;
}

/* 아이콘 원형 — 64px / 2rem 폰트 */
.icon-circle-64-2rem {
  width: 64px;
  height: 64px;
  font-size: 2rem;
  flex-shrink: 0;
}

/* 아이콘 박스 — 24px */
.icon-box-24 {
  width: 24px;
  height: 24px;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── 16:9 비율 컨테이너 ──────────────────────────────── */
/* 갤러리/퀘스트 이미지용 — 둥근 테두리 포함 */
.ratio-16-9-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
}
.ratio-16-9-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 제작 과정 탭 이미지용 — 테두리 없는 순수 비율박스 */
.ratio-16-9-plain {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.ratio-16-9-plain img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 관련 프로젝트 카드 이미지용 — position: relative 비율박스 */
.ratio-16-9-relative {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.ratio-16-9-relative img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.ratio-16-9-relative:hover img {
  transform: scale(1.07);
}

/* ── 이미지 오버레이 / 뱃지 ──────────────────────────── */
/* 하단 그라디언트 오버레이 */
.img-overlay-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 55%);
  pointer-events: none;
}

/* 하단 좌측 뱃지 위치 */
.img-badge-bottomleft {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
}


/* ══════════════════════════════════════════════════════
   CREATE PERSONAL PROJECT PAGE — 미정의 클래스 추가
   ══════════════════════════════════════════════════════ */

/* ── 레이아웃 ─────────────────────────────────────────── */
/* 최대 너비 1100px 컨테이너 (좁은 폼 레이아웃) */
.container-1100 {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* select 가 input-group 안에서 내용 너비만 차지하도록 */
.w-auto-shrink-0 {
  width: auto;
  flex-shrink: 0;
}

/* ── 폰트 크기 유틸리티 ───────────────────────────────── */
.fs-250  { font-size: 2.5rem  !important; }
.fs-78   { font-size: 0.78rem !important; }
.fs-82   { font-size: 0.82rem !important; }
.fs-83   { font-size: 0.83rem !important; }
.fs-95   { font-size: 1.05rem !important; }
.fs-72   { font-size: 0.82rem !important; }
.fs-xs   { font-size: 0.72rem !important; color: inherit; }

/* ── 텍스트 컬러 ──────────────────────────────────────── */
.text-muted-light { color: #9ca3af !important; }

/* ── 섹션 아이콘 색상 변형 ───────────────────────────── */
/* .section-icon 기본형은 이미 make2026-styles.css 에 정의됨 */
.section-icon-blue   { background: #eff6ff; color: #2563eb; }
.section-icon-violet { background: #f5f3ff; color: #7c3aed; }
.section-icon-pink   { background: #fdf2f8; color: #db2777; }
.section-icon-green  { background: #f0fdf4; color: #16a34a; }
.section-icon-orange { background: #fff7ed; color: #f97316; }
.section-icon-indigo { background: #eef2ff; color: #4f46e5; }

/* ── 카드 그라디언트 + 테두리 ────────────────────────── */
/* 하단 액션 카드 — 파랑·보라 그라디언트 + 파랑 테두리 */
.card-gradient-blue-violet-border2 {
  background: #ffffff;
  border: 1px solid #c7d2fe !important;
}
/* 사이드바 — 파랑 계열 그라디언트 + 파랑 테두리 */
.card-gradient-blue-dblue-border1 {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe !important;
}
/* 사이드바 체크리스트 — 연두 그라디언트 + 연두 테두리 */
.card-gradient-green-border1 {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0 !important;
}
/* 사이드바 커뮤니티 — 보라·핑크 그라디언트 + 보라 테두리 */
.card-gradient-violet-pink-border1 {
  background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%);
  border: 1px solid #ddd6fe !important;
}

/* ── 하단 생성 버튼 그라디언트 ───────────────────────── */
.btn-gradient-blue-violet {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: none;
  color: #fff;
}
.btn-gradient-blue-violet:hover {
  opacity: 0.9;
  color: #fff;
}

/* ── 사이드바 타입 안내 ──────────────────────────────── */
.sidebar-type-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.sidebar-type-icon-blue { background: #dbeafe; }

.sidebar-type-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
}
.sidebar-type-badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

/* ── Quest 단계 표시 (사이드바) ──────────────────────── */
.quest-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.quest-step-blue   { background: #2563eb; }
.quest-step-violet { background: #7c3aed; }
.quest-step-green  { background: #16a34a; }

/* ── 커뮤니티 버튼 아이콘 ────────────────────────────── */
/* .comm-btn 기본형은 이미 정의됨 */
.comm-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.comm-icon-blue   { background: #dbeafe; }
.comm-icon-violet { background: #ede9fe; }
.comm-icon-green  { background: #dcfce7; }
.comm-icon-orange { background: #fed7aa; }

/* ── 미리보기 패널 닫기 버튼 ─────────────────────────── */
.preview-close-btn {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: #6b7280;
  transition: background 0.15s;
}
.preview-close-btn:hover {
  background: #f3f4f6;
}

/* ── 커뮤니티 패널 너비 ──────────────────────────────── */
/* .cpanel 기본형은 이미 정의됨 */
.cpanel.content-w {
  width: min(700px, 95vw);
  padding-left: 0.3rem;
}
#quickActionOffcanvas label {
  font-size: 1rem;
  font-weight: 500;
}
#quickActionOffcanvas ::placeholder {
  font-size: 0.94rem;
  font-weight: 300;
  color: #6b7280 !important;
}
#quickActionOffcanvas .p-4.d-flex.flex-column.gap-4 {
  padding-bottom: 2.5rem !important;

}

/* ============================================================
   community.html — 미정의 클래스 추가
   ============================================================ */

/* 히어로 그라디언트 배경 */
.hero-gradient-blue-purple {
  background: url('../img/bg_contest_detail_top.jpg') center/cover no-repeat;
}
/* e4ds Connect 허브 히어로 — 기존 bg_community.jpg 부재(흰 배경+흰 글씨) 대체.
   외부 이미지 없이 CSS 그라데이션 + 레이어드 글로우(마이메이크 히어로와 같은 계열, 블루 비중↑). */
.hero-gradient-blue-purple-h {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 10% 15%, rgba(255, 255, 255, .15) 0%, transparent 42%),
    radial-gradient(90% 90% at 90% 8%, rgba(139, 92, 246, .55) 0%, transparent 48%),
    radial-gradient(120% 120% at 100% 100%, rgba(236, 72, 153, .32) 0%, transparent 44%),
    linear-gradient(135deg, #1d4ed8 0%, #4f46e5 52%, #7c3aed 100%);
}
.hero-gradient-blue-purple-h::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -35%;
  right: -6%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
/* 마이메이크 히어로 — 기존 bg_mymake.jpg 부재(흰 배경+흰 글씨) 대체.
   외부 이미지 없이 CSS 그라데이션 + 레이어드 글로우로 트렌디하게(타임라인과 동일 톤). */
.mymake-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 12% 18%, rgba(255, 255, 255, .16) 0%, transparent 42%),
    radial-gradient(90% 90% at 88% 6%, rgba(236, 72, 153, .55) 0%, transparent 46%),
    radial-gradient(120% 120% at 100% 100%, rgba(56, 189, 248, .38) 0%, transparent 44%),
    linear-gradient(135deg, #4f46e5 0%, #7c3aed 48%, #c026d3 100%);
}
/* 부드러운 블러 블롭으로 깊이감 */
.mymake-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -8%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
/* 아바타에 은은한 링 */
.mymake-hero .avatar-xl {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25), 0 10px 24px -8px rgba(15, 23, 42, .45);
}
.mymake-hero-meta,
.mymake-hero-meta .btn { font-size: 0.875rem; }

.btn-glossy {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-glossy:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
  color: #3b1f0e;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}
.btn-glossy:active {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(0);
}

.btn-hero-active {
  background-color: #fff;
  color: var(--color-green-hover);
  border-color: #fff;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-hero-active:hover {
  background-color: #e6faf6;
  color: var(--color-green-hover);
  border-color: #e6faf6;
  transform: translateY(-2px);
}

.btn-glass-hero {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
  transition: background 0.2s, transform 0.15s;
}
.btn-glass-hero:hover {
  background: rgba(255,255,255,0.28);
  color: #fff;
  transform: translateY(-2px);
}

/* 섹션 헤더 색상 변형 (section-header border-left 색) */
.section-border-blue   { border-color: #2563eb; }
.section-border-purple { border-color: #7c3aed; }
.section-border-green  { border-color: var(--color-green-hover); }
.section-border-amber  { border-color: #d97706; }

/* 아이콘 박스형 섹션 헤더 */
.section-header-icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sh-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.sh-icon-blue   { background: #eff6ff; color: var(--color-blue);         border: 1px solid #bfdbfe; }
.sh-icon-purple { background: #f5f3ff; color: var(--color-purple);       border: 1px solid #ddd6fe; }
.sh-icon-green  { background: #e6f7f4; color: var(--color-green-hover);  border: 1px solid #a7f3d0; }
.sh-icon-amber  { background: #fff7ed; color: #ea580c;                   border: 1px solid #fed7aa; }

.sidebar-header-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.cpanel-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* 사이드바 카드 연한 파랑-보라 그라디언트 배경 */
.bg-gradient-blue-violet-soft {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
}


/* ══════════════════════════════════════════════════════
   CONTEST RESULT PAGE — 미정의 클래스 추가
   (contest-result.html 에서 사용되나 기존 CSS에 없던 클래스)
   ══════════════════════════════════════════════════════ */

/* 히어로 앰버→레드 그라디언트 배경 */
.hero-gradient-amber-red {
  background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
}

/* ── Contest Result Hero ──────────────────────────────── */
.contest-result-hero {
  padding: 2.25rem 0;
  position: relative;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.8) 0%, rgba(220,38,38,0.8) 100%),
    url('../img/bg_contest_result.jpg') center center / cover no-repeat;
  overflow: hidden;
}

@media (max-width: 767px) {
  .contest-result-hero {
    background-position: 70% center;
  }
}
.crs-hero-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.4rem 1.1rem;
  border-radius: 2rem;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #fff;
}
.crs-label-tag {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contest-result-stats {
  display: flex;
  align-items: center;
  justify-content: center;
}
.crs-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2rem 0 0;
}
.crs-item-text {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.3rem;
}
.crs-icon {
  font-size: 1.6rem;
  opacity: 0.85;
}
.crs-item:not(:first-child) {
  padding-left: 2rem;
}
.crs-value {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.crs-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.15rem;
}
.crs-divider {
  width: 1px;
  height: 2rem;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
@media (max-width: 575px) {
  .contest-result-hero { padding: 1.75rem 0; }
  .crs-item { padding: 0 1.25rem 0 0; }
  .crs-item:not(:first-child) { padding-left: 1.25rem; }
  .crs-value { font-size: 1.125rem; }
}

/* 썸네일 이미지 높이 고정 */
.thumb-100h {
  height: 100px;
  object-fit: cover;
}
.thumb-120h {
  height: 120px;
  object-fit: cover;
}

/* Bootstrap border 색상 확장 — 실버 / 브론즈 */
.border-silver {
  --bs-border-color: #9ca3af !important;
  border-color: #9ca3af !important;
}
.border-bronze {
  --bs-border-color: #cd7f32 !important;
  border-color: #cd7f32 !important;
}

/* 브론즈 배경 / 텍스트 */
.bg-bronze {
  background-color: #cd7f32 !important;
  color: #fff !important;
}
.text-bronze {
  color: #cd7f32 !important;
}
.text-silver {
  color: #9ca3af !important;
}

/* ── Contest Result: Section Label ── */
.crs-section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #3b1f0e;
  margin-bottom: 1.75rem;
}

/* ── Podium List ── */
.crs-podium-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.crs-podium-list .crs-podium-card {
  height: 320px;
}
/* ── Podium Cards ── */
.crs-podium-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  position: relative;
}
.crs-podium-img {
  width: 300px;
  align-self: stretch;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
  display: block;
}
.crs-podium-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.crs-podium-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
}
.crs-award-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 2rem;
  padding: 0.35rem 1rem;
}
.crs-badge-gold   { background: #fff7ed; color: #c2410c; }
.crs-badge-silver { background: #f3f4f6; color: #374151; }
.crs-badge-bronze { background: #fdf3e7; color: #92400e; }
.crs-badge-special{ background: #eff6ff; color: #1d4ed8; }
.crs-podium-prize-tag {
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
}
.crs-prize-gold  { background: #fff7ed; color: #c2410c; }
.crs-prize-silver{ background: #f3f4f6; color: #374151; }
.crs-prize-bronze{ background: #fdf3e7; color: #92400e; }
.crs-podium-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
  line-height: 1.3;
}
.crs-podium-desc {
  font-size: 0.93rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.crs-podium-review {
  background: #f0f4f8;
  border-left: 3px solid #94a3b8;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}
.crs-podium-review cite {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: #94a3b8;
  font-style: normal;
  font-weight: 600;
}
.crs-podium-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.crs-podium-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 2rem;
  padding: 0.2rem 0.65rem;
}
.crs-podium-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  margin-top: auto;
}
.crs-podium-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}
.crs-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.crs-avatar-gold   { background: #fff7ed; color: #c2410c; }
.crs-avatar-silver { background: #f3f4f6; color: #374151; }
.crs-avatar-bronze { background: #fdf3e7; color: #92400e; }
.crs-podium-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 2rem;
  padding: 0.4rem 1rem;
  transition: background 0.15s;
}
.crs-podium-btn:hover { background: #f9fafb; }
@media (max-width: 767px) {
  .crs-podium-card { flex-direction: column; }
  .crs-podium-img  { width: 100%; min-height: 180px; }
}

/* ── Winner List ── */
.crs-winner-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.crs-winner-item {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.crs-winner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.crs-winner-badge {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 2rem;
}
.crs-winner-item--gold   .crs-winner-badge { background: #fff7ed; color: #c2410c; }
.crs-winner-item--silver .crs-winner-badge { background: #f3f4f6; color: #374151; }
.crs-winner-item--bronze .crs-winner-badge { background: #fdf3e7; color: #92400e; }
.crs-winner-item--special .crs-winner-badge{ background: #ede9fe; color: #5b21b6; }
.crs-winner-icon {
  font-size: 0.85rem;
}
.crs-winner-item--gold   .crs-winner-icon { color: #f59e0b; }
.crs-winner-item--silver .crs-winner-icon { color: #9ca3af; }
.crs-winner-item--bronze .crs-winner-icon { color: #cd7f32; }
.crs-winner-item--special .crs-winner-icon{ color: #7c3aed; }
.crs-winner-project {
  font-family: 'Pretendard', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  line-height: 1.4;
  flex: 1;
}
.crs-winner-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid #f3f4f6;
}
.crs-winner-team {
  font-size: 0.85rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.crs-winner-prize {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
}
.crs-winner-item--gold   .crs-winner-prize { background: #fff7ed; color: #c2410c; }
.crs-winner-item--silver .crs-winner-prize { background: #f3f4f6; color: #374151; }
.crs-winner-item--bronze .crs-winner-prize { background: #fdf3e7; color: #92400e; }
.crs-winner-item--special .crs-winner-prize{ background: #ede9fe; color: #5b21b6; }

/* ── Responsive ── */
@media (max-width: 767px) {
  .crs-podium-img { height: 150px; }
  .crs-winner-list { grid-template-columns: repeat(2, 1fr); }
  .crs-winner-item { padding: 1rem; }
}

/* 흰색 75% 불투명 텍스트 */
.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

/* ══════════════════════════════════════════════════════
   COMMUNITY — 빠른 액션 사이드바 버튼
   ══════════════════════════════════════════════════════ */
.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  transition: all 0.2s ease;
  width: 100%;
}

.quick-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.quick-action-btn .qa-arrow {
  margin-left: auto;
  opacity: 0.5;
  font-size: 0.75rem;
  transition: opacity 0.2s, transform 0.2s;
}

.quick-action-btn:hover .qa-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* 파란색 — 질문 올리기 */
.quick-action-btn-blue {
  background: #eff6ff;
  color: var(--color-blue);
}
.quick-action-btn-blue .quick-action-icon {
  background: var(--color-blue);
  color: #fff;
}
.quick-action-btn-blue:hover {
  background: var(--color-blue);
  color: #fff;
}
.quick-action-btn-blue:hover .quick-action-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* 보라색 — 진행 상황 공유 */
.quick-action-btn-green {
  background: #faf5ff;
  color: var(--color-purple);
}
.quick-action-btn-green .quick-action-icon {
  background: var(--color-purple);
  color: #fff;
}
.quick-action-btn-green:hover {
  background: var(--color-purple);
  color: #fff;
}
.quick-action-btn-green:hover .quick-action-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* 진초록 — 팀원 모집 */
.quick-action-btn-purple {
  background: rgba(1, 146, 118, 0.1);
  color: var(--color-green-hover);
}
.quick-action-btn-purple .quick-action-icon {
  background: var(--color-green-hover);
  color: #fff;
}
.quick-action-btn-purple:hover {
  background: var(--color-green-hover);
  color: #fff;
}
.quick-action-btn-purple:hover .quick-action-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* 주황색 — 자료 업로드 */
.quick-action-btn-orange {
  background: #fff7ed;
  color: #ea580c;
}
.quick-action-btn-orange .quick-action-icon {
  background: #ea580c;
  color: #fff;
}
.quick-action-btn-orange:hover {
  background: #ea580c;
  color: #fff;
}
.quick-action-btn-orange:hover .quick-action-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ══════════════════════════════════════════════════════
   INDEX — 반응형 (모바일 / 태블릿)
   ══════════════════════════════════════════════════════ */

/* 태블릿 이하 (< 992px) */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-right {
    justify-content: center;
  }
  .hero-right .frame {
    width: 100%;
    max-width: 460px;
  }
  .hero-right .card {
    width: 100%;
    margin-left: 0;
  }
  .index-stats {
    width: 100%;
  }
}

/* 모바일 (< 576px) */
@media (max-width: 575.98px) {
  .hero-section {
    padding: 2rem 0;
  }
  .hero-title {
    font-size: 1.05rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-right {
    display: none;
  }
  .index-stats {
    width: 100%;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .index-stats .stat-item {
    flex: 1;
    justify-content: center;
  }
  .index-stats .stat-item > div {
    text-align: center;
  }
  .index-stats .stat-number {
    font-size: 1.1rem;
  }
  .index-stats .stat-icon {
    display: none;
  }

  /* 모달 */
  .modal-body-wrapper {
    padding: 1.25rem;
  }
  .modal-content-box {
    margin: 0.75rem;
    border-radius: 0.75rem;
  }
  .modal-gradient-header-wrapper .modal-title {
    font-size: 1.05rem;
  }
  .project-type-card {
    padding: 1.25rem;
  }
  .modal-info-box {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* btn-outline 보더 복원 (output.css의 transparent 덮어쓰기 방지) */
.btn-outline-secondary { border-color: #6c757d !important; }
.btn-outline-primary   { border-color: #0d6efd !important; }
.btn-outline-success   { border-color: #198754 !important; }
.btn-outline-danger    { border-color: #dc3545 !important; }
.btn-outline-warning   { border-color: #ffc107 !important; }
.btn-outline-info      { border-color: #0dcaf0 !important; }

/* community 버튼 */
.btn-community-purple {
  background: #7c3aed;
  color: #fff;
  border: none;
  font-size: 0.94rem;
}
.btn-community-purple:hover {
  background: #6d28d9;
  color: #fff;
}
.btn-community-amber {
  background: #d97706;
  color: #fff;
  border: none;
  font-size: 0.94rem;
}
.btn-community-amber:hover {
  background: #b45309;
  color: #fff;
}

/* community 공지/FAQ 아이템 */
.notice-item-danger {
  background: transparent;
  padding: 0.35rem 0;
}
.notice-item-info {
  background: transparent;
  padding: 0.35rem 0;
}
.badge-faq {
  background: #EFF5FF;
  color: var(--color-blue);
}

/* community 사이드바 */
/* 본문-사이드 간격 — 사이드바가 옆에 붙는 데스크톱에서만(모바일에선 좌우 여백 비대칭 유발, 2026-07-22 수정) */
@media (min-width: 992px) {
  .sidebar-ps {
    padding-left: 3rem;
  }
}

/* community 왼쪽 컬럼 card-body 여백 */
.col-lg-8 .card-body {
  padding-top: 1.5rem;
  padding-left: 1.5rem;
}


/* ── community-data 콘텐츠 섹션 ───────────────────────── */
.data-section-indigo {
  background: #ede9fe;
}
.data-section-blue {
  background: #eff6ff;
}
.data-section-green {
  background: #f0fdf4;
}
.data-section-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.data-section-red {
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.data-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.data-resource-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.data-thumb-red { background: #dc2626; }
.data-thumb-blue { background: #2563eb; }

/* avatar 추가 색상 */
.avatar-blue    { background: #1d4ed8; }
.avatar-violet  { background: #7c3aed; }
.avatar-green   { background: #15803d; }

/* 아이콘 박스 */
.panel-icon-box-purple { background: #ede9fe; }
.panel-icon-box-amber  { background: #fff7ed; }
.icon-purple { color: #7c3aed; }
.text-purple { color: #7c3aed; }
.data-section-purple { background: #f5f3ff; }

/* 커뮤니티 패널 — 첨부 자료 카드 */
.attach-btn-dashed {
  border: 1.5px solid #d1d5db !important;
  background: #fff;
  color: #9ca3af;
  transition: all .15s;
}
.attach-btn-dashed:hover {
  border-color: #93c5fd;
  background: #f0f9ff;
  color: #3b82f6;
}
.attach-btn-dashed.attach-selected {
  border-color: #3b82f6;
  border-style: dashed;
  background: #eff6ff;
  color: #2563eb;
}
.attach-btn-dashed .bi {
  font-size: 1.25rem !important;
  margin-right: 0.5rem;
  transition: color .15s;
}
.attach-btn-dashed.attach-selected .bi {
  color: #2563eb !important;
}
.attach-btn-dashed p {
  transition: color .15s;
}
.attach-title {
  color: #374151;
}
.attach-btn-dashed.attach-selected .attach-title {
  color: #2563eb !important;
}
.attach-caption {
  font-size: 0.75rem;
  color: #6b7280;
}
.attach-btn-dashed.attach-selected .attach-caption {
  color: #93c5fd;
}

/* 커뮤니티 패널 — 가이드 박스 */
.panel-guide-orange {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.panel-guide-icon {
  color: #ea580c;
}
.panel-guide-title {
  color: #c2410c;
}
.panel-guide-desc {
  color: #9a3412;
  opacity: 0.85;
}

/* 커뮤니티 패널 — 연결 프로젝트 카드 */
.panel-project-box-blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.panel-icon-box {
  width: 2.2rem;
  height: 2.2rem;
}
.panel-icon-blue   { background: #3b82f6; }
.panel-icon-green  { background: var(--color-green); }
.panel-icon-amber  { background: #d97706; }
.panel-icon-purple { background: var(--color-purple); }

.panel-select-blue,
.panel-select-green,
.panel-select-amber {
  background-color: #fff;
}
.panel-select-blue  { border-color: #bfdbfe; }
.panel-select-blue:focus  { border-color: #3b82f6; box-shadow: 0 0 0 0.2rem rgba(59,130,246,.15); }
.panel-select-green  { border-color: #99e6d8; }
.panel-select-green:focus  { border-color: var(--color-green); box-shadow: 0 0 0 0.2rem rgba(22,188,156,.15); }
.panel-select-purple { border-color: #ddd6fe; }
.panel-select-purple:focus { border-color: var(--color-purple); box-shadow: 0 0 0 0.2rem rgba(146,78,255,.15); }
.panel-select-amber { border-color: #fde68a; }
.panel-select-amber:focus { border-color: #d97706; box-shadow: 0 0 0 0.2rem rgba(217,119,6,.15); }

.panel-text-blue   { color: #2563eb; }
.panel-text-green  { color: var(--color-green-hover); }
.panel-text-amber  { color: #b45309; }
.panel-text-purple { color: var(--color-purple); }

.panel-project-box-green {
  background: #f0fdf9;
  border: 1px solid #99e6d8;
}
.panel-project-box-purple {
  background: #faf5ff;
  border: 1px solid #ddd6fe;
}
.panel-project-box-amber {
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.badge-quest { background: #ede9fe; color: #7c3aed; font-weight: 500; margin-right: 1rem; }
#project-type-badge { font-weight: 500; font-size: 0.85rem; padding: 0.45em 0.85em; }
/* ── Community View ───────────────────────────── */
.community-view .card { border-radius: 1rem; }
/* ── QnA View Section Content ─────────────────── */
.qa-content-block { padding: 14px 18px; border-left: 3px solid; border-radius: 0 6px 6px 0; line-height: 1.85; }
.qa-content-blue   { border-color: #93c5fd; background: #f8faff; }
.qa-content-red    { border-color: #fca5a5; background: #fff8f8; }
.qa-content-purple { border-color: #c4b5fd; background: #faf8ff; }
.qa-content-green  { border-color: #86efac; background: #f8fff9; }
.qa-content-orange { border-color: #fdba74; background: #fff8f3; }
.qa-ol { list-style: none; padding: 14px 18px; margin: 0; counter-reset: qa-c; border-left: 3px solid #c4b5fd; border-radius: 0 6px 6px 0; background: #faf8ff; }
.qa-ol li { counter-increment: qa-c; display: flex; gap: 10px; line-height: 1.7; margin-bottom: 6px; }
.qa-ol li:last-child { margin-bottom: 0; }
.qa-ol li::before { content: counter(qa-c) '.'; font-weight: 700; color: #7c3aed; min-width: 18px; flex-shrink: 0; }
/* ── QnA View Quest Info Box ──────────────────── */
.qview-quest-label { font-size: 14px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.qview-quest-title { font-weight: 700; font-size: 16px; display: block; margin-bottom: 0.3rem; text-decoration: none; color: var(--color-10) !important; }
.qview-quest-sub   { font-size: 14px; color: #6B7A94; margin-bottom: 0; }
.qview-contest     { font-size: 13px; color: #94a3b8; }
.qview-tags        { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; border-top: 1px solid #e5e7eb; }
.qview-tag         { font-size: 13px; color: #64748b; font-weight: 500; }
/* ── QnA View Pills ───────────────────────────── */
.qna-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; border: 1.5px solid;
}
.qna-pill-blue   { color: #2551D6; border-color: #93b8fb; background: #EFF5FF; }
.qna-pill-purple { color: #6D28D9; border-color: #c4b5fd; background: #F5F3FF; }
.qna-pill-orange { color: #C2410C; border-color: #fdba74; background: #FFF7ED; }
.qna-pill-green  { color: #0E7C4A; border-color: #6ee7b7; background: #E6F7EE; }
.qna-pill-amber  { color: #92400E; border-color: #fcd34d; background: #FFFBEB; }
.qna-pill-dark   { color: #fff;    border-color: #1f2937; background: #1f2937; }
/* ── Community Activity List ──────────────────── */
.comm-list-wrap { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(21,32,80,0.06), 0 4px 12px rgba(21,32,80,0.05); overflow: hidden; }
.comm-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #F1F5F9; cursor: pointer; transition: background .15s; text-decoration: none; }
.comm-item:last-child { border-bottom: none; }
.comm-item:hover { background: #F8FAFC; }
.comm-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.comm-badge-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.comm-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.comm-badge-blue   { background: #EFF5FF; color: #2551D6; }
.comm-badge-green  { background: #E6F7EE; color: #0E7C4A; }
.comm-badge-amber  { background: #FFF4D6; color: #8A5A00; }
.comm-badge-orange { background: #FFF1E6; color: #C2410C; }
.comm-badge-purple { background: #F3E8FF; color: #7C3AED; }
.comm-badge-gray   { background: #F3F4F6; color: #6B7A94; }
.comm-title { font-size: 15px; font-weight: 600; color: #0B1B3B; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comm-meta { font-size: 13px; color: #6B7A94; }
/* ── Search Hero ───────────────────────────────── */
body.search-page { background: linear-gradient(160deg, #eef2ff 0%, #f0f4ff 40%, #f5f0ff 100%); min-height: 100vh; }
.search-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.search-hero-label {
  font-size: 1rem; font-weight: 600; color: #2551D6;
  letter-spacing: 0.02em; margin-bottom: 0.75rem;
}
.search-hero-title {
  font-size: 2.2rem; font-weight: 800; color: #0B1B3B;
  letter-spacing: -0.03em; margin-bottom: 0.6rem;
}
.search-hero-subtitle {
  font-size: 1.1rem; color: #64748b; margin-bottom: 2rem;
}
.search-bar-pill {
  display: flex; align-items: center;
  max-width: 660px; margin: 0 auto;
  background: #fff; border-radius: 50px;
  box-shadow: 0 4px 28px rgba(37,81,214,0.13);
  padding: 7px 7px 7px 22px;
  border: 1px solid #E4EAF3;
}
.search-bar-pill i { color: #94a3b8; font-size: 1.05rem; flex-shrink: 0; }
.search-bar-pill input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 1.1rem; color: #0B1B3B; padding: 0 14px;
}
.search-bar-pill input::placeholder { color: #94a3b8; }
.search-bar-pill .btn {
  border-radius: 50px; padding: 0.65rem 1.8rem;
  font-weight: 600; flex-shrink: 0; font-size: 1.05rem;
}
.search-filter-area { padding: 1.25rem 0; }
.search-filter-card {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border-radius: 50px;
  box-shadow: 0 2px 12px rgba(21,32,80,0.08);
  padding: 5px;
}
.search-filter-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1.2rem; border-radius: 50px;
  font-size: 1rem; font-weight: 500; color: #475569;
  border: none; background: transparent; cursor: pointer;
  transition: background .15s, color .15s;
}
.search-filter-tab:hover { background: #f1f5f9; }
.search-filter-tab.active { background: #111827; color: #fff; font-weight: 600; }
.search-filter-tab .tab-count { font-size: 0.78rem; opacity: 0.75; }
.search-results-card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 2px 16px rgba(21,32,80,0.07);
  padding: 2rem;
  min-height: 200px;
}
/* ── Sidebar (standalone 디자인) ───────────────── */
.sb-card {
  background: #fff; border: 1px solid #E4EAF3;
  border-radius: 14px; padding: 16px;
  box-shadow: 0 1px 2px rgba(21,32,80,0.04);
}
.sb-btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 12px; width: 100%;
  background: #EFF5FF; border: 1px solid #E4EAF3; border-radius: 6px;
  color: #3D4D6B; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.sb-btn:hover { background: #DCE8FD; border-color: #B8CCEF; }
.sb-section-title { font-size: 14px; font-weight: 700; color: #0B1B3B; margin-bottom: 12px; }
.sb-link-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 12px; width: 100%;
  background: #EFF5FF; border: 1px solid #E4EAF3; border-radius: 6px;
  color: #0B1B3B; font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.sb-link-btn:hover { background: #DCE8FD; border-color: #B8CCEF; color: #0B1B3B; }
.sb-link-icon { color: #2551D6; flex-shrink: 0; }
.sb-link-ext { color: #6B7A94; flex-shrink: 0; margin-left: auto; font-size: 11px; }
.pd-section-bg { background: #F4F7FB; }
/* pd: Features Grid */
.pd-section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pd-section-header i { color: #2551D6; font-size: 18px; }
.pd-section-title { margin: 0; font-size: 17px; font-weight: 700; color: #0B1B3B; }
.pd-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pd-feature-item {
  display: flex; gap: 12px; padding: 16px;
  background: #fff; border: 1px solid #E4EAF3; border-radius: 8px;
}
.pd-feature-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 6px;
  background: #EFF5FF; color: #2551D6;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.pd-feature-name { font-weight: 700; font-size: 16px; color: #0B1B3B; margin-bottom: 4px; }
.pd-feature-desc { font-size: 14px; color: #6B7A94; line-height: 1.5; }
/* pd: Tech Stack */
.pd-tech-tag {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  font-size: 14px; font-weight: 600;
  background: #EFF5FF; color: #2551D6; border-radius: 6px;
}
@media (max-width: 576px) {
  .pd-feature-grid { grid-template-columns: 1fr; }
}
.pd-card {
  background: #fff;
  border: 1px solid #E4EAF3;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(21,32,80,0.04);
}
.completion-banner {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(115deg, #F5F8FE 0%, #DCE8FD 100%);
  border: 1.5px solid #B8CCEF; border-radius: 18px; padding: 36px;
}
.completion-banner-deco-rt {
  position: absolute; right: -50px; top: -50px; width: 220px; height: 220px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(37,81,214,0.12), transparent 65%);
}
.completion-banner-deco-lb {
  position: absolute; left: -40px; bottom: -60px; width: 200px; height: 200px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(6,182,212,0.12), transparent 65%);
}
.completion-banner-inner { position: relative; }
.completion-banner-icon {
  margin: 0 auto 16px; width: 56px; height: 56px; border-radius: 50%;
  background: #2551D6; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37,81,214,0.35); font-size: 18px;
}
.completion-banner-title {
  margin: 0 0 6px; font-size: 24px; font-weight: 800;
  color: #1D388B; letter-spacing: -0.02em;
}
.completion-banner-text {
  margin: 0 0 20px; font-size: 15px; color: #3D4D6B; line-height: 1.6;
}
.badge-chip { display: inline-flex; align-items: center; border-radius: 999px; font-weight: 600; font-size: 12px; padding: 4px 10px; border: 1px solid transparent; }
.badge-chip-success { background: #E6F7EE; color: #0E7C4A; }
.badge-chip-gold    { background: #FFF4D6; color: #8A5A00; }
.badge-chip-warning { background: #FEF4E6; color: #B54708; } /* 진행중 — 미정의라 맨 텍스트로 보이던 것 보완(2026-07-22) */

/* ── community-qna 필터바 ─────────────────── */
.qna-search-group { max-width: 420px; flex: 1; }
.qna-filter-select { width: auto; }
.qna-filter-bar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.qna-status-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #f3f4f6;
  border-radius: 9999px;
  padding: 0.2rem;
}
.qna-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.qna-status-btn.active {
  background: #111827;
  color: #fff;
}
.qna-filter-divider {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
  flex-shrink: 0;
}

/* ── community-teammate 섹션 아이콘 박스 ─────────────────── */
.section-icon-box {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}
.section-icon-blue   { background: #dbeafe; color: #2563eb; }
.section-icon-purple { background: #ede9fe; color: #7c3aed; }
.section-icon-orange { background: #ffedd5; color: #ea580c; }
.section-icon-green  { background: #dcfce7; color: #16a34a; }
.section-icon-red    { background: #fee2e2; color: #dc2626; }
.dot-bullet { font-size: 0.4em; vertical-align: middle; }

/* teammate 협업정보 하위 아이콘 */
.collab-sub-icon {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
}

.p-custom-25 { padding: 2rem; }

.list-dot-sm { list-style-type: disc; }
.list-dot-sm li::marker { font-size: 0.6em; }

/* ── Notices Board ──────────────────────────────── */
.notice-search-group { max-width: 220px; }

.notice-filter-bar {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
  background: #f3f4f6;
  border-radius: 9999px;
  padding: .25rem;
}
.notice-filter-btn {
  border: none;
  background: transparent;
  padding: .3rem 1rem;
  border-radius: 9999px;
  font-size: .9rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.notice-filter-btn.active {
  background: #111827;
  color: #fff;
}
.notice-filter-btn:hover:not(.active) { background: #e5e7eb; color: #374151; }

.notice-board {
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  overflow: hidden;
  background: #fff;
}
.notice-board-head {
  display: flex;
  align-items: center;
  gap: 0;
  padding: .7rem 1.25rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: .85rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.notice-row {
  display: flex;
  align-items: center;
  padding: .95rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}
.notice-row:last-child { border-bottom: none; }
.notice-row:hover { background: #f9fafb; }
.notice-row-pinned { background: #fafaf9; }
.notice-row-pinned:hover { background: #f5f5f4; }

.nb-col-num {
  flex-shrink: 0;
  width: 3rem;
  font-size: .9rem;
  color: #9ca3af;
  text-align: center;
}
.nb-pin-icon { color: #f59e0b; font-size: .85rem; }
.nb-num-text { color: #d1d5db; }

.nb-col-badge { flex-shrink: 0; width: 6rem; }
.nb-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .65rem;
  border-radius: 9999px;
  font-size: .82rem;
  font-weight: 600;
}
.nb-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nb-col-title {
  flex: 1;
  min-width: 0;
}
.nb-title-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
  color: #111827;
}
.notice-row:hover .nb-title-text { color: #2563eb; }
.nb-col-title mark { background: #fef08a; padding: 0 .1em; border-radius: 2px; }

.nb-col-date {
  flex-shrink: 0;
  width: 7rem;
  text-align: right;
  font-size: .88rem;
  color: #9ca3af;
}

.notice-empty {
  padding: 3rem 1.25rem;
  text-align: center;
  color: #9ca3af;
  font-size: .9rem;
}

@media (max-width: 576px) {
  .notice-board-head { display: none; }
  .notice-row { flex-wrap: wrap; gap: .4rem .5rem; padding: .85rem 1rem; }
  .nb-col-num { display: none; }
  .nb-col-badge { width: auto; }
  .nb-col-title { width: 100%; order: 3; }
  .nb-col-date { order: 2; margin-left: auto; }
  .notice-search-group { max-width: 100%; }
  .notice-filter-bar { border-radius: .75rem; }
}

/* ── Notice View ────────────────────────────────── */
.nv-wrap { max-width: 760px; margin: 0 auto; }

.nv-pin-badge {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 20px;
  padding: .2rem .65rem;
}

.nv-type-badge {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 20px;
  padding: .2rem .65rem;
}
.nv-type-important  { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.nv-type-contest    { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.nv-type-policy     { background: #f9fafb; color: #6b7280; border: 1px solid #e5e7eb; }
.nv-type-update     { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.nv-type-inspection { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.nv-type-notice     { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }

.nv-title { font-size: 1.2rem; line-height: 1.6; }

.nv-body {
  min-height: 300px;
  font-size: .95rem;
  line-height: 1.8;
  color: #374151;
}

.nv-file-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: #1d4ed8;
  font-size: .875rem;
  padding: .4rem .75rem;
  border-radius: .5rem;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  transition: background .15s;
}
.nv-file-item:hover { background: #dbeafe; }
.nv-file-icon { color: #2563eb; font-size: 1rem; }
.nv-file-name { font-weight: 500; }
.nv-file-size { color: #6b7280; }

.nv-nav-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.25rem;
  text-decoration: none;
  color: #374151;
  font-size: .9rem;
  transition: background .15s;
}
.nv-nav-row:hover:not(.disabled) { background: #f9fafb; color: #111827; }
.nv-nav-row.disabled { color: #9ca3af; pointer-events: none; }
.nv-nav-arrow { width: 20px; text-align: center; color: #9ca3af; font-size: .8rem; }
.nv-nav-dir { font-weight: 600; color: #6b7280; white-space: nowrap; min-width: 40px; }
.nv-nav-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-nav-divider { height: 1px; background: #f3f4f6; margin: 0; }

@media (max-width: 576px) {
  .nv-title { font-size: 1.05rem; }
  .nv-nav-title { font-size: .82rem; }
}

/* ── Quest Page ─────────────────────────────────── */
.quest-page .card { border-radius: 1rem; }

/* =======================================================
   Project Complete Page — Custom Styles
   ======================================================= */

/* ---------- Hero Full Width ---------- */
.pc-hero-full {
  position: relative;
  overflow: hidden;
}

.pc-hero-inner {
  position: relative;
  z-index: 1;
}

/* Hero background layer */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Hero background variants */
.hero-bg.hero-bg-subtle {
  background:
    radial-gradient(1200px 300px at 88% -20%, rgba(109, 85, 245, .18), transparent 60%),
    radial-gradient(800px 300px at 8% 120%, rgba(31, 157, 111, .10), transparent 60%),
    linear-gradient(180deg, #3730A3 0%, #6D28D9 100%);
}

.hero-bg.hero-bg-mesh {
  background:
    radial-gradient(600px 360px at 12% 10%, rgba(109, 85, 245, .5), transparent 60%),
    radial-gradient(520px 320px at 92% 20%, rgba(255, 138, 76, .35), transparent 60%),
    radial-gradient(500px 300px at 70% 120%, rgba(31, 157, 111, .3), transparent 60%),
    linear-gradient(180deg, #2D1B69 0%, #1A0F3A 100%);
}

.hero-bg.hero-bg-grid {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

.hero-bg.hero-bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(1000px 400px at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(1000px 400px at 50% 40%, #000 20%, transparent 75%);
}

.hero-bg.hero-bg-dots {
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
}

.hero-bg.hero-bg-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .25) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

.hero-bg.hero-bg-dark {
  background:
    radial-gradient(900px 360px at 80% 0%, rgba(155, 133, 255, .55), transparent 55%),
    radial-gradient(700px 320px at 5% 100%, rgba(76, 214, 160, .28), transparent 60%),
    radial-gradient(600px 260px at 100% 110%, rgba(255, 138, 76, .22), transparent 60%),
    radial-gradient(500px 220px at 35% 40%, rgba(92, 152, 255, .22), transparent 65%),
    linear-gradient(135deg, #1A0F3A 0%, #0E1028 40%, #0A0A1C 100%);
}

.hero-bg.hero-bg-dark::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(320px 320px at 20% 30%, rgba(109, 85, 245, .6), transparent 60%),
    radial-gradient(260px 260px at 75% 75%, rgba(31, 157, 111, .45), transparent 60%),
    radial-gradient(220px 220px at 90% 15%, rgba(255, 138, 76, .35), transparent 60%);
  filter: blur(40px);
  animation: auroraDrift 18s ease-in-out infinite alternate;
  opacity: .75;
}

.hero-bg.hero-bg-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(1200px 500px at 50% 30%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(1200px 500px at 50% 30%, #000 20%, transparent 80%);
  opacity: .55;
}

@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(-4%, 2%, 0) rotate(6deg); }
  100% { transform: translate3d(3%, -3%, 0) rotate(-4deg); }
}

.hero-bg.hero-bg-conic {
  background:
    conic-gradient(from 210deg at 85% 20%, rgba(109, 85, 245, .6), rgba(255, 138, 76, .4), rgba(31, 157, 111, .4), rgba(109, 85, 245, .6)),
    linear-gradient(135deg, #1e1b4b, #4c1d95);
}

/* ---------- Hero Content ---------- */
.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(4px);
}

.hero-status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A0F0D0;
  box-shadow: 0 0 0 3px rgba(160, 240, 208, .3);
}

.hero-h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 700;
  color: #fff;
}

.hero-h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #C4B3FF 0%, #FFE0C2 45%, #A8F0D0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, .8);
  line-height: 1.65;
}

/* Hero stats */
.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 24px;
  border-right: 1px solid rgba(255, 255, 255, .2);
}

.hero-stat:first-child {
  padding-left: 0;
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat .val {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero-stat .lab {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .04em;
}

/* Hero buttons */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .15s ease;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.hero-btn svg,
.hero-btn i {
  font-size: 0.9375rem;
  flex-shrink: 0;
  line-height: 1;
}

.hero-btn-primary {
  background: #fff;
  color: var(--ink-1);
}

.hero-btn-primary:hover {
  background: #F1EEFF;
  color: var(--brand-600);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  backdrop-filter: blur(4px);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .6);
}

.hero-btn-ghost {
  color: rgba(255, 255, 255, .75);
  padding: 10px 14px;
}

.hero-btn-ghost:hover {
  color: #fff;
}

/* ---------- Cards ---------- */
.pc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow-sm);
}

.pc-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pc-card-head h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.005em;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pc-card-head .meta {
  font-size: 0.875rem;
  color: var(--ink-4);
}

.link-more {
  font-size: 0.875rem;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.link-more:hover {
  color: var(--brand-600);
}

/* ---------- Asset Intro ---------- */
.asset-intro {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(109, 85, 245, .04), transparent);
  border-bottom: 1px solid var(--border);
}

.asset-intro .iconbox {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--brand-100);
}

.asset-intro h3 {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 600;
}

.asset-intro p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-3);
  line-height: 1.55;
}

.asset-list {
  list-style: none;
  margin: 0;
  padding: 8px 20px 16px;
}

.asset-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  border-bottom: 1px dashed var(--border);
}

.asset-list li:last-child {
  border-bottom: 0;
}

.asset-list .key {
  color: var(--ink-1);
  font-weight: 600;
  min-width: 96px;
  flex-shrink: 0;
}

.asset-list .val {
  color: var(--ink-3);
}

/* ---------- Timeline ---------- */
.timeline {
  padding: 4px 20px 16px;
}

.t-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 14px 0;
  position: relative;
}

.t-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: calc(14px + 28px);
  bottom: -14px;
  width: 2px;
  background: var(--border-strong);
}

.t-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  color: var(--ink-4);
  font-size: 0.875rem;
  font-weight: 700;
}

.t-item.done .t-dot {
  border-color: var(--pc-success);
  background: var(--pc-success-bg);
  color: var(--pc-success);
}

.t-item.final .t-dot {
  border-color: #E07B2A;
  background: #FFF3E8;
  color: #E07B2A;
}

.t-body .t-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.t-tag {
  font-size: 10px;
  letter-spacing: .05em;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.t-tag-quest {
  background: #EFF1F5;
  color: var(--ink-2);
}

.t-tag-final {
  background: #FFF3E8;
  color: #E07B2A;
}

.t-body .t-date {
  font-size: 0.875rem;
  color: var(--ink-4);
}

.t-body h4 {
  margin: 0 0 3px;
  font-size: 1rem;
  font-weight: 600;
}

.t-body p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ---------- Next Actions Grid ---------- */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px 20px 20px;
}

.action-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #FBFBFC;
  transition: all .15s ease;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  width: 100%;
  border-width: 1px;
  border-style: solid;
  border-color: var(--border-strong);
}

.action-item:hover {
  border-color: var(--ink-3);
  background: #fff;
  transform: translateY(-1px);
}

.action-item .action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  flex-shrink: 0;
}

.action-item.done .action-icon {
  background: #fff;
  border-color: var(--border);
  color: var(--ink-2);
}

.action-item h4 {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 600;
}

.action-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-4);
  line-height: 1.5;
}

.action-chev {
  margin-left: auto;
  color: var(--ink-5);
  align-self: center;
  flex-shrink: 0;
}

/* ---------- Related Projects ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 20px 20px;
}

.rel-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: all .15s;
  text-decoration: none;
  color: inherit;
}

.rel-item:hover {
  border-color: var(--ink-3);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.rel-thumb {
  aspect-ratio: 16 / 10;
  background: #E8E9EE;
  position: relative;
  overflow: hidden;
}

.rel-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, .35) 48%, rgba(255, 255, 255, .35) 52%, transparent 52%),
    linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, .35) 48%, rgba(255, 255, 255, .35) 52%, transparent 52%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
  opacity: .5;
}

.rel-thumb .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  color: var(--ink-4);
  text-align: center;
  padding: 4px;
}

.rel-meta {
  padding: 10px 12px 12px;
}

.rel-meta h4 {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -.005em;
}

.rel-stats {
  display: flex;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--ink-4);
}
.rel-stats i {
  margin-right: 4px;
}

/* ---------- Upcoming Contests ---------- */
.contest-list {
  padding: 8px 20px 16px;
}

.contest-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.contest-row:last-child {
  border-bottom: 0;
}

.contest-date {
  background: #FBFBFC;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  padding: 6px 0;
}

.contest-date .m {
  font-size: 9px;
  color: var(--ink-4);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.contest-date .d {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1;
}

.contest-row h4 {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 600;
}

.contest-row .sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-4);
}

.contest-join {
  font-size: 0.875rem;
  color: var(--brand-600);
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid var(--brand-100);
  border-radius: 6px;
  background: var(--brand-50);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
}

.contest-join:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ---------- Sidebar ---------- */
.side-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.project-meta {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
}

.project-meta .meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.project-meta .meta-row .k {
  color: #757A88;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.project-meta .meta-row .v {
  color: var(--ink-2);
  text-align: right;
  font-weight: 500;
}

.project-meta .meta-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-1);
  line-height: 1.45;
}

/* Progress card */
.progress-card {
  padding: 16px;
}

.progress-label {
  font-size: 0.875rem;
  color: var(--ink-4);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.progress-label .pct {
  color: var(--ink-1);
  font-weight: 700;
}

.progress-bar-wrap {
  height: 6px;
  background: #F3F4F7;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, #9B85FF 100%);
  border-radius: 999px;
}

.progress-bar-fill.full {
  width: 100%;
}

.kv {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
}

.kv .kv-row {
  display: flex;
  justify-content: space-between;
}

.kv .k {
  color: #757A88;
  font-size: 0.875rem;
}

.kv .v {
  color: var(--ink-2);
  font-weight: 500;
}

.kv .v.ok {
  color: var(--pc-success);
  font-weight: 600;
}

/* Quick Actions */
.quick-actions {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qa-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--ink-2);
  text-align: left;
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s;
}

.qa-btn:hover {
  background: #F3F4F7;
  color: var(--ink-1);
}

.qa-btn svg,
.qa-btn i {
  font-size: 0.9375rem;
  color: var(--ink-4);
  flex-shrink: 0;
  width: 1em;
  text-align: center;
}

.qa-btn:hover svg,
.qa-btn:hover i {
  color: var(--brand-600);
}

.qa-btn.primary {
  color: var(--brand-600);
  font-weight: 600;
}

.qa-btn.primary svg,
.qa-btn.primary i {
  color: var(--brand-600);
}

/* FA icon sizing for card heads, side-head, notice-icon, action-icon */
.pc-card-head h2 i { font-size: 1rem; }

.card-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}
.side-head i { font-size: 1rem; }
.notice-icon i { font-size: 0.875rem; }
.action-icon i { font-size: 0.875rem; }
.action-chev { font-size: 0.75rem; color: var(--ink-5); align-self: center; flex-shrink: 0; margin-left: auto; }
.iconbox i { font-size: 1rem; }

/* Notices */
.notices {
  padding: 8px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.875rem;
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #F3F4F7;
  display: grid;
  place-items: center;
  color: var(--ink-3);
}
.notice-icon--brand {
  background: var(--brand-50);
  color: var(--brand-600);
}
.notice-icon--blue {
  background: #EBF3FF;
  color: #3B82F6;
}
.notice-icon--orange {
  background: #FFF3E8;
  color: #E07B2A;
  flex-shrink: 0;
}

.notice-item h5 {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-1);
}

.notice-item p {
  margin: 0;
  color: var(--ink-4);
  line-height: 1.5;
}

/* ---------- Tweaks Panel ---------- */
#tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: 280px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(14, 17, 22, .14), 0 2px 6px rgba(14, 17, 22, .06);
  font-family: inherit;
  overflow: hidden;
  display: none;
}

#tweaks-panel.open {
  display: block;
}

.tweaks-trigger {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(109, 85, 245, .45);
  transition: all .15s;
}

.tweaks-trigger:hover {
  background: var(--brand-600);
  transform: scale(1.08);
}

.tweaks-trigger.hidden {
  display: none;
}

#tweaks-panel .tweaks-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#tweaks-panel .tweaks-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

#tweaks-panel .tweaks-header h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  display: block;
}

#tweaks-panel .tweaks-close {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--ink-4);
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  cursor: pointer;
}

#tweaks-panel .tweaks-close:hover {
  background: #F3F4F7;
  color: var(--ink-1);
}

#tweaks-panel .tweaks-body {
  padding: 14px;
}

#tweaks-panel label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-4);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

#tweaks-panel .opts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

#tweaks-panel .opt {
  aspect-ratio: 1.4 / 1;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
}

#tweaks-panel .opt:hover {
  border-color: var(--ink-4);
  transform: translateY(-1px);
}

#tweaks-panel .opt.on {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

#tweaks-panel .opt span {
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: .02em;
}

/* Tweaks swatch previews */
#tweaks-panel .opt[data-bg="subtle"] {
  background:
    radial-gradient(80px 40px at 80% 0%, rgba(109, 85, 245, .5), transparent 60%),
    linear-gradient(180deg, #3730A3, #6D28D9);
}

#tweaks-panel .opt[data-bg="mesh"] {
  background:
    radial-gradient(60px 40px at 15% 15%, rgba(109, 85, 245, .7), transparent 60%),
    radial-gradient(50px 35px at 88% 20%, rgba(255, 138, 76, .5), transparent 60%),
    linear-gradient(180deg, #2D1B69, #1A0F3A);
}

#tweaks-panel .opt[data-bg="grid"] {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
}

#tweaks-panel .opt[data-bg="dots"] {
  background:
    radial-gradient(rgba(255, 255, 255, .3) 1px, transparent 1.2px) 0 0 / 8px 8px,
    linear-gradient(135deg, #1e1b4b, #4c1d95);
}

#tweaks-panel .opt[data-bg="dark"] {
  background:
    radial-gradient(80px 40px at 80% 15%, rgba(155, 133, 255, .7), transparent 60%),
    radial-gradient(60px 35px at 10% 100%, rgba(31, 157, 111, .4), transparent 60%),
    linear-gradient(180deg, #14151C, #0E1116);
}

#tweaks-panel .opt[data-bg="conic"] {
  background:
    conic-gradient(from 210deg at 80% 20%, rgba(109, 85, 245, .8), rgba(255, 138, 76, .5), rgba(31, 157, 111, .5), rgba(109, 85, 245, .8)),
    #1e1b4b;
}

/* ---------- Sponsors Section ---------- */
.pc-sponsors {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}

.pc-sponsors .sp-label {
  font-size: 0.75rem;
  color: var(--ink-5);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pc-sponsors .sp-logos {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 36px;
  align-items: center;
}

.pc-sponsors .sp-logos span {
  font-size: 0.875rem;
  color: var(--ink-4);
  font-weight: 500;
  letter-spacing: .02em;
}

/* ---------- PC Page Responsive ---------- */
@media (max-width: 992px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stat {
    padding: 0 16px;
  }
}

@media (max-width: 576px) {
  .actions-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats-row {
    gap: 10px 0;
  }

  .hero-stat {
    padding: 0 12px;
  }

  .contest-row {
    grid-template-columns: 44px 1fr;
  }

  .contest-join {
    display: none;
  }
}

/* ── Project Edit ────────────────────────────────── */
.auto-save-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1F9D6F;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Project Edit Button System ─────────────────── */
.pe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
}
.pe-btn i { flex: 0 0 auto; font-size: 13px; }
.pe-btn:focus { outline: none; }

.pe-btn--sm { padding: 6px 12px; font-size: 1.05rem; border-radius: 6px; }

.pe-btn--ghost { color: #64748b; }
.pe-btn--ghost:hover { background: #eef1f5; color: #1e293b; text-decoration: none; }

.pe-btn--secondary {
  background: #fff;
  border-color: #e2e8f0;
  color: #334155;
}
.pe-btn--secondary:hover { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; text-decoration: none; }

.pe-btn--primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.pe-btn--primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; text-decoration: none; }

.pe-btn--danger { color: #e11d48; }
.pe-btn--danger:hover { background: #fff; }

/* ── Project Edit: Section Cards ─────────────────── */
.pe-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
  margin-bottom: 20px;
}
.pe-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.pe-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
}
.pe-card__hint { font-size: 12px; color: #64748b; }

/* Hero image */
.pe-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #eef1f5;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}
.pe-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-hero__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15,23,42,.72);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  transition: background .15s;
}
.pe-hero__tag:hover { background: rgba(15,23,42,.9); color: #fff; }
.pe-hero__tag i { font-size: 12px; }

/* 대표 이미지 미등록 시 표시되는 빈 상태 — 점선 테두리로 업로드 영역임을 명시,
   기본 placeholder 이미지를 노출하지 않아 사용자가 능동적으로 추가하도록 유도. */
.pe-hero__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  transition: border-color .15s, background .15s;
}
.pe-hero:hover .pe-hero__empty { border-color: #6366f1; background: #f5f7ff; }
.pe-hero__empty-icon {
  font-size: 38px;
  color: #94a3b8;
  margin-bottom: 8px;
}
.pe-hero-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
  display: flex;
  gap: 14px;
}
.pe-hero-meta span::before { content: "·"; margin-right: 10px; color: #cbd5e1; }
.pe-hero-meta span:first-child::before { content: ""; margin: 0; }

/* Tags */
.pe-tag-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  min-height: 48px;
  align-items: center;
  margin-bottom: 8px;
}
.pe-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 6px 0 10px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}
.pe-tag__x {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #1d4ed8;
  opacity: .7;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 11px;
  line-height: 1;
}
.pe-tag__x:hover { background: rgba(29,78,216,.12); opacity: 1; }
.pe-tag-input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  font-size: 14px;
  color: #1e293b;
  padding: 8px 12px;
  font-family: inherit;
}
.pe-tag-input:focus { border-color: #93c5fd; }
.pe-tag-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pe-tag-add:hover { border-color: #94a3b8; color: #334155; }

/* Thumbs grid */
.pe-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.pe-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #eef1f5;
  border: 1px solid #e2e8f0;
}
.pe-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-thumb__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(15,23,42,.75);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
}
.pe-thumb__remove:hover { background: #e11d48; }

/* Dropzone */
.pe-dropzone {
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.pe-dropzone:hover { border-color: #3b82f6; background: #f5faff; color: #334155; }
.pe-dropzone__icon { font-size: 28px; color: #94a3b8; margin-bottom: 8px; }
.pe-dropzone strong { color: #1e293b; font-weight: 600; }
.pe-dropzone__hint { font-size: 11.5px; color: #94a3b8; margin-top: 4px; }

@media (max-width: 576px) {
  .pe-thumbs { grid-template-columns: repeat(2, 1fr); }
}

/* ── pe-card typography normalization ───────────── */
.pe-card .form-label {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pe-card .form-control,
.pe-card .form-select,
.pe-card .form-control-lg {
  font-size: 16px;
  color: #0f172a;
  border-color: #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  height: auto;
}
.pe-card .form-control:focus,
.pe-card .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.14);
}
.pe-card textarea.form-control { padding: 10px 12px; }
.pe-card small,
.pe-card .text-muted { font-size: 13px; }
.pe-card .form-control-lg { font-size: 16px; }

.pe-tag-hint { font-size: 11.5px; }
.dropdown-menu-narrow { min-width: 9rem; }

/* pe-tab panels */
.pe-card .form-label { font-size: 15px !important; font-weight: 500 !important; }
.pe-card .ccp-scard-icon,
.card .ccp-scard-icon { border-radius: 10px; }
.ccp-quest-desc--active { color: #ea580c; }
.ccp-quest-desc--wait   { color: #8f96a1; }
.pe-tab-panel ::placeholder,
.col-lg-8 .pe-card ::placeholder { color: #c0c8d4; font-weight: 300; font-size: 1rem; }
.pe-section-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e2e8f0; padding-bottom: 0; margin-bottom: 0; list-style: none; padding-left: 0; scrollbar-width: none; -ms-overflow-style: none; }
.pe-section-tabs::-webkit-scrollbar { display: none; }
.pe-section-tab { background: none; border: none; padding: 8px 22px; font-size: 15px; font-weight: 500; color: #64748b; cursor: pointer; border-radius: 8px 8px 0 0; display: inline-flex; align-items: center; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pe-section-tab:hover { color: #334155; background: #f8fafc; }
.pe-section-tab.active { color: #2551D6; font-weight: 600; border-bottom-color: #2551D6; background: transparent; }
.pe-info-banner { display: flex; align-items: flex-start; gap: 5px; padding: 14px 18px; border-radius: 10px; font-size: 14px; }
.pe-info-banner--blue { background: #EFF5FF; color: #2551D6; border: 1px solid #bfdbfe; }
.pe-info-banner--blue .pe-info-sub { color: #3D4D6B; font-size: 13px; margin-top: 2px; }
.pe-info-banner--green { background: #e8faf6; color: var(--color-green-hover); border: 1px solid #a7e0d5; }
.pe-info-banner--green .pe-info-sub { color: #374151; font-size: 13px; margin-top: 2px; }
.pe-info-banner--amber { background: #FFFBEB; color: #92400E; border: 1px solid #fde68a; }
.pe-info-banner--amber .pe-info-sub { color: #374151; font-size: 13px; margin-top: 2px; }
.pe-info-banner--purple { background: #F5F3FF; color: #6D28D9; border: 1px solid #c4b5fd; }
.pe-info-banner--purple .pe-info-sub { color: #374151; font-size: 13px; margin-top: 2px; }
.pe-add-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border: 1.5px dashed #cbd5e1; border-radius: 10px; background: #fff; color: #64748b; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; }
.pe-add-btn:hover { border-color: #94a3b8; color: #334155; background: #f8fafc; }
.pe-delete-btn { font-size: 14px !important; padding: 4px 12px !important; border: none !important; border-radius: 6px !important; background: transparent !important; color: #ef4444 !important; }
.pe-delete-btn:hover { background: #fff5f5 !important; }
.pe-info-box { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
.pe-resource-item { border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; }

/* Responsive: tab scroll on mobile */
@media (max-width: 767px) {
  .pe-section-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .pe-section-tab { font-size: 12.5px; padding: 7px 10px; }
}

/* ── Project Edit: Contest Notice ───────────────── */
.pe-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  margin-top: 12px;
}
.pe-notice__inner {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #78350f;
}
.pe-notice__icon {
  font-size: 15px;
  color: #b45309;
  flex-shrink: 0;
}
.pe-notice__text strong { font-weight: 700; color: #78350f; }
.pe-notice__link {
  color: #9a3412;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.pe-notice__close {
  margin-left: auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: #b45309;
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
}
.pe-notice__close:hover { background: rgba(180,83,9,.08); }

/* Footer actions bar */
.pe-footer {
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2.5rem;
}
.pe-footer__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pe-footer__saved {
  font-size: 12px;
  color: #64748b;
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pe-footer__saved .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #059669;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════
   FAQ PAGE REDESIGN
   ══════════════════════════════════════════════════════ */

/* ── FAQ Design Tokens ───────────────────────────────── */
:root {
  --faq-blue-50:  #EFF4FF;
  --faq-blue-100: #DCE7FF;
  --faq-blue-200: #B6CCFF;
  --faq-blue-300: #85A9FF;
  --faq-blue-500: var(--color-blue);
  --faq-blue-600: var(--color-blue-hover);
  --faq-blue-700: #1648C8;
  --faq-yellow-300: #FFD84D;
  --faq-yellow-400: #FFC833;
  --faq-ink-900: #0B1220;
  --faq-ink-800: #14213D;
  --faq-ink-700: #1F2A44;
  --faq-ink-600: #3A4664;
  --faq-ink-500: #5B6780;
  --faq-ink-400: #8691AA;
  --faq-ink-300: #B6BECE;
  --faq-ink-200: #D9DEEA;
  --faq-ink-100: #ECEFF6;
  --faq-ink-50:  #F5F7FB;
  --faq-bg:      #FAFBFE;
  --faq-white:   #FFFFFF;
  --faq-success: #12B886;
  --faq-danger:  #E8435A;
  --faq-radius-sm: 8px;
  --faq-radius-md: 12px;
  --faq-radius-lg: 16px;
  --faq-radius-xl: 22px;
  --faq-radius-full: 999px;
  --faq-shadow-xs: 0 1px 2px rgba(16,24,40,.04);
  --faq-shadow-sm: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --faq-shadow-md: 0 4px 14px -2px rgba(16,24,40,.08), 0 2px 6px -1px rgba(16,24,40,.05);
  --faq-shadow-lg: 0 18px 40px -12px rgba(16,24,40,.14), 0 6px 16px -6px rgba(16,24,40,.08);
  --faq-shadow-blue: 0 12px 32px -10px rgba(43,107,255,.45);
  --faq-mono: 'JetBrains Mono', 'Courier New', ui-monospace, monospace;
}

/* ── FAQ Page Body ───────────────────────────────────── */
.faq-page { background: var(--faq-bg); }

/* ── FAQ Hero ────────────────────────────────────────── */
.faq-hero {
  padding: clamp(24px,4vw,52px) 0 clamp(28px,4vw,56px);
  background: var(--faq-bg);
}
.faq-hero-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(20px,4vw,56px);
}
.faq-hero-title {
  font-size: clamp(26px,3.5vw,42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--faq-ink-900);
  margin: 0 0 14px;
}
.faq-hero-accent {
  display: inline-block;
  position: relative;
  color: var(--faq-ink-900);
}
.faq-hero-accent::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px; bottom: 4px;
  height: 13px;
  background: var(--faq-yellow-300);
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-6deg);
}
.faq-hero-sub {
  font-size: clamp(17px,1.7vw,19px);
  color: var(--faq-ink-500);
  margin: 0 0 32px;
  line-height: 1.6;
}

/* ── FAQ Search ──────────────────────────────────────── */
.faq-search-wrap { max-width: 680px; }
.faq-search-box {
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 18px;
  background: var(--faq-white);
  border: 1.5px solid var(--faq-ink-200);
  border-radius: var(--faq-radius-lg);
  box-shadow: var(--faq-shadow-sm);
  transition: border-color .2s, box-shadow .2s;
  gap: 8px;
}
.faq-search-box:focus-within {
  border-color: var(--faq-blue-500);
  box-shadow: 0 0 0 4px rgba(43,107,255,.12), var(--faq-shadow-md);
}
.faq-search-icon {
  color: var(--faq-ink-400);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.faq-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 8px;
  font-size: 16px;
  color: var(--faq-ink-900);
  letter-spacing: -.01em;
  font-family: inherit;
}
.faq-search-input::placeholder {
  color: var(--faq-ink-400) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}
.faq-search-kbd {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--faq-ink-100);
  color: var(--faq-ink-500);
  font-family: var(--faq-mono);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--faq-ink-200);
  border-bottom-width: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.faq-search-btn {
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  background: #18181B;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: inherit;
  transition: background .15s, transform .15s;
}
.faq-search-btn:hover { background: var(--faq-blue-600); transform: translateY(-1px); }

/* ── FAQ Main Layout ─────────────────────────────────── */
.faq-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(20px,4vw,56px) 80px;
}

/* ── Popular Cards ───────────────────────────────────── */
.faq-popular { margin-bottom: 52px; }
.faq-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 20px;
  flex-wrap: wrap;
}
.faq-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--faq-ink-900);
  letter-spacing: -.01em;
}
.faq-section-chip {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--faq-ink-900);
  color: var(--faq-yellow-400);
  font-family: var(--faq-mono);
  font-size: 12px;
  font-weight: 700;
}
.faq-section-meta { font-size: 14px; color: var(--faq-ink-400); }
.faq-popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 12px;
}
.faq-pop-card {
  background: var(--faq-white);
  border: 1.5px solid var(--faq-ink-200);
  border-radius: var(--faq-radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  position: relative;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: inherit;
  color: inherit;
  background-clip: padding-box;
}
.faq-pop-card::before {
  content: attr(data-num);
  position: absolute;
  top: 10px; right: 14px;
  font-family: var(--faq-mono);
  font-size: 30px;
  font-weight: 800;
  color: var(--faq-ink-100);
  line-height: 1;
  transition: color .2s;
}
.faq-pop-card:hover { border-color: var(--faq-blue-300); transform: translateY(-2px); box-shadow: var(--faq-shadow-md); }
.faq-pop-card:hover::before { color: var(--faq-blue-100); }
.faq-pop-tag { font-size: 12px; font-weight: 600; color: var(--color-blue); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.faq-pop-q { font-size: 15.5px; font-weight: 600; color: var(--faq-ink-900); line-height: 1.45; padding-right: 28px; }
.faq-pop-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faq-ink-400); margin-top: 2px; }

/* ── FAQ Body Grid ───────────────────────────────────── */
.faq-body {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .faq-body { grid-template-columns: 1fr; gap: 16px; }
}

/* ── Sidebar ─────────────────────────────────────────── */
.faq-sidebar { position: sticky; top: 84px; }
.faq-sidebar-head {
  font-size: 12px; font-weight: 700;
  color: var(--faq-ink-400);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-left: 14px;
}
.faq-sidebar-list { display: flex; flex-direction: column; gap: 2px; }
.faq-cat-btn {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px; font-weight: 500;
  color: var(--faq-ink-600);
  border: none; background: none; cursor: pointer;
  transition: all .12s;
  width: 100%; text-align: left; font-family: inherit;
}
.faq-cat-btn:hover { background: var(--faq-ink-100); color: var(--faq-ink-900); }
.faq-cat-btn.active { background: #18181B; color: #fff; }
.faq-cat-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-cat-count { margin-left: auto; font-family: var(--faq-mono); font-size: 12px; color: var(--faq-ink-400); font-weight: 600; }
.faq-cat-btn.active .faq-cat-count { color: rgba(255,255,255,.55); }
@media (max-width: 860px) {
  .faq-sidebar { position: static; }
  .faq-sidebar-head { display: none; }
  .faq-sidebar-list { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .faq-sidebar-list::-webkit-scrollbar { display: none; }
  .faq-cat-btn { flex-shrink: 0; padding: 7px 14px; border-radius: var(--faq-radius-full); border: 1.5px solid var(--faq-ink-200); }
  .faq-cat-btn.active { border-color: #18181B; }
  .faq-cat-count { display: none; }
}

/* ── FAQ List Head ───────────────────────────────────── */
.faq-list-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--faq-ink-100);
  gap: 12px;
}
.faq-list-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--faq-ink-900); }
.faq-list-count { display: inline-block; font-family: var(--faq-mono); font-size: 14px; color: var(--faq-ink-400); margin-left: 8px; font-weight: 500; }
.faq-expand-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px;
  border: 1.5px solid var(--faq-ink-200);
  font-size: 14px; color: var(--faq-ink-600); font-weight: 500;
  background: none; cursor: pointer; font-family: inherit;
  transition: border-color .15s, color .15s; white-space: nowrap;
}
.faq-expand-btn:hover { border-color: var(--faq-ink-400); color: var(--faq-ink-900); }

/* ── FAQ Accordion ───────────────────────────────────── */
.faq-list-wrap {
  border: 1.5px solid var(--faq-ink-200);
  border-radius: var(--faq-radius-lg);
  background: var(--faq-white);
  overflow: hidden;
}
.faq-entry { border-bottom: 1px solid var(--faq-ink-100); }
.faq-entry:last-child { border-bottom: none; }
.faq-q-btn {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 20px 24px; text-align: left;
  background: none; border: none; cursor: pointer;
  transition: background .15s; font-family: inherit;
}
.faq-q-btn:hover { background: var(--faq-ink-50); }
.faq-q-catbadge {
  flex-shrink: 0;
  font-size: 12px; font-weight: 700;
  color: var(--color-blue); background: var(--faq-blue-50);
  padding: 4px 8px; border-radius: 6px; white-space: nowrap;
}
.faq-q-text { flex: 1; font-size: 16px; font-weight: 600; color: var(--faq-ink-900); line-height: 1.45; letter-spacing: -.01em; }
.faq-q-text mark { background: var(--faq-yellow-300); color: var(--faq-ink-900); padding: 1px 3px; border-radius: 3px; }
.faq-q-chev {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--faq-ink-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--faq-ink-500);
  transition: background .25s, color .25s, transform .25s cubic-bezier(.4,.1,.2,1);
}
.faq-entry.open .faq-q-chev { background: var(--faq-ink-900); color: var(--faq-yellow-400); transform: rotate(180deg); }
.faq-a-wrap { overflow: hidden; max-height: 0; transition: max-height .32s cubic-bezier(.4,.1,.2,1); }
.faq-entry.open .faq-a-wrap { max-height: 800px; }
.faq-a-inner {
  padding: 4px 24px 24px 24px;
  display: grid; grid-template-columns: 72px 1fr;
  gap: 16px; align-items: start;
}
.faq-a-label {
  font-size: 12px; font-weight: 600;
  color: #D94060; background: #FEF0F3;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap;
  justify-self: start; margin-top: 2px;
}
.faq-a-body { font-size: 15px; line-height: 1.75; color: var(--faq-ink-600); }
.faq-a-body p { margin: 0 0 10px; }
.faq-a-body p:last-child { margin-bottom: 0; }
.faq-a-body strong { color: var(--faq-ink-900); font-weight: 600; }
.faq-a-body code { font-family: var(--faq-mono); font-size: 13.5px; background: var(--faq-ink-100); padding: 2px 6px; border-radius: 5px; color: var(--faq-ink-900); }
.faq-a-body ul { margin: 10px 0; padding-left: 20px; }
.faq-a-body li { margin-bottom: 6px; }
.faq-a-body a { color: var(--faq-blue-600); text-decoration: underline; text-underline-offset: 3px; }
.faq-a-foot {
  grid-column: 2;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed var(--faq-ink-200);
  flex-wrap: wrap; gap: 10px;
}
.faq-feedback { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--faq-ink-500); flex-wrap: wrap; }
.faq-feedback-label { font-weight: 500; }
.faq-feedback-btns { display: flex; gap: 6px; }
.faq-fb-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 8px;
  border: 1.5px solid var(--faq-ink-200);
  font-size: 14px; font-weight: 500; color: var(--faq-ink-600);
  background: none; cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.faq-fb-btn:hover { border-color: var(--faq-ink-400); color: var(--faq-ink-900); }
.faq-fb-btn.voted-up { background: var(--faq-success); color: #fff; border-color: var(--faq-success); }
.faq-fb-btn.voted-down { background: var(--faq-danger); color: #fff; border-color: var(--faq-danger); }
.faq-share-btns { display: flex; gap: 4px; }
.faq-share-btn {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--faq-ink-400); border: 1.5px solid transparent;
  background: none; cursor: pointer; transition: all .15s;
}
.faq-share-btn:hover { background: var(--faq-ink-100); color: var(--faq-ink-900); border-color: var(--faq-ink-200); }

/* ── Empty State ─────────────────────────────────────── */
.faq-empty { padding: 56px 24px; text-align: center; border: 1.5px dashed var(--faq-ink-200); border-radius: var(--faq-radius-lg); background: var(--faq-white); }
.faq-empty-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--faq-blue-50); color: var(--faq-blue-600); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.faq-empty-title { font-size: 17px; font-weight: 700; color: var(--faq-ink-900); margin-bottom: 6px; }
.faq-empty-sub { font-size: 15px; color: var(--faq-ink-500); }

/* ── CTA Banner ──────────────────────────────────────── */
.faq-cta {
  margin-top: 44px;
  border-radius: var(--faq-radius-xl);
  background: linear-gradient(135deg, #0B1220 0%, #1F2A44 55%, #0B1220 100%);
  color: #fff;
  padding: clamp(24px,4vw,42px);
  display: grid; grid-template-columns: 1fr auto;
  gap: 28px; align-items: center;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(11,18,32,.55);
}
.faq-cta::before {
  content: ''; position: absolute; top: -60px; right: 80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,107,255,.35) 0%, transparent 65%);
  pointer-events: none;
}
.faq-cta::after {
  content: ''; position: absolute; bottom: -100px; left: -40px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,51,.18) 0%, transparent 70%);
  pointer-events: none;
}
.faq-cta-body { position: relative; z-index: 1; }
.faq-cta-title { font-size: clamp(20px,2.6vw,26px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.3; }
.faq-cta-sub { font-size: 15px; color: rgba(255,255,255,.6); margin: 0; }
.faq-cta-actions { display: flex; gap: 10px; position: relative; z-index: 1; flex-shrink: 0; }
.faq-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 11px;
  font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; font-family: inherit;
  transition: all .18s; text-decoration: none;
}
.faq-cta-btn.primary { background: var(--faq-yellow-400); color: var(--faq-ink-900); }
.faq-cta-btn.primary:hover { background: var(--faq-yellow-300); transform: translateY(-2px); box-shadow: 0 8px 20px -6px rgba(255,200,51,.5); }
.faq-cta-btn.secondary { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.faq-cta-btn.secondary:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.55); transform: translateY(-1px); }
@media (max-width: 680px) {
  .faq-cta { grid-template-columns: 1fr; }
  .faq-cta-actions { flex-wrap: wrap; }
}

/* ── Command Palette ─────────────────────────────────── */
.faq-cmdk-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(11,18,32,.45); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 15vh;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.faq-cmdk-overlay.show { opacity: 1; pointer-events: auto; }
.faq-cmdk {
  width: min(92vw, 600px);
  background: var(--faq-white);
  border-radius: var(--faq-radius-lg);
  box-shadow: var(--faq-shadow-lg);
  border: 1.5px solid var(--faq-ink-200);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform .25s cubic-bezier(.4,.1,.2,1);
}
.faq-cmdk-overlay.show .faq-cmdk { transform: translateY(0); }
.faq-cmdk-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--faq-ink-100);
}
.faq-cmdk-icon { color: var(--faq-ink-400); flex-shrink: 0; }
.faq-cmdk-input { flex: 1; border: none; outline: none; background: transparent; font-size: 16px; color: var(--faq-ink-900); font-family: inherit; }
.faq-cmdk-esc { padding: 3px 8px; border-radius: 6px; background: var(--faq-ink-100); font-family: var(--faq-mono); font-size: 12px; font-weight: 600; color: var(--faq-ink-500); }
.faq-cmdk-results { max-height: 340px; overflow-y: auto; padding: 8px; }
.faq-cmdk-item {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; text-align: left;
  color: var(--faq-ink-700); font-size: 15px;
  background: none; border: none; cursor: pointer; font-family: inherit;
  transition: background .1s;
}
.faq-cmdk-item:hover, .faq-cmdk-item.active { background: var(--faq-ink-100); }
.faq-cmdk-item-tag { font-family: var(--faq-mono); font-size: 11px; font-weight: 700; color: var(--faq-blue-700); background: var(--faq-blue-50); padding: 3px 6px; border-radius: 5px; white-space: nowrap; flex-shrink: 0; }
.faq-cmdk-item-text { flex: 1; font-weight: 500; }
.faq-cmdk-empty { padding: 28px 20px; text-align: center; font-size: 15px; color: var(--faq-ink-400); }


/* ── FA icon size overrides for FAQ ─────────────────── */
.faq-search-icon .fa-regular { font-size: 18px; }
.faq-search-btn .fa-regular  { font-size: 13px; }
.faq-pop-meta .fa-regular    { font-size: 11px; }
.faq-meta-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; display: inline-block; vertical-align: middle;
}
.faq-cat-icon .fa-regular    { font-size: 14px; }
.faq-expand-btn .fa-regular  { font-size: 12px; }
.faq-q-chev .fa-regular      { font-size: 14px; }
.faq-empty-icon .fa-regular  { font-size: 20px; }
.faq-fb-btn .fa-regular      { font-size: 13px; }
.faq-share-btn .fa-regular   { font-size: 14px; }
.faq-cta-btn .fa-regular     { font-size: 14px; }
.faq-cmdk-icon .fa-regular   { font-size: 16px; }
.faq-cmdk-item .fa-regular   { font-size: 13px; color: var(--faq-ink-400); }


/* ══════════════════════════════════════════════════════
   MAKER PROFILE v2 (오렌지 테마)
   ══════════════════════════════════════════════════════ */
:root {
  --mp2-orange-50:  #FFF7ED;
  --mp2-orange-100: #FFEDD5;
  --mp2-orange-200: #FED7AA;
  --mp2-orange-300: #FDBA74;
  --mp2-orange-400: #FB923C;
  --mp2-orange-500: #F97316;
  --mp2-orange-600: #EA580C;
  --mp2-orange-700: #C2410C;
  --mp2-gray-50:  #F9FAFB;
  --mp2-gray-100: #F3F4F6;
  --mp2-gray-200: #E5E7EB;
  --mp2-gray-300: #D1D5DB;
  --mp2-gray-400: #9CA3AF;
  --mp2-gray-500: #6B7280;
  --mp2-gray-600: #4B5563;
  --mp2-gray-700: #374151;
  --mp2-gray-800: #1F2937;
  --mp2-gray-900: #111827;
}

/* ── 메이커 프로필(maker_profile.asp) 페이지 배경 ──────── */
.mp2-page { background: #F0F4F9; }

/* 프로젝트 상세 댓글 작성 버튼 — 전역 레거시 .btn-primary(1.1rem·uppercase·큰 패딩)
   상속을 끊고 make2026 스타일로 정상화(선택자 특이도로 우선순위 확보) */
.make2026-main .btn.mk-cmt-submit {
  font-size: 14px;
  font-weight: 700;
  padding: 0 22px;
  min-height: 44px;
  text-transform: none;
  letter-spacing: normal;
  border-radius: 9px;
}

/* ── 쪽지 모달 ───────────────────────────────────────── */
.mp2-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(15,28,51,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mp2-modal {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15,28,51,.28);
  overflow: hidden;
}
.mp2-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--mp2-gray-100);
}
.mp2-modal-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mp2-gray-900);
}
.mp2-modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--mp2-gray-400);
  font-size: 17px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.mp2-modal-close:hover { background: var(--mp2-gray-100); color: var(--mp2-gray-700); }
.mp2-modal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.mp2-modal-alert {
  padding: 9px 12px;
  border-radius: 8px;
  background: #EEF3FB;
  border: 1px solid #DDE6F4;
  color: #3A4D6B;
  font-size: 13px;
  font-weight: 500;
}
.mp2-modal-input,
.mp2-modal-textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--mp2-gray-200);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  color: var(--mp2-gray-900);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.mp2-modal-textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.mp2-modal-input::placeholder,
.mp2-modal-textarea::placeholder { color: var(--mp2-gray-400); }
.mp2-modal-input:focus,
.mp2-modal-textarea:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
.mp2-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px 20px;
}
.mp2-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
}
.mp2-modal-btn:disabled { opacity: .6; cursor: default; }
.mp2-modal-btn-primary {
  border: 1px solid #2563EB;
  background: #2563EB;
  color: #fff;
}
.mp2-modal-btn-primary:not(:disabled):hover { background: #1D4FD8; border-color: #1D4FD8; }
.mp2-modal-btn-ghost {
  border: 1px solid var(--mp2-gray-200);
  background: #fff;
  color: var(--mp2-gray-700);
}
.mp2-modal-btn-ghost:hover { background: var(--mp2-gray-50); }

/* ── Hero ────────────────────────────────────────────── */
.mp2-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #33528F 0%, #5878C9 100%);
  color: #fff;
}
.mp2-hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mp2-hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.mp2-hero-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}
.mp2-avatar-wrap { position: relative; flex-shrink: 0; }
.mp2-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,.28);
  overflow: hidden;
}
.mp2-text-col { flex: 1; min-width: 0; padding-top: 4px; }
.mp2-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.mp2-name {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.mp2-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255,212,138,.14);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #FFD48A;
  border: 1px solid rgba(255,212,138,.32);
}
.mp2-tagline {
  margin: 0 0 14px;
  font-size: 16px;
  color: rgba(255,255,255,.92);
  font-weight: 500;
}
.mp2-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
}
.mp2-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.mp2-links-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.mp2-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: background .15s;
}
.mp2-link-pill:hover { background: rgba(255,255,255,.28); color: #fff; }
.mp2-badges-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mp2-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.mp2-badge-gold  { background: rgba(255,255,255,.8); color: #92400E; }
.mp2-hero-right {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 8px;
}
.mp2-msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #fff;
  color: #0F1C33;
  border: none;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15,28,51,.18);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.mp2-msg-btn:hover { background: #EEF3FB; }

/* ── Stats Bar (히어로 위로 떠 있는 카드) ──────────────── */
.mp2-stats-bar {
  max-width: 1320px;
  margin: -22px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.mp2-stats-inner {
  background: #fff;
  border: 1px solid var(--mp2-gray-200);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(15,28,51,.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 768px) {
  .mp2-stats-inner { grid-template-columns: repeat(2, 1fr); }
}
.mp2-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
}
.mp2-stat-card + .mp2-stat-card { border-left: 1px solid var(--mp2-gray-100); }
@media (max-width: 768px) {
  .mp2-stat-card:nth-child(odd) { border-left: none; }
  .mp2-stat-card:nth-child(n+3) { border-top: 1px solid var(--mp2-gray-100); }
}
.mp2-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.mp2-stat-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mp2-stat-top { display: flex; flex-direction: column; gap: 1px; }
.mp2-stat-value { font-size: 24px; font-weight: 700; color: var(--mp2-gray-900); letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mp2-stat-label { font-size: 12.5px; color: var(--mp2-gray-500); font-weight: 500; }

/* ── Content Grid ────────────────────────────────────── */
.mp2-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
}
.mp2-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 992px) {
  .mp2-grid { grid-template-columns: 1fr; }
}

/* ── Sidebar ─────────────────────────────────────────── */
.mp2-sidebar { display: flex; flex-direction: column; gap: 16px; }
.mp2-card {
  background: #fff;
  border: 1px solid var(--mp2-gray-200);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 2px 12px rgba(15,28,51,.05);
}
.mp2-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.mp2-card-icon { font-size: 16px; }
.mp2-card-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--mp2-gray-900); letter-spacing: -0.01em; }
.mp2-card-count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--mp2-gray-500);
  background: var(--mp2-gray-100);
  padding: 2px 8px;
  border-radius: 999px;
}
.mp2-about { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--mp2-gray-700); }
.mp2-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.mp2-skill-tag {
  padding: 5px 10px;
  border-radius: 8px;
  background: #EFF6FF;
  color: var(--color-blue);
  border: 1px solid #DBEAFE;
  font-size: 13px;
  font-weight: 600;
}
.mp2-interest-tag {
  padding: 6px 12px;
  border-radius: 8px;
  background: #EEF3FB;
  color: #3A4D6B;
  border: 1px solid #DDE6F4;
  font-size: 12px;
  font-weight: 600;
}
.mp2-contest-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.mp2-contest-item { display: flex; gap: 10px; padding: 10px 0; position: relative; }
.mp2-contest-item + .mp2-contest-item { border-top: 1px solid var(--mp2-gray-100); }
.mp2-contest-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.mp2-contest-body { flex: 1; min-width: 0; }
.mp2-contest-name { font-size: 14px; font-weight: 600; color: var(--mp2-gray-900); display: block; margin-bottom: 4px; }
.mp2-contest-meta { display: flex; align-items: center; gap: 8px; }
.mp2-contest-date { font-size: 12.5px; color: var(--mp2-gray-500); }
.mp2-contest-status {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ── Main Content ────────────────────────────────────── */
.mp2-main {
  background: #fff;
  border: 1px solid var(--mp2-gray-200);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(17,24,39,.03);
  min-height: 600px;
}
.mp2-tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mp2-gray-200);
  margin-bottom: 26px;
  gap: 16px;
  flex-wrap: wrap;
}
.mp2-tabs-left { display: flex; gap: 24px; }
.mp2-tabs-right { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; }
.mp2-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--mp2-gray-500);
  margin-bottom: -1px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.mp2-tab-btn.active {
  color: var(--mp2-gray-900);
  border-bottom-color: #2563EB;
  font-weight: 700;
}
.mp2-tab-btn.active > i { color: #2563EB; }
.mp2-tab-count {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--mp2-gray-100);
  color: var(--mp2-gray-500);
  margin-left: 2px;
}
.mp2-tab-btn.active .mp2-tab-count {
  background: #2563EB;
  color: #fff;
}
.mp2-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 180px;
  height: 32px;
  padding: 0 10px;
  background: var(--mp2-gray-50);
  border: 1px solid var(--mp2-gray-200);
  border-radius: 8px;
  color: var(--mp2-gray-400);
  font-size: 15px;
}
.mp2-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  font-family: inherit;
}
.mp2-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  height: 32px;
  border: 1px solid var(--mp2-gray-200);
  background: #fff;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mp2-gray-700);
  cursor: pointer;
  font-family: inherit;
}

/* Filter chips */
.mp2-filter-row { display: flex; gap: 6px; margin-bottom: 14px; }
.mp2-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mp2-gray-50);
  border: 1px solid var(--mp2-gray-200);
  color: var(--mp2-gray-700);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.mp2-filter-chip.active {
  background: var(--mp2-orange-500);
  border-color: var(--mp2-orange-500);
  color: #fff;
  font-weight: 600;
}
.mp2-filter-count {
  font-size: 11.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--mp2-gray-200);
  color: var(--mp2-gray-600);
}
.mp2-filter-chip.active .mp2-filter-count {
  background: rgba(255,255,255,.3);
  color: #fff;
}

/* Project list */
.mp2-proj-list { display: flex; flex-direction: column; gap: 14px; }
.mp2-proj-card {
  display: flex;
  gap: 20px;
  border: 1px solid var(--mp2-gray-200);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow .18s, border-color .18s;
  text-decoration: none;
  color: inherit;
}
.mp2-proj-card:hover {
  border-color: #C7D6F0;
  box-shadow: 0 8px 20px rgba(15,28,51,.09);
}
.mp2-proj-thumb {
  position: relative;
  width: 190px;
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 150px;
  overflow: hidden;
  background: var(--mp2-gray-100);
}
.mp2-proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mp2-proj-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.mp2-proj-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 20px 22px 18px; }
.mp2-proj-title { margin: 2px 0 6px; font-size: 16px; font-weight: 700; color: var(--mp2-gray-900); letter-spacing: -0.01em; }
.mp2-proj-desc { margin: 0 0 10px; font-size: 14px; color: var(--mp2-gray-600); line-height: 1.5; }
.mp2-proj-contest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: #F8F3E7;
  color: #B9974A;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.mp2-proj-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.mp2-proj-stats { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mp2-proj-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--mp2-gray-500);
  font-weight: 500;
}
.mp2-proj-tag-row { display: flex; gap: 5px; margin-left: 4px; }
.mp2-proj-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--mp2-gray-100);
  color: var(--mp2-gray-600);
}
.mp2-proj-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 4px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #2563EB;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: gap .15s;
}
.mp2-proj-card:hover .mp2-proj-view-btn { gap: 11px; }
.mp2-tab-pane { display: none; }
.mp2-tab-pane.active { display: block; }

/* Activity Feed */
.mp2-activity-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.mp2-activity-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--mp2-gray-200);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(17,24,39,.03);
  transition: box-shadow .15s;
}
.mp2-activity-card:hover { box-shadow: 0 4px 12px rgba(17,24,39,.07); }
.mp2-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 18px;
}
.mp2-activity-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mp2-activity-meta { display: flex; align-items: center; gap: 8px; }
.mp2-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mp2-activity-time { font-size: 13px; color: var(--mp2-gray-500); font-weight: 500; }
.mp2-activity-title { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--mp2-gray-900); letter-spacing: -0.01em; line-height: 1.4; }
.mp2-activity-project { margin: 0; font-size: 13.5px; color: var(--mp2-gray-500); font-weight: 500; }
.mp2-activity-project-label { color: var(--mp2-gray-400); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .mp2-hero-inner { flex-direction: column; padding: 24px 16px 28px; }
  .mp2-hero-right { width: 100%; }
  .mp2-msg-btn { flex: 1; justify-content: center; }
  .mp2-tab-bar { flex-direction: column; align-items: flex-start; }
  .mp2-tabs-right { width: 100%; }
  .mp2-proj-card { flex-direction: column; }
  .mp2-proj-thumb { width: 100%; height: 180px; }
}


/* ── 바로 액션 (qa2) ────────────────────────────────── */
.qa2-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(17,24,39,.05);
  overflow: hidden;
}
.qa2-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 4px;
}
.qa2-header-icon {
  font-size: 15px;
  color: #F97316;
}
.qa2-header-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}
.qa2-list { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; }
.qa2-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  background: none;
  border: none;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s;
  width: 100%;
}
.qa2-item:hover { background: #F3F4F6; }
.qa2-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}
.qa2-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.qa2-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
}
.qa2-sub {
  font-size: 12px;
  color: #6B7280;
  font-weight: 400;
}
.qa2-arrow {
  font-size: 12px;
  color: #9CA3AF;
  flex-shrink: 0;
}
.qa2-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin: 0 8px 8px;
  font-size: 12px;
  color: #9CA3AF;
  background: #F3F4F6;
  border-radius: 8px;
}

/* ── Summary Cards v2 (sc2) ─────────────────────────── */
.sc2-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px 18px;
  height: 100%;
  box-shadow: 0 1px 3px rgba(17,24,39,.04);
}
.sc2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sc2-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
}
.sc2-icon { font-size: 13px; }
.sc2-badge {
  font-size: 11px;
  font-weight: 700;
  color: #EA580C;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 999px;
  padding: 1px 7px;
  line-height: 1.6;
}
.sc2-value {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.sc2-sub {
  font-size: 13.5px;
  color: #9CA3AF;
  font-weight: 400;
}

/* ==========================================================================
   콘테스트 수상자 결과 — 챔피언 시상대 재설계 (crsp-*)
   썸네일/리뷰 데이터가 없어도 순위·등급·아바타 중심으로 화면을 채운다.
   ========================================================================== */
.crsp-wrap { max-width: 1040px; margin: 0 auto; }

/* --- 시상대(top 3) --- */
.crsp-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2.5rem auto 3.5rem;
}
.crsp-col { display: flex; flex-direction: column; align-items: center; width: 280px; max-width: 31%; }
.crsp-col--1 { order: 2; }
.crsp-col--2 { order: 1; }
.crsp-col--3 { order: 3; }

.crsp-card {
  position: relative;
  width: 100%;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 20px;
  padding: 2.5rem 1.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 12px 34px rgba(17, 24, 39, .07);
}
.crsp-col--1 .crsp-card {
  border-color: #fcd34d;
  box-shadow: 0 22px 54px rgba(245, 158, 11, .22);
  transform: translateY(-10px);
  padding-top: 3rem;
}
.crsp-crown {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  font-size: 2rem; color: #f59e0b; filter: drop-shadow(0 4px 8px rgba(245,158,11,.35));
}

/* 메달(순위 원판) */
.crsp-medal {
  position: relative;
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .9rem;
  font-size: 2.1rem; font-weight: 800; color: #fff; font-family: "Pretendard", sans-serif;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16); border: 4px solid #fff;
}
.crsp-col--1 .crsp-medal { width: 108px; height: 108px; font-size: 2.6rem; }
.crsp-medal--gold   { background: linear-gradient(140deg, #fde047, #f59e0b); }
.crsp-medal--silver { background: linear-gradient(140deg, #f1f5f9, #94a3b8); color: #334155; }
.crsp-medal--bronze { background: linear-gradient(140deg, #e7b784, #b45309); }
.crsp-medal--plain  { background: linear-gradient(140deg, #bfdbfe, #3b82f6); }
.crsp-medal-ico {
  position: absolute; right: -6px; bottom: -6px;
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}
.crsp-medal-ico--gold   { color: #f59e0b; }
.crsp-medal-ico--silver { color: #94a3b8; }
.crsp-medal-ico--bronze { color: #b45309; }
.crsp-medal-ico--plain  { color: #3b82f6; }

.crsp-grade {
  display: inline-block; font-weight: 700; font-size: .8rem;
  padding: .25rem .8rem; border-radius: 999px; margin-bottom: .6rem;
}
.crsp-grade--gold   { background: #fff7ed; color: #c2410c; }
.crsp-grade--silver { background: #f1f5f9; color: #334155; }
.crsp-grade--bronze { background: #fdf3e7; color: #92400e; }
.crsp-grade--plain  { background: #eff6ff; color: #1d4ed8; }

.crsp-project {
  font-weight: 700; font-size: 1.05rem; color: #111827; line-height: 1.35;
  margin: .15rem 0 .8rem; word-break: keep-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.crsp-col--1 .crsp-project { font-size: 1.2rem; }

.crsp-team {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  color: #4b5563; font-size: .9rem; font-weight: 500; margin-bottom: 1.1rem;
}
.crsp-avatar { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e5e7eb; color: #6b7280; font-weight: 700; font-size: .85rem; }
.crsp-avatar img { width: 100%; height: 100%; object-fit: cover; }

.crsp-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600; color: #374151;
  border: 1px solid #e5e7eb; border-radius: 999px; padding: .45rem 1rem;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.crsp-btn:hover { background: #f9fafb; border-color: #d1d5db; color: #111827; }

/* 시상대 받침(순위 숫자) */
.crsp-base {
  width: 100%; margin-top: 1rem; border-radius: 14px 14px 0 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 800; color: rgba(255, 255, 255, .95);
  font-family: "Pretendard", sans-serif; letter-spacing: -.02em;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35);
}
.crsp-col--1 .crsp-base { height: 104px; background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.crsp-col--2 .crsp-base { height: 74px;  background: linear-gradient(180deg, #cbd5e1, #94a3b8); }
.crsp-col--3 .crsp-base { height: 56px;  background: linear-gradient(180deg, #d6a15b, #b45309); }

/* --- 전체 수상 목록(4위~) --- */
.crsp-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }
.crsp-row {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid #eef0f3; border-radius: 14px;
  padding: .9rem 1.2rem; transition: box-shadow .15s, border-color .15s;
}
.crsp-row:hover { box-shadow: 0 6px 18px rgba(17, 24, 39, .06); border-color: #e5e7eb; }
.crsp-rank-no {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6; color: #6b7280; font-weight: 800; font-size: 1rem;
}
.crsp-row-ico { font-size: 1.1rem; color: #f59e0b; flex-shrink: 0; }
.crsp-row-main { flex: 1; min-width: 0; }
.crsp-row-project { font-weight: 600; color: #111827; text-decoration: none;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.crsp-row-project:hover { color: #2563eb; text-decoration: underline; }
.crsp-row-meta { display: flex; align-items: center; gap: .4rem; color: #6b7280; font-size: .85rem; margin-top: .15rem; }
.crsp-row-grade { font-weight: 700; font-size: .75rem; padding: .15rem .6rem; border-radius: 999px; flex-shrink: 0; }
.crsp-row-link { color: #9ca3af; text-decoration: none; flex-shrink: 0; font-size: .95rem; }
.crsp-row-link:hover { color: #2563eb; }

@media (max-width: 720px) {
  .crsp-col { width: 100%; max-width: 360px; }
  .crsp-col--1, .crsp-col--2, .crsp-col--3 { order: initial; }
  .crsp-col--1 .crsp-card { transform: none; }
  .crsp-base { display: none; }
  .crsp-podium { gap: 1rem; margin-bottom: 2.5rem; }
}
