/* =====================================================================
   COMMUNITY MODULE — "Medical Facebook" patient support platform
   Warm, inviting feed design with privacy-first handles
   ===================================================================== */

/* Home card variant */
.mode-card.community-cta {
  border-color: rgba(236, 72, 153, 0.40);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(251, 191, 36, 0.05) 100%);
}
.mode-card.community-cta:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.14) 0%, rgba(251, 191, 36, 0.09) 100%);
  border-color: rgba(236, 72, 153, 0.60);
}
.mode-card.community-cta .mode-icon {
  background: radial-gradient(circle at 30% 30%, rgba(236, 72, 153, 0.30), rgba(251, 191, 36, 0.18));
  box-shadow: 0 0 24px rgba(236, 72, 153, 0.28);
}

/* ── FEED SCREEN ── */
.com-greet-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  margin: 14px 14px 4px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, transparent 100%);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: 14px;
}
.com-greet-avatar {
  width: 48px; height: 48px;
  background: rgba(236, 72, 153, 0.15);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
}
.com-greet-body { flex: 1; min-width: 0; }
.com-greet-name { font-weight: 700; font-size: 0.96rem; color: var(--text); }
.com-greet-cond { font-size: 0.76rem; color: var(--text2); margin-top: 2px; }
.com-greet-prof {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 38px; height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
}
.com-greet-prof:hover { background: var(--surface2); }

.com-tab-row {
  display: flex; gap: 6px;
  padding: 8px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.com-tab-row::-webkit-scrollbar { display: none; }
.com-tab {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.86rem; font-weight: 600;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
  white-space: nowrap;
}
.com-tab:hover { background: var(--surface2); color: var(--text); }
.com-tab.active {
  background: rgba(236, 72, 153, 0.18);
  border-color: rgba(236, 72, 153, 0.55);
  color: #ec4899;
}

.com-new-btn-wrap {
  padding: 10px 14px;
}
.com-new-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.92rem; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ec4899 0%, #fbbf24 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
  transition: transform 0.12s;
}
.com-new-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(236, 72, 153, 0.45); }
.com-new-btn:active { transform: scale(0.99); }

.com-feed-list {
  padding: 8px 14px 28px;
  display: flex; flex-direction: column; gap: 12px;
}

/* Post card */
.com-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  font-family: inherit;
  text-align: left;
  width: 100%;
}
.com-post-card:hover {
  background: var(--surface2);
  border-color: rgba(236, 72, 153, 0.35);
}

.com-post-detail { cursor: default; }
.com-post-detail:hover { background: var(--surface); border-color: var(--border); }

.com-post-head {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 10px;
}
.com-post-avatar {
  width: 44px; height: 44px;
  background: rgba(236, 72, 153, 0.12);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.com-post-head-text { flex: 1; min-width: 0; }
.com-post-name {
  font-weight: 700; font-size: 0.94rem;
  color: var(--text);
  margin-bottom: 2px;
}
.com-post-meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--text2);
}
.com-post-cond {
  padding: 1px 8px;
  background: rgba(52, 152, 219, 0.18);
  color: #3498db;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.72rem;
}
.com-post-time { color: var(--text3); }

.com-post-content {
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 10px;
  white-space: normal;
  word-break: break-word;
}

.com-post-photo-wrap {
  margin: 0 -16px 10px;
  background: #0a0f1c;
  overflow: hidden;
}
.com-post-photo {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: #0a0f1c;
}

.com-post-footer {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border2);
}

.com-react-row {
  display: flex; gap: 6px;
  flex-wrap: wrap;
}
.com-react-btn {
  flex: 1;
  min-width: 0;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 4px;
  padding: 7px 8px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text2);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.com-react-btn:hover {
  background: var(--surface);
  color: var(--text);
  border-color: rgba(236, 72, 153, 0.35);
}
.com-react-btn.active {
  background: rgba(236, 72, 153, 0.18);
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.55);
  font-weight: 700;
}
.com-react-emoji { font-size: 1rem; }
.com-react-label { white-space: nowrap; }
.com-react-count {
  padding: 1px 7px;
  background: rgba(236, 72, 153, 0.25);
  color: #ec4899;
  border-radius: 999px;
  font-size: 0.68rem; font-weight: 800;
}

.com-cmt-hint {
  font-size: 0.78rem;
  color: var(--text2);
  padding: 2px 4px;
}

/* Empty state */
.com-empty {
  padding: 48px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
  margin: 0 0 16px;
}
.com-empty-icon { font-size: 3rem; margin-bottom: 10px; }
.com-empty-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.com-empty-sub { font-size: 0.86rem; color: var(--text2); margin-bottom: 16px; }
.com-empty-cta {
  padding: 10px 20px;
  font-size: 0.92rem; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #fbbf24);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

/* ── POST DETAIL SCREEN ── */
#community-post-body { padding: 14px 14px 28px; }

.com-cmt-section {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.com-cmt-title {
  font-size: 0.96rem; font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
}
.com-cmt-item {
  display: flex; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border2);
}
.com-cmt-item:last-of-type { border-bottom: none; }
.com-cmt-avatar {
  width: 34px; height: 34px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.com-cmt-body { flex: 1; min-width: 0; }
.com-cmt-head {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 3px;
}
.com-cmt-name { font-size: 0.84rem; font-weight: 700; color: var(--text); }
.com-cmt-time { font-size: 0.72rem; color: var(--text3); }
.com-cmt-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
  word-break: break-word;
}
.com-cmt-empty {
  padding: 14px;
  text-align: center;
  color: var(--text2);
  font-size: 0.85rem;
  font-style: italic;
  background: var(--surface2);
  border-radius: 8px;
  margin: 8px 0 12px;
}

/* ==========================================================
   AI ENCOURAGEMENT COMMENT — distinct blue card so patients
   can tell at a glance which comments are from AI vs fellow
   patients. Warm, hopeful, clearly labeled "not medical advice".
   ========================================================== */
.com-cmt-item.com-cmt-ai {
  background: linear-gradient(135deg, rgba(58, 123, 213, 0.09), rgba(0, 212, 255, 0.06));
  border: 1px solid rgba(58, 123, 213, 0.25);
  border-bottom: 1px solid rgba(58, 123, 213, 0.25);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  position: relative;
}
.com-cmt-item.com-cmt-ai .com-cmt-avatar {
  background: linear-gradient(135deg, #3a7bd5, #00d4ff);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
  animation: com-ai-avatar-pulse 2.8s ease-in-out infinite;
}
@keyframes com-ai-avatar-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(0, 212, 255, 0); }
}
.com-cmt-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}
.com-cmt-badge.ai {
  background: linear-gradient(135deg, rgba(58, 123, 213, 0.2), rgba(0, 212, 255, 0.15));
  color: #3a7bd5;
  border: 1px solid rgba(58, 123, 213, 0.35);
}
.com-cmt-badge.crisis {
  background: linear-gradient(135deg, #c21f2c, #ff4d6d);
  color: #fff;
  border: 1px solid rgba(255, 85, 102, 0.5);
  animation: com-crisis-blink 1.4s ease-in-out infinite;
}
@keyframes com-crisis-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.75; }
}
.com-cmt-item.com-cmt-crisis {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.08), rgba(194, 31, 44, 0.05));
  border-color: rgba(255, 85, 102, 0.4);
}
.com-cmt-item.com-cmt-crisis .com-cmt-avatar {
  background: linear-gradient(135deg, #c21f2c, #ff4d6d);
  color: #fff;
  animation: none;
  box-shadow: 0 2px 10px rgba(255, 85, 102, 0.5);
}
.com-cmt-ai-note {
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--text3);
  font-style: italic;
  opacity: 0.85;
}

/* Typing-indicator effect for the "..." placeholder comment while
   AI is thinking. We detect it via the single-character text. */
.com-cmt-item.com-cmt-ai .com-cmt-text:only-child,
.com-cmt-item.com-cmt-ai .com-cmt-text {
  /* No special rule here; keep base style. */
}

/* "AI 응원 받기" button shown on posts that don't have an AI comment yet */
.com-ai-request-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  margin: 14px 0 4px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(58, 123, 213, 0.15), rgba(0, 212, 255, 0.1));
  border: 1.5px dashed rgba(58, 123, 213, 0.45);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1862a0;
  transition: all 0.2s ease;
}
.com-ai-request-btn:hover {
  background: linear-gradient(135deg, rgba(58, 123, 213, 0.22), rgba(0, 212, 255, 0.15));
  border-color: rgba(58, 123, 213, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(58, 123, 213, 0.2);
}
.com-ai-request-btn:active { transform: translateY(0); }
.com-ai-request-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: 0;
}

.com-cmt-form {
  display: flex; gap: 8px; align-items: flex-end;
  margin-top: 12px;
}
.com-cmt-input {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  resize: vertical;
  min-height: 50px;
  font-family: inherit;
}
.com-cmt-input:focus {
  outline: none;
  border-color: rgba(236, 72, 153, 0.55);
  background: var(--surface);
}
.com-cmt-submit {
  padding: 10px 18px;
  font-size: 0.88rem; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.30);
  flex-shrink: 0;
}
.com-cmt-submit:hover { transform: translateY(-1px); }

.com-safety-note {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 0.78rem;
  color: var(--text2);
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  line-height: 1.55;
}

/* ── NEW POST SCREEN ── */
#community-new-body { padding: 14px 14px 28px; }

.com-new-user {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.com-new-name { font-size: 0.94rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.com-new-priv { font-size: 0.76rem; color: var(--text2); }

.com-new-form { display: flex; flex-direction: column; gap: 10px; }

.com-new-label {
  font-size: 0.84rem; font-weight: 700;
  color: var(--text);
  margin-top: 6px;
}
.com-new-input {
  padding: 11px 12px;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  width: 100%;
}
.com-new-input:focus {
  outline: none;
  border-color: rgba(236, 72, 153, 0.55);
}
.com-new-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

.com-photo-row {
  display: flex; gap: 10px; align-items: flex-start;
  flex-wrap: wrap;
}
.com-new-photo-input { display: none; }
.com-photo-btn {
  padding: 10px 16px;
  font-size: 0.86rem; font-weight: 600;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  display: inline-block;
}
.com-photo-btn:hover {
  background: var(--surface);
  border-color: rgba(236, 72, 153, 0.45);
}
.com-photo-preview-wrap {
  position: relative;
  max-width: 160px;
}
.com-photo-preview {
  max-width: 160px;
  max-height: 160px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  border: 1px solid var(--border);
}
.com-photo-remove {
  position: absolute;
  top: -8px; right: -8px;
  width: 28px; height: 28px;
  background: #e74c3c;
  color: #fff;
  border: 2px solid var(--surface);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.78rem; font-weight: 900;
  font-family: inherit;
}

.com-new-safety {
  margin: 12px 0;
  padding: 12px 14px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.55;
}
.com-new-safety strong { display: block; margin-bottom: 6px; color: #10b981; font-weight: 800; font-size: 0.88rem; }
.com-new-safety ul { margin: 0; padding-left: 18px; }
.com-new-safety li { margin-bottom: 4px; }

.com-new-actions {
  display: flex; gap: 10px;
  padding-top: 8px;
}
.com-btn-cancel {
  flex: 1;
  padding: 12px;
  font-size: 0.92rem; font-weight: 700;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
}
.com-btn-cancel:hover { background: var(--surface); }
.com-btn-submit {
  flex: 2;
  padding: 12px;
  font-size: 0.95rem; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #fbbf24);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}
.com-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(236, 72, 153, 0.45); }
.com-btn-danger {
  padding: 10px 18px;
  font-size: 0.9rem; font-weight: 700;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.35);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}
.com-btn-danger:hover { background: rgba(231, 76, 60, 0.15); }

/* ── PROFILE SCREEN ── */
#community-profile-body { padding: 14px 14px 28px; display: flex; flex-direction: column; gap: 16px; }

.com-profile-card {
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.1) 0%, var(--surface) 100%);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 16px;
}
.com-profile-avatar {
  width: 72px; height: 72px;
  background: rgba(236, 72, 153, 0.18);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.com-profile-name {
  font-size: 1.14rem; font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.com-profile-cond {
  font-size: 0.86rem;
  color: var(--text2);
  margin-bottom: 4px;
}
.com-profile-join {
  font-size: 0.76rem;
  color: var(--text3);
}

.com-profile-stats {
  display: flex;
  gap: 10px;
}
.com-stat {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.com-stat strong {
  display: block;
  font-size: 1.4rem; font-weight: 800;
  color: #ec4899;
  line-height: 1;
  margin-bottom: 4px;
}
.com-stat span {
  font-size: 0.76rem; color: var(--text2);
}

.com-profile-section {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.com-profile-section h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
}
.com-profile-help {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.5;
}
.com-danger-zone {
  border-color: rgba(231, 76, 60, 0.25);
  background: rgba(231, 76, 60, 0.03);
}

/* ────────────────────────────────────────────────
   EMAIL FORWARDING + SHARE UX additions (Apr 18)
   ──────────────────────────────────────────────── */

.com-email-info {
  margin: 2px 0 6px;
  padding: 12px 14px;
  background: rgba(236, 72, 153, 0.06);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.55;
}
.com-email-info strong { display: block; margin-bottom: 6px; color: #ec4899; font-weight: 800; font-size: 0.86rem; }
.com-email-info ul { margin: 0; padding-left: 18px; }
.com-email-info li { margin-bottom: 4px; }

/* Email-enabled badge on post detail */
.com-email-badge {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.10), rgba(251, 191, 36, 0.08));
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

/* Share button on post header */
.com-share-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ec4899;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 4px;
  align-self: flex-start;
  margin-top: 2px;
  transition: background 0.15s;
}
.com-share-btn:hover { background: rgba(236, 72, 153, 0.22); }
.com-share-btn span { font-size: 0.78rem; }

/* Comment prompt header */
.com-cmt-prompt {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(251, 191, 36, 0.04));
  border: 1px solid rgba(236, 72, 153, 0.30);
  border-radius: 14px;
}
.com-cmt-prompt-icon { font-size: 1.9rem; flex-shrink: 0; }
.com-cmt-prompt-text { flex: 1; min-width: 0; }
.com-cmt-prompt-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.com-cmt-prompt-sub {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.55;
}

/* Bigger comment form */
.com-cmt-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid rgba(236, 72, 153, 0.35);
  border-radius: 14px;
}
.com-cmt-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.94rem;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
  line-height: 1.6;
}
.com-cmt-input:focus {
  outline: none;
  border-color: rgba(236, 72, 153, 0.55);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}
.com-cmt-submit-big {
  padding: 13px 18px;
  font-size: 0.96rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ec4899 0%, #fbbf24 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
  transition: transform 0.12s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.com-cmt-submit-big:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.50);
}
.com-cmt-submit-big:active { transform: scale(0.99); }

/* Toast */
.com-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  z-index: 9999;
  max-width: calc(100% - 40px);
  text-align: center;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.35s;
  font-family: 'Inter', 'Noto Serif KR', sans-serif;
  line-height: 1.5;
}
.com-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Post head share button alignment fix */
.com-post-head {
  position: relative;
}

/* Make old .com-cmt-submit (small) still work for fallback */
.com-cmt-submit {
  padding: 13px 18px;
  font-size: 0.94rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ec4899 0%, #fbbf24 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}
