.hc-members-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px;
}

.hc-members-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.hc-members-topstats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hc-members-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 16px;
  border: 1px solid #e6e0d7;
  border-radius: 999px;
  background: #fff;
  color: #7d7b78;
  font-size: 14px;
  font-weight: 600;
}

.hc-members-pill.is-active {
  background: #a6a3a0;
  border-color: #a6a3a0;
  color: #fff;
}

.hc-members-invite-btn,
.hc-members-sidebar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #c9991f;
  border-radius: 8px;
  background: #e6b541;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hc-members-invite-btn:hover,
.hc-members-sidebar-btn:hover {
  background: #d4a434;
  color: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(230, 181, 65, 0.28);
}

.hc-members-invite-btn.is-muted,
.hc-members-sidebar-btn.is-muted {
  border-color: #ddd9d1;
  background: #f3efe8;
  color: #7e7465;
  box-shadow: none;
}

.hc-members-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.hc-members-list-panel,
.hc-members-community-card,
.hc-members-status-card {
  border: 1px solid #e8e0d5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(28, 20, 10, 0.06);
}

.hc-members-list-panel {
  overflow: hidden;
}

.hc-members-list {
  display: flex;
  flex-direction: column;
}

.hc-members-row,
.hc-members-list-panel > .hc-members-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 20px;
}

.hc-members-row + .hc-members-row,
.hc-members-list-panel > .hc-members-row + .hc-members-row {
  border-top: 1px solid #ece6de;
}

.hc-members-main {
  display: flex;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.hc-members-avatar-link {
  flex: 0 0 auto;
  text-decoration: none;
}

.hc-members-avatar-wrap {
  position: relative;
  display: inline-flex;
}

.hc-members-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f2ede7;
}

.hc-members-level-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #3e5ecf;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.hc-members-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.hc-members-headline {
  margin-bottom: 8px;
}

.hc-members-name-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hc-members-name {
  color: #121212;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.hc-members-name:hover {
  color: #121212;
}

.hc-members-role {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5e8bf;
  color: #8a6500;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hc-members-handle {
  margin-top: 4px;
  color: #7d7b78;
  font-size: 13px;
  font-weight: 600;
}

.hc-members-bio {
  margin: 0 0 12px;
  color: #171717;
  font-size: 15px;
  line-height: 1.65;
}

.hc-members-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.hc-members-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #232323;
  font-size: 14px;
  line-height: 1.35;
}

.hc-members-meta-item svg {
  width: 16px;
  height: 16px;
  color: #8f8b84;
  flex: 0 0 auto;
}

.hc-members-online-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #18a957;
  box-shadow: 0 0 0 5px rgba(24, 169, 87, 0.12);
  flex: 0 0 auto;
}

.hc-members-online-dot.is-offline {
  background: #c7c2b9;
  box-shadow: none;
}

.hc-members-actions {
  flex: 0 0 auto;
}

.hc-members-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #e2ddd5;
  border-radius: 6px;
  background: #f2f0ed;
  color: #8a8a88;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hc-members-chat-btn svg {
  width: 16px;
  height: 16px;
}

.hc-members-see-more {
  margin: 0;
  border-top: 1px solid #ece6de;
  border-radius: 0 0 14px 14px;
  text-align: center;
}

.hc-members-empty {
  padding: 44px 20px;
  color: #8a8175;
  font-size: 15px;
  text-align: center;
}

.hc-members-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hc-members-community-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid #efe8dd;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(135deg, #f6e6bb 0%, #ecd18f 100%);
}

.hc-members-community-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-members-community-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(78, 55, 0, 0.7);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hc-members-community-body,
.hc-members-status-card {
  padding: 18px 16px;
}

.hc-members-community-body h3,
.hc-members-status-card h3 {
  margin: 0 0 4px;
  color: #111111;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.hc-members-community-url {
  margin-bottom: 12px;
  color: #857f75;
  font-size: 13px;
  font-weight: 600;
}

.hc-members-community-body p,
.hc-members-status-card > p {
  margin: 0;
  color: #161616;
  font-size: 15px;
  line-height: 1.55;
}

.hc-members-community-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 16px;
  padding: 14px 0;
  border-top: 1px solid #eee7dd;
  border-bottom: 1px solid #eee7dd;
}

.hc-members-community-stats strong {
  display: block;
  color: #121212;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.hc-members-community-stats span {
  display: block;
  margin-top: 5px;
  color: #8a8276;
  font-size: 13px;
  font-weight: 600;
}

.hc-members-community-avatars {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 16px;
}

.hc-members-community-avatars img {
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.hc-members-community-avatars img:first-child {
  margin-left: 0;
}

.hc-members-sidebar-btn {
  width: 100%;
}

.hc-members-status-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.hc-members-status-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.hc-members-status-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f7f1e4;
  color: #98710e;
  font-size: 13px;
  font-weight: 800;
}

.hc-members-status-item strong {
  display: block;
  color: #101010;
  font-size: 15px;
  font-weight: 700;
}

.hc-members-status-item p {
  margin: 2px 0 0;
  color: #575757;
  font-size: 14px;
  line-height: 1.45;
}

.hc-members-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.hc-members-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hc-members-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(17, 14, 10, 0.58);
  backdrop-filter: blur(4px);
}

.hc-members-modal-dialog {
  position: relative;
  z-index: 10;
  width: min(92vw, 520px);
  padding: 28px 24px 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(10, 8, 4, 0.26);
}

.hc-members-modal-dialog h3 {
  margin: 0 0 8px;
  color: #111111;
  font-size: 28px;
  font-weight: 700;
}

.hc-members-modal-dialog p {
  margin: 0;
  color: #544e46;
  font-size: 15px;
  line-height: 1.6;
}

.hc-members-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f5f1ea;
  color: #706756;
  font-size: 24px;
  line-height: 1;
}

.hc-members-invite-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 18px;
}

.hc-members-invite-field input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e2ddd5;
  border-radius: 10px;
  background: #fbf9f6;
  color: #191919;
  font-size: 14px;
}

.hc-members-copy-btn {
  min-width: 96px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #191919;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hc-members-modal-dialog-chat {
  width: min(92vw, 460px);
  text-align: center;
}

.hc-members-chat-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hc-members-chat-lock-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 124px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(242, 200, 87, 0.28), transparent 64%),
    linear-gradient(180deg, #fff7db 0%, #f4ecdb 100%);
}

.hc-members-chat-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: #1a1a1a;
  color: #fff;
}

.hc-members-chat-lock-icon svg {
  width: 38px;
  height: 38px;
}

.hc-members-chat-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f7f3ec;
  color: #7a6c57;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .hc-members-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hc-members-sidebar {
    order: -1;
  }
}

@media (max-width: 720px) {
  .hc-members-shell {
    padding: 16px;
  }

  .hc-members-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .hc-members-topaction {
    width: 100%;
  }

  .hc-members-invite-btn {
    width: 100%;
  }

  .hc-members-row {
    flex-direction: column;
    padding: 18px 16px;
  }

  .hc-members-main {
    width: 100%;
  }

  .hc-members-actions {
    width: 100%;
  }

  .hc-members-chat-btn {
    width: 100%;
    justify-content: center;
  }

  .hc-members-name {
    font-size: 20px;
  }

  .hc-members-community-body h3,
  .hc-members-modal-dialog h3 {
    font-size: 24px;
  }

  .hc-members-community-stats strong {
    font-size: 22px;
  }

  .hc-members-invite-field {
    grid-template-columns: 1fr;
  }

  .hc-members-copy-btn {
    width: 100%;
  }
}


/* ══════════════════════════════════════════════════════
   ADMIN MEMBERS MANAGEMENT — hca-* component styles
   ══════════════════════════════════════════════════════ */

/* Shell */
.hca-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}

/* ── Header ──────────────────────────────────────────── */
.hca-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.hca-header-left {}

.hca-title {
  margin: 0 0 4px;
  color: #111;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hca-subtitle {
  margin: 0;
  color: #7a7066;
  font-size: 14px;
}

.hca-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hca-search-wrap {
  position: relative;
}

.hca-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #a09890;
  pointer-events: none;
}

.hca-search-input {
  width: 220px;
  min-height: 40px;
  padding: 0 14px 0 36px;
  border: 1.5px solid #e0d8cd;
  border-radius: 9px;
  background: #fff;
  color: #171412;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.hca-search-input:focus {
  border-color: #c8a030;
}

.hca-invite-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 9px;
  background: #e6b541;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.hca-invite-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hca-invite-btn:hover {
  background: #d4a434;
  transform: translateY(-1px);
}

/* ── Filters ──────────────────────────────────────────── */
.hca-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.hca-filter-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hca-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hca-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #7a7066;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
}

.hca-filter-label svg {
  color: #7a7066;
}

.hca-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hca-pill {
  min-height: 30px;
  padding: 0 14px;
  border: 1.5px solid #e0d8cd;
  border-radius: 999px;
  background: #fff;
  color: #5e574e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
}

.hca-pill:hover:not(.is-active) {
  background: #f7f3ec;
  border-color: #c8b898;
}

.hca-pill.is-active {
  background: #a0998f;
  border-color: #a0998f;
  color: #fff;
}

/* ── List panel ──────────────────────────────────────── */
.hca-list-panel {
  background: #fff;
  border: 1px solid #e8e0d5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(28, 20, 10, 0.06);
}

.hca-list {
  display: flex;
  flex-direction: column;
}

/* ── Member row ──────────────────────────────────────── */
.hca-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  transition: background 0.12s;
}

.hca-row + .hca-row {
  border-top: 1px solid #f0ebe3;
}

.hca-row:hover {
  background: #faf8f5;
}

.hca-row[hidden] {
  display: none !important;
}

/* Avatar column */
.hca-col-avatar {
  flex: 0 0 auto;
}

.hca-avatar-link {
  text-decoration: none;
}

.hca-avatar-wrap {
  position: relative;
  display: inline-flex;
}

.hca-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0ebe3;
}

.hca-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #18a957;
  border: 2px solid #fff;
  box-shadow: 0 0 0 0 rgba(24, 169, 87, 0.3);
}

.hca-online-dot:not(.is-offline) {
  animation: hca-pulse 2s ease infinite;
}

@keyframes hca-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24, 169, 87, 0.3); }
  50%       { box-shadow: 0 0 0 4px rgba(24, 169, 87, 0); }
}

.hca-online-dot.is-offline {
  background: #c7c2b9;
  animation: none;
  box-shadow: none;
}

/* Identity column */
.hca-col-identity {
  flex: 1 1 180px;
  min-width: 0;
}

.hca-member-name {
  display: block;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.12s;
}

.hca-member-name:hover {
  color: #c8902a;
}

.hca-member-handle {
  margin-top: 1px;
  color: #7a7066;
  font-size: 13px;
  font-weight: 500;
}

.hca-member-bio {
  margin-top: 2px;
  color: #5e574e;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges column */
.hca-col-badges {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 220px;
}

.hca-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

/* Role badges */
.hca-badge--owner    { background: #fff3d4; color: #8a5a00; border-color: #f4d580; }
.hca-badge--admin    { background: #e6e9ff; color: #3a4fd1; border-color: transparent; }
.hca-badge--moderator{ background: #1e1a14; color: #fff; border-color: transparent; }
.hca-badge--tutor    { background: #ede9ff; color: #6040d4; border-color: transparent; }
.hca-badge--secretary{ background: #d4f0e8; color: #0a6b4a; border-color: transparent; }
.hca-badge--support  { background: #ffe8e8; color: #c01a1a; border-color: transparent; }
.hca-badge--member   { background: #f0ede8; color: #5e574e; border-color: transparent; }

/* Status badges */
.hca-badge--active     { background: #d4f0e0; color: #0a6b35; border-color: transparent; }
.hca-badge--cancelling { background: #fff3d4; color: #8a5a00; border-color: transparent; }
.hca-badge--churned    { background: #f0e8e0; color: #7a5540; border-color: transparent; }
.hca-badge--banned     { background: #ffe8e8; color: #c01a1a; border-color: transparent; }

/* Tier badges — outlined only */
.hca-badge--tier {
  background: transparent;
  border-color: #d0c8bc;
  color: #7a7066;
}

/* Activity column */
.hca-col-activity {
  flex: 0 0 190px;
  color: #7a7066;
  font-size: 13px;
  line-height: 1.7;
}

.hca-activity-row {
  white-space: nowrap;
}

.hca-activity-row span,
.hca-reltime {
  color: #3d3730;
  font-weight: 600;
}

/* Actions column */
.hca-col-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hca-btn-message {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border: 1.5px solid #d8d0c4;
  border-radius: 8px;
  background: #fff;
  color: #3d3730;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}

.hca-btn-message svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.hca-btn-message:hover {
  background: #f8f4ee;
  border-color: #c0b8aa;
}

.hca-btn-manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border: none;
  border-radius: 8px;
  background: #e6b541;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, transform 0.12s;
}

.hca-btn-manage svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.hca-btn-manage:hover {
  background: #d4a434;
  transform: translateY(-1px);
}

.hca-btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid #d8d0c4;
  border-radius: 8px;
  background: #fff;
  color: #6b6560;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  flex-shrink: 0;
}

.hca-btn-more svg {
  width: 18px;
  height: 18px;
}

.hca-btn-more:hover {
  background: #f8f4ee;
  border-color: #c0b8aa;
}

/* Three-dot dropdown */
.hca-menu-wrap {
  position: relative;
}

.hca-dropdown {
  position: fixed;
  min-width: 172px;
  background: #fff;
  border: 1px solid #e0d8cd;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(10, 8, 4, 0.14);
  z-index: 1100;
  overflow: hidden;
  display: none;
}

.hca-dropdown.is-open {
  display: block;
  animation: hcaFadeIn 0.12s ease;
}

@keyframes hcaFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hca-dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  color: #3d3730;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s;
}

.hca-dropdown-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #7a7066;
}

.hca-dropdown-item:hover {
  background: #f8f4ee;
}

.hca-dropdown-item + .hca-dropdown-item {
  border-top: 1px solid #f0ebe3;
}

.hca-dropdown-item--warn {
  color: #9a5a00;
}

.hca-dropdown-item--warn svg {
  color: #9a5a00;
}

.hca-dropdown-item--warn:hover {
  background: #fff8e8;
}

.hca-dropdown-item--danger {
  color: #c01a1a;
}

.hca-dropdown-item--danger svg {
  color: #c01a1a;
}

.hca-dropdown-item--danger:hover {
  background: #fff0f0;
}

/* Footer */
.hca-footer {
  padding: 14px 22px;
  border-top: 1px solid #f0ebe3;
  color: #7a7066;
  font-size: 13px;
  font-weight: 600;
}

/* Empty & No-results states */
.hca-no-results {
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #8a8175;
  font-size: 15px;
  text-align: center;
}

.hca-no-results svg {
  width: 38px;
  height: 38px;
  color: #c0b8ad;
}

.hca-no-results p {
  margin: 0;
}

.hca-empty {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.hca-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7e8c0 0%, #f0d78a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a7020;
}

.hca-empty-icon svg {
  width: 32px;
  height: 32px;
}

.hca-empty h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #171412;
}

.hca-empty p {
  margin: 0;
  color: #7a7066;
  font-size: 15px;
}

/* ── Modals ──────────────────────────────────────────── */
.hca-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px 40px;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
}

.hca-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.hca-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 9, 0.56);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hca-modal.is-open .hca-modal-backdrop {
  opacity: 1;
}

.hca-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 500px);
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow: 0 32px 80px rgba(10, 8, 4, 0.26);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.hca-modal.is-open .hca-modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hca-modal-dialog--sm {
  width: min(92vw, 420px);
}

.hca-modal-dialog--manage {
  width: min(92vw, 520px);
}

.hca-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #f5f1ea;
  color: #7a7066;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.hca-modal-close svg {
  width: 16px;
  height: 16px;
}

.hca-modal-close:hover {
  background: #ede8df;
  color: #171412;
}

.hca-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7e8c0 0%, #f0d78a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #7a5800;
}

.hca-modal-icon svg {
  width: 26px;
  height: 26px;
}

.hca-modal-dialog h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.hca-modal-dialog p {
  margin: 0 0 20px;
  color: #5e574e;
  font-size: 14px;
  line-height: 1.6;
}

.hca-invite-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.hca-invite-input {
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid #e0d8cd;
  border-radius: 10px;
  background: #faf8f5;
  color: #171412;
  font-size: 14px;
  outline: none;
}

.hca-copy-btn {
  min-width: 86px;
  min-height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s;
}

.hca-copy-btn:hover {
  background: #333;
}

/* ── Membership Modal (new manage design) ──────────────── */
.hca-mem-dialog {
  width: min(92vw, 520px);
  padding: 32px 32px 28px;
}

.hca-mem-header {
  margin-bottom: 20px;
}

.hca-mem-title {
  margin: 0 0 5px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
}

.hca-mem-sub {
  margin: 0;
  font-size: 14px;
  color: #7a7066;
  font-weight: 500;
}

.hca-mem-divider {
  border: none;
  border-top: 1px solid #ede8df;
  margin: 0 0 22px;
}

.hca-mem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.hca-mem-box {
  background: #f8f4ee;
  border-radius: 14px;
  padding: 14px 16px;
}

.hca-mem-box-label {
  font-size: 10px;
  font-weight: 700;
  color: #9a9088;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hca-mem-box-val {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}

.hca-mem-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.hca-mem-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s;
}

.hca-mem-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hca-mem-btn--cancel {
  background: #fff;
  border: 1.5px solid #d8d0c4;
  color: #3d3730;
}

.hca-mem-btn--cancel:hover {
  background: #f8f4ee;
}

.hca-mem-btn--remove,
.hca-mem-btn--ban {
  background: #fff;
  border: 1.5px solid #dc2626;
  color: #dc2626;
}

.hca-mem-btn--remove:hover,
.hca-mem-btn--ban:hover {
  background: #fff5f5;
}

.hca-mem-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid #f0ebe3;
}

.hca-mem-close-btn {
  background: none;
  border: none;
  color: #7a7066;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.12s;
}

.hca-mem-close-btn:hover {
  color: #111;
}

/* Manage modal specifics */
.hca-manage-member-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0ebe3;
}

.hca-manage-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.hca-manage-name {
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.hca-manage-handle {
  font-size: 13px;
  color: #7a7066;
  margin-top: 2px;
}

.hca-manage-section {
  margin-bottom: 20px;
}

.hca-manage-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #a09080;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hca-manage-role-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hca-role-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.hca-role-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hca-role-option-label {
  min-height: 32px;
  padding: 0 14px;
  border: 1.5px solid #e0d8cd;
  border-radius: 999px;
  background: #fff;
  color: #5e574e;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.hca-role-radio:checked + .hca-role-option-label {
  background: #1e1a14;
  border-color: #1e1a14;
  color: #fff;
}

.hca-manage-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hca-status-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.hca-status-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hca-status-option-label {
  min-height: 30px;
  padding: 0 12px;
  border: 1.5px solid #e0d8cd;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.12s;
}

.hca-status-option-label--active    { color: #0a6b35; background: #d4f0e0; border-color: #a8d8ba; }
.hca-status-option-label--cancelling{ color: #8a5a00; background: #fff3d4; border-color: #f0d080; }
.hca-status-option-label--churned   { color: #7a5540; background: #f0e8e0; border-color: #d8c0a8; }
.hca-status-option-label--banned    { color: #c01a1a; background: #ffe8e8; border-color: #f0a8a8; }

.hca-status-radio:checked + .hca-status-option-label {
  outline: 3px solid #1e1a14;
  outline-offset: 2px;
}

.hca-manage-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}

.hca-manage-save-btn {
  min-height: 42px;
  padding: 0 22px;
  border: none;
  border-radius: 10px;
  background: #e6b541;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s;
}

.hca-manage-save-btn:hover {
  background: #d4a434;
}

.hca-manage-cancel-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1.5px solid #d8d0c4;
  border-radius: 10px;
  background: #fff;
  color: #5e574e;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}

.hca-manage-cancel-btn:hover {
  background: #f8f4ee;
}

.hca-manage-danger-zone {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #f0ebe3;
}

.hca-manage-danger-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hca-danger-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
  border: 1.5px solid;
}

.hca-danger-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hca-danger-btn--ban {
  background: #fff8e8;
  color: #9a5a00;
  border-color: #f0d080;
}

.hca-danger-btn--ban:hover {
  background: #fff0c8;
}

.hca-danger-btn--remove {
  background: #fff0f0;
  color: #c01a1a;
  border-color: #f0a8a8;
}

.hca-danger-btn--remove:hover {
  background: #ffe0e0;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1020px) {
  .hca-col-activity {
    display: none;
  }
}

@media (max-width: 820px) {
  .hca-col-badges {
    max-width: 160px;
  }

  .hca-btn-message {
    display: none;
  }
}

@media (max-width: 680px) {
  .hca-shell {
    padding: 16px;
  }

  .hca-header {
    flex-direction: column;
  }

  .hca-header-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hca-search-wrap {
    width: 100%;
  }

  .hca-search-input {
    width: 100%;
  }

  .hca-invite-btn {
    width: 100%;
    justify-content: center;
  }

  .hca-filter-row {
    gap: 10px;
  }

  .hca-row {
    flex-wrap: wrap;
    padding: 14px 16px;
    align-items: flex-start;
  }

  .hca-col-identity {
    flex: 1 1 calc(100% - 72px);
  }

  .hca-col-badges {
    flex: 0 0 100%;
    padding-left: 64px;
    max-width: 100%;
  }

  .hca-col-actions {
    flex: 0 0 100%;
    padding-left: 64px;
  }

  .hca-btn-message {
    display: inline-flex;
  }

  .hca-invite-field {
    grid-template-columns: 1fr;
  }

  .hca-copy-btn {
    width: 100%;
  }

  .hca-manage-danger-actions {
    flex-direction: column;
  }

  .hca-danger-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ══════════════════════════════════════════════════════
   NON-ADMIN MEMBER VIEW — cf-* component styles
   ══════════════════════════════════════════════════════ */

.cf-members-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.cf-members-header {
  margin-bottom: 24px;
}

.cf-members-header h2 {
  margin: 0 0 4px;
  color: #111;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cf-members-subtitle {
  margin: 0;
  color: #7a7066;
  font-size: 14px;
}

/* ── Card grid ──────────────────────────────────────── */
.cf-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.cf-member-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e0d5;
  border-radius: 14px;
  padding: 20px 18px 16px;
  box-shadow: 0 4px 18px rgba(28, 20, 10, 0.05);
  transition: box-shadow 0.15s, transform 0.15s;
}

.cf-member-card:hover {
  box-shadow: 0 8px 28px rgba(28, 20, 10, 0.10);
  transform: translateY(-2px);
}

/* ── Avatar ──────────────────────────────────────────── */
.cf-member-avatar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}

.cf-member-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #f0ebe3;
}

.cf-member-online-indicator {
  position: absolute;
  bottom: 2px;
  right: calc(50% - 42px);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #18a957;
  border: 2px solid #fff;
  box-shadow: 0 0 0 0 rgba(24, 169, 87, 0.3);
  animation: cf-pulse 2s ease infinite;
}

@keyframes cf-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24, 169, 87, 0.3); }
  50%       { box-shadow: 0 0 0 4px rgba(24, 169, 87, 0); }
}

.cf-member-last-seen {
  display: inline-block;
  margin-top: 6px;
  color: #9a9088;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

/* ── Info ────────────────────────────────────────────── */
.cf-member-info {
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
}

.cf-member-name {
  margin: 0 0 2px;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-member-username {
  margin: 0 0 10px;
  color: #7a7066;
  font-size: 13px;
  font-weight: 500;
}

.cf-member-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.cf-member-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f0ede8;
  color: #5e574e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cf-member-role svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.cf-member-role--admin {
  background: #fff3d4;
  color: #8a5a00;
}

.cf-member-level {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e6e9ff;
  color: #3a4fd1;
  font-size: 12px;
  font-weight: 600;
}

/* ── Actions ──────────────────────────────────────────── */
.cf-member-actions {
  margin-top: auto;
}

.cf-member-message-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
  border: 1.5px solid #d8d0c4;
  border-radius: 9px;
  background: #fff;
  color: #3d3730;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.12s, border-color 0.12s, transform 0.12s;
}

.cf-member-message-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.cf-member-message-btn:hover {
  background: #f8f4ee;
  border-color: #c0b8aa;
  transform: translateY(-1px);
}

/* ── Empty state ──────────────────────────────────────── */
.cf-members-empty {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.cf-members-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7e8c0 0%, #f0d78a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
}

.cf-members-empty h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #171412;
}

.cf-members-empty p {
  margin: 0;
  color: #7a7066;
  font-size: 15px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 720px) {
  .cf-members-shell {
    padding: 16px;
  }

  .cf-members-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .cf-member-card {
    padding: 16px 14px 14px;
  }

  .cf-member-avatar img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .cf-members-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ══════════════════════════════════════════════════
   CHAT MODAL  (hcm-*)
══════════════════════════════════════════════════ */
.hcm-modal { align-items: center; padding: 20px 16px; }

.hcm-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 460px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(10,8,4,.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(90vh, 600px);
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}
.hca-modal.is-open .hcm-dialog { opacity: 1; transform: none; }

/* Header */
.hcm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f0ebe3;
  flex-shrink: 0;
}
.hcm-header-info { display: flex; align-items: center; gap: 11px; }
.hcm-avatar-wrap { position: relative; flex-shrink: 0; }
.hcm-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg,#f7e8c0,#e6b541);
}
.hcm-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #16a34a;
  border: 2px solid #fff;
}
.hcm-online-dot.is-offline { background: #9ca3af; }
.hcm-header-text { display: flex; flex-direction: column; gap: 1px; }
.hcm-name { font-size: 15px; font-weight: 700; color: #111; line-height: 1.2; }
.hcm-status { font-size: 12px; color: #7a7066; }
.hcm-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f5f1ea;
  color: #7a7066;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s, color .12s;
}
.hcm-close-btn svg { width: 15px; height: 15px; }
.hcm-close-btn:hover { background: #ede8df; color: #171412; }

/* Body */
.hcm-body {
  flex: 1;
  min-height: 200px;
  overflow-y: auto;
  padding: 14px 16px;
  background: #faf8f5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}
.hcm-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 80px;
}
.hcm-loading-dots { display: flex; gap: 5px; }
.hcm-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8d0c4;
  animation: hcmPulse 1.2s ease-in-out infinite;
}
.hcm-loading-dots span:nth-child(2) { animation-delay: .2s; }
.hcm-loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes hcmPulse {
  0%, 80%, 100% { opacity: .4; transform: scale(.8); }
  40% { opacity: 1; transform: scale(1); }
}
.hcm-messages { display: flex; flex-direction: column; gap: 8px; }
.hcm-empty-chat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #b0a090;
  font-size: 13px;
  text-align: center;
  padding: 24px 16px;
  flex: 1;
  min-height: 100px;
}

/* Bubbles */
.hcm-msg { display: flex; align-items: flex-end; gap: 7px; }
.hcm-msg--out { flex-direction: row-reverse; }
.hcm-msg-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hcm-msg-content { max-width: 68%; display: flex; flex-direction: column; }
.hcm-msg-bubble {
  padding: 8px 13px;
  border-radius: 17px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.hcm-msg--in .hcm-msg-bubble {
  background: #fff;
  color: #111;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.hcm-msg--out .hcm-msg-bubble {
  background: #e6b541;
  color: #1a1200;
  border-bottom-right-radius: 4px;
}
.hcm-msg-time { font-size: 11px; color: #b0a090; margin-top: 3px; padding: 0 3px; }
.hcm-msg--out .hcm-msg-time { text-align: right; }

/* Footer */
.hcm-footer {
  padding: 10px 12px;
  border-top: 1px solid #f0ebe3;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.hcm-toolbar { display: flex; gap: 1px; flex-shrink: 0; }
.hcm-tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 7px;
  background: none;
  color: #9a9088;
  cursor: pointer;
  transition: background .1s, color .1s;
}
.hcm-tool-btn svg { width: 16px; height: 16px; }
.hcm-tool-btn:hover { background: #f5f1ea; color: #3d3730; }
.hcm-input-wrap { flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0; }
.hcm-input {
  flex: 1;
  height: 36px;
  padding: 0 13px;
  background: #f5f1ea;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  color: #111;
  outline: none;
  min-width: 0;
  transition: background .12s;
}
.hcm-input::placeholder { color: #b0a090; }
.hcm-input:focus { background: #ede8df; }
.hcm-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #e6b541;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s, transform .1s;
}
.hcm-send-btn svg { width: 15px; height: 15px; }
.hcm-send-btn:hover { background: #d4a434; transform: scale(1.06); }
.hcm-send-btn:disabled { background: #e0d8cc; cursor: not-allowed; transform: none; }

/* Friend-gate modal extras */
.hcm-fg-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg,#fde8c0,#f0c87a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #7a5800;
}
.hcm-fg-icon svg { width: 26px; height: 26px; }
.hcm-fg-btns { display: flex; gap: 10px; margin-top: 4px; }
.hcm-add-friend-btn {
  flex: 1;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #e6b541;
  color: #1a1200;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s;
}
.hcm-add-friend-btn:hover { background: #d4a434; }
.hcm-add-friend-btn:disabled { background: #9a9088; color: #fff; cursor: not-allowed; }
.hcm-cancel-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid #d8d0c4;
  border-radius: 10px;
  background: #fff;
  color: #3d3730;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s;
}
.hcm-cancel-btn:hover { background: #f8f4ee; }
