/* ===== COMMUNITY PAGE ===== */
.community-page {
  min-height: 100vh;
  background: var(--gradient-page);
  display: flex;
  flex-direction: column;
}

.community-wrapper {
  flex: 1;
  padding: calc(var(--nav-height) + 20px) 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ===== COMMUNITY SUB-NAV ===== */
.community-subnav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(30,58,138,0.12);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  flex-wrap: wrap;
}

.community-subnav__tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.subnav-tab {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.subnav-tab:hover {
  background: rgba(30,58,138,0.08);
  color: var(--text-dark);
}

.subnav-tab.active {
  background: var(--green-primary);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(30,58,138,0.3);
}

.community-subnav__search {
  position: relative;
  flex: 1;
  max-width: 340px;
  min-width: 180px;
}

.community-subnav__search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: #8A93A4;
  pointer-events: none;
}

.community-subnav__search input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid #E6EAF1;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.community-subnav__search input::placeholder { color: #8A93A4; }
.community-subnav__search input:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.12);
}

/* ===== MAIN LAYOUT ===== */
.community-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.community-main { min-width: 0; }

/* ===== ARTICLES SECTION ===== */
.section-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title__count {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(30,58,138,0.1);
  color: var(--green-dark);
  border-radius: 20px;
}

.articles-scroll-wrap {
  position: relative;
  margin-bottom: 36px;
}

.articles-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(30,58,138,0.3) transparent;
}

.articles-scroll::-webkit-scrollbar { height: 4px; }
.articles-scroll::-webkit-scrollbar-track { background: transparent; }
.articles-scroll::-webkit-scrollbar-thumb { background: rgba(30,58,138,0.3); border-radius: 2px; }

.article-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(30,58,138,0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-color: rgba(30,58,138,0.25);
}

.article-card__img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #F0FAEC, #EEF1FA);
}

.article-card__img-placeholder {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}

.article-card__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-body);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.article-card__arrow {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.article-card:hover .article-card__arrow {
  background: var(--green-dark);
  transform: translateX(2px);
}

.article-card__arrow svg {
  width: 14px;
  height: 14px;
  fill: var(--white);
}

/* ===== DISCUSSIONS SECTION ===== */
.discussions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.discussions-filters {
  display: flex;
  gap: 8px;
}

.disc-filter {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--white);
  border: 1.5px solid #E6EAF1;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.25s ease;
}

.disc-filter:hover { border-color: var(--green-primary); color: var(--green-dark); }
.disc-filter.active { background: var(--green-primary); color: var(--white); border-color: var(--green-primary); }

/* Discussion thread cards */
.discussion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.disc-card {
  background: var(--white);
  border-radius: 14px;
  padding: 20px 22px;
  border: 1.5px solid rgba(30,58,138,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: fadeInUp 0.5s ease-out both;
}

.disc-card:nth-child(1) { animation-delay: 0.05s; }
.disc-card:nth-child(2) { animation-delay: 0.1s; }
.disc-card:nth-child(3) { animation-delay: 0.15s; }

.disc-card:hover {
  border-color: rgba(30,58,138,0.22);
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.disc-card.pinned {
  border-left: 4px solid var(--green-primary);
}

.disc-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.disc-card__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.4;
  flex: 1;
}

.disc-card__time {
  font-size: 11px;
  color: #8A93A4;
  white-space: nowrap;
  font-weight: 500;
}

.disc-card__excerpt {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  /* -webkit-line-clamp: 2; */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.disc-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.disc-card__author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-body);
  font-weight: 500;
}

.disc-card__author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), #15306E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.disc-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

.disc-tag {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(30,58,138,0.08);
  color: var(--green-dark);
  border: 1px solid rgba(30,58,138,0.15);
}

/* Vote + Reply bar */
.disc-card__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(30,58,138,0.06);
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1.5px solid #E6EAF1;
  border-radius: 8px;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.25s ease;
}

.vote-btn svg { width: 14px; height: 14px; fill: currentColor; }
.vote-btn:hover { border-color: var(--green-primary); color: var(--green-primary); }
.vote-btn.active { background: rgba(30,58,138,0.08); color: var(--green-primary); border-color: var(--green-primary); }
.vote-btn.downvote:hover { border-color: #e53935; color: #e53935; }
.vote-btn.downvote.active { background: rgba(229,57,53,0.06); color: #e53935; border-color: #e53935; }

.reply-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: color 0.25s ease;
  padding: 5px 4px;
}

.reply-btn svg { width: 14px; height: 14px; fill: currentColor; }
.reply-btn:hover { color: var(--green-primary); }

.disc-card__replies-count {
  font-size: 11px;
  color: #8A93A4;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.disc-card__replies-count svg { width: 13px; height: 13px; fill: currentColor; }

/* Flag button */
.flag-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #c8d4c8;
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
}

.flag-btn:hover { color: #ffa726; }
.flag-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* Anonymous badge */
.anon-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(160,176,160,0.12);
  color: #8A93A4;
  border-radius: 10px;
  border: 1px solid rgba(160,176,160,0.2);
  letter-spacing: 0.5px;
}

/* ===== SHARE / POST BOX ===== */
.share-box {
  background: var(--white);
  border-radius: 14px;
  padding: 22px 22px 18px;
  border: 1.5px solid rgba(30,58,138,0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-bottom: 8px;
}

.share-box__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-box__title svg { width: 18px; height: 18px; fill: var(--green-primary); }

.share-box__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.share-box__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), #15306E);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.share-box__avatar svg { width: 18px; height: 18px; fill: var(--white); }

.share-box__body { flex: 1; }

.share-box__title-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #E6EAF1;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dark);
  background: #FFFFFF;
  outline: none;
  margin-bottom: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.share-box__title-input:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
  background: var(--white);
}

.share-box__textarea {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #E6EAF1;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dark);
  background: #FFFFFF;
  resize: none;
  min-height: 90px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  line-height: 1.6;
}

.share-box__textarea:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
  background: var(--white);
}

.share-box__textarea::placeholder { color: #8A93A4; }

.share-box__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.share-box__tools {
  display: flex;
  gap: 4px;
  align-items: center;
}

.tool-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: none;
  border: 1.5px solid #E6EAF1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
}

.tool-btn svg { width: 14px; height: 14px; fill: currentColor; }
.tool-btn:hover { border-color: var(--green-primary); color: var(--green-primary); background: rgba(30,58,138,0.05); }

.share-box__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.anon-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  user-select: none;
}

.anon-toggle input { accent-color: var(--green-primary); cursor: pointer; }

.btn-post {
  padding: 9px 28px;
  background: var(--green-primary);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(30,58,138,0.3);
}

.btn-post:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(30,58,138,0.4);
}

/* ===== SIDEBAR ===== */
.community-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.sidebar-card {
  background: var(--white);
  border-radius: 14px;
  padding: 20px;
  border: 1.5px solid rgba(30,58,138,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  animation: fadeInUp 0.6s ease-out both;
}

.sidebar-card:nth-child(1) { animation-delay: 0.1s; }
.sidebar-card:nth-child(2) { animation-delay: 0.2s; }
.sidebar-card:nth-child(3) { animation-delay: 0.3s; }

.sidebar-card__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(30,58,138,0.08);
}

.sidebar-card__title svg { width: 16px; height: 16px; fill: var(--green-primary); }

/* Forum sidebar */
.forum-thread-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f5f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.forum-thread-item:last-child { border-bottom: none; }
.forum-thread-item:hover { padding-left: 6px; }

.forum-thread-item__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 3px;
  line-height: 1.4;
}

.forum-thread-item:hover .forum-thread-item__title { color: var(--green-primary); }

.forum-thread-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #8A93A4;
}

.forum-thread-item__replies {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #8A93A4;
}

.forum-thread-item__replies svg { width: 11px; height: 11px; fill: currentColor; }

/* FAQ sidebar */
.faq-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f5f0;
  cursor: pointer;
}

.faq-item:last-child { border-bottom: none; }

.faq-item__q {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.faq-item__q::before {
  content: 'Q';
  font-size: 10px;
  font-weight: 800;
  color: var(--green-primary);
  background: rgba(30,58,138,0.1);
  border-radius: 4px;
  padding: 1px 5px;
  flex-shrink: 0;
  margin-top: 1px;
}

.faq-item__a {
  font-size: 11px;
  color: var(--text-body);
  line-height: 1.5;
  padding-left: 22px;
  display: none;
}

.faq-item.open .faq-item__a { display: block; }

/* Stats card */
.community-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-row__label {
  font-size: 12px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-row__label svg { width: 14px; height: 14px; fill: var(--green-primary); }

.stat-row__val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

/* View all link */
.sidebar-view-all {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-primary);
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
  border: 1.5px solid rgba(30,58,138,0.2);
  transition: all 0.25s ease;
}

.sidebar-view-all:hover {
  background: rgba(30,58,138,0.06);
  border-color: var(--green-primary);
}

/* ===== ARTICLE DETAIL OVERLAY ===== */
.article-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(5px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.article-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.article-modal {
  background: var(--white);
  border-radius: 20px;
  padding: 36px;
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  transform: scale(0.93) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  position: relative;
}

.article-modal-overlay.active .article-modal {
  transform: scale(1) translateY(0);
}

.article-modal__close {
  position: absolute;
  top: 16px; right: 18px;
  width: 34px; height: 34px;
  background: #f0f5f0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.article-modal__close:hover { background: #e0ece0; }
.article-modal__close svg { width: 16px; height: 16px; fill: var(--text-dark); }

.article-modal__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 8px;
}

.article-modal__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.25;
}

.article-modal__meta {
  font-size: 12px;
  color: #8A93A4;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.article-modal__body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-body);
}

.article-modal__body p { margin-bottom: 14px; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-body);
}

.empty-state svg { width: 56px; height: 56px; fill: #E6EAF1; margin-bottom: 14px; }
.empty-state__title { font-weight: 700; font-size: 16px; color: var(--text-dark); margin-bottom: 6px; }
.empty-state__text { font-size: 13px; }

/* ===== MODERATION FLAG TOAST ===== */
.flag-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #1B2230;
  color: var(--white);
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}

.flag-toast.show { transform: translateY(0); opacity: 1; }
.flag-toast svg { width: 18px; height: 18px; fill: var(--green-primary); }

/* ===== NOTIFICATION BELL (number inside) ===== */
.navbar__notif {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.navbar__notif:hover { transform: scale(1.1); }

.navbar__notif > svg {
  width: 26px;
  height: 26px;
  fill: var(--text-dark);
  position: relative;
  z-index: 1;
}

.navbar__notif-badge {
  display: none;
}
.navbar__notif .navbar__notif-badge.show {
  display: flex !important;
  position: absolute;
  top: 0;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  align-items: center;
  justify-content: center;
  background: #E11D48;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  border-radius: 9px;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
  z-index: 2;
  text-shadow: none;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .community-layout {
    grid-template-columns: 1fr;
  }
  .community-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .community-subnav {
    flex-direction: column;
    align-items: stretch;
  }
  .community-subnav__search {
    max-width: 100%;
  }
  .subnav-tab {
    padding: 6px 12px;
    font-size: 12px;
  }
  .article-card { flex: 0 0 160px; }
  .share-box__footer { flex-direction: column; align-items: flex-start; }
  .community-sidebar {
    grid-template-columns: 1fr;
  }
  .reply-item--nested { margin-left: 16px; }
}

/* ===== REPLY SECTION (Threaded Conversations) ===== */
.reply-section {
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(30,58,138,0.08);
  animation: replySlideIn 0.35s ease-out;
}

@keyframes replySlideIn {
  from { opacity: 0; max-height: 0; transform: translateY(-8px); }
  to   { opacity: 1; max-height: 2000px; transform: translateY(0); }
}

.reply-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.reply-section__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.reply-section__title svg {
  width: 14px;
  height: 14px;
  fill: var(--green-primary);
}

.reply-section__count {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(30,58,138,0.1);
  color: var(--green-dark);
  border-radius: 12px;
}

.reply-section__collapse-btn {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-body);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.reply-section__collapse-btn:hover {
  background: rgba(30,58,138,0.08);
  color: var(--green-primary);
}

/* Individual reply */
.reply-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: #FFFFFF;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(30,58,138,0.06);
  transition: all 0.25s ease;
  animation: fadeInUp 0.3s ease-out both;
}

.reply-item:hover {
  background: #f0f7f0;
  border-color: rgba(30,58,138,0.15);
}

/* Nested replies — indented */
.reply-item--nested {
  margin-left: 32px;
  background: #fafcfa;
  border-left: 2px solid rgba(30,58,138,0.2);
}

.reply-item--nested .reply-item__avatar {
  width: 24px;
  height: 24px;
  font-size: 9px;
}

.reply-item__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), #15306E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  margin-top: 2px;
}

.reply-item__body {
  flex: 1;
  min-width: 0;
}

.reply-item__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.reply-item__author {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

.reply-item__time {
  font-size: 10px;
  color: #8A93A4;
  font-weight: 500;
}

.reply-item__content {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  word-break: break-word;
}

.reply-item__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.reply-item__reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #8A93A4;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.reply-item__reply-btn:hover {
  color: var(--green-primary);
  background: rgba(30,58,138,0.08);
}

.reply-item__reply-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.reply-item__delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #ccc;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.reply-item__delete-btn:hover {
  color: #e53e3e;
  background: rgba(229,62,62,0.06);
}

.reply-item__delete-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.reply-item__report-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #8A93A4;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.reply-item__report-btn:hover {
  color: #e53e3e;
  background: rgba(229,62,62,0.06);
}

.reply-item__report-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Reply composer */
.reply-composer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 14px;
  background: rgba(30,58,138,0.03);
  border-radius: 10px;
  border: 1.5px dashed rgba(30,58,138,0.18);
  animation: fadeInUp 0.3s ease-out;
}

.reply-composer--nested {
  margin-left: 32px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.reply-composer__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), #15306E);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reply-composer__avatar svg {
  width: 14px;
  height: 14px;
  fill: var(--white);
}

.reply-composer__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reply-composer__replying-to {
  font-size: 11px;
  color: var(--green-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.reply-composer__input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #E6EAF1;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  line-height: 1.5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.reply-composer__input:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
}

.reply-composer__input::placeholder {
  color: #8A93A4;
}

.reply-composer__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.reply-composer__cancel {
  padding: 6px 14px;
  background: none;
  border: 1.5px solid #E6EAF1;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.reply-composer__cancel:hover {
  border-color: #c8d4c8;
  background: #f5f8f5;
}

.reply-composer__submit {
  padding: 6px 18px;
  background: var(--green-primary);
  color: var(--white);
  border: none;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(30,58,138,0.25);
}

.reply-composer__submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,58,138,0.35);
}

.reply-composer__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Toggle replies button on disc card */
.disc-card__toggle-replies {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--green-primary);
  cursor: pointer;
  padding: 5px 4px;
  transition: all 0.2s ease;
  margin-left: auto;
}

.disc-card__toggle-replies:hover {
  color: var(--green-dark);
}

.disc-card__toggle-replies svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

/* .disc-card__toggle-replies.expanded svg {
  transform: rotate(180deg);
} */

