/* ── CỘNG ĐỒNG - PHONG CÁCH KÍNH MỜ VŨ TRỤ ── */

html, body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
}

:root {
  --comm-acc:      #00d4ff;
  --comm-acc-rgb:  0, 212, 255;
  --comm-glass:    rgba(2, 12, 30, 0.65);
  --comm-border:   rgba(0, 212, 255, 0.12);
  --comm-white:    #e8f4ff;
  --comm-font-h:   'Outfit', sans-serif;
  --comm-font-ui:  'Inter', sans-serif;
  --comm-font-b:   'Inter', sans-serif;
  --comm-ease:     cubic-bezier(0.16, 1, 0.3, 1);
}

.starfield-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  pointer-events: none;
}

body {
  background: #010610 !important;
}

.comm-main {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 100px auto 40px;
  padding: 0 20px;
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Tiêu đề trang */
.comm-header {
  text-align: center;
  margin-bottom: 12px;
  animation: commFadeDown 0.8s var(--comm-ease) both;
}
@keyframes commFadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.comm-title {
  font-family: var(--comm-font-h);
  font-size: 34px;
  font-weight: 700;
  color: var(--comm-white);
  letter-spacing: 2px;
  text-shadow: 0 0 25px rgba(0, 212, 255, 0.35);
  margin-bottom: 10px;
}
.comm-subtitle {
  font-family: var(--comm-font-ui);
  font-size: 15px;
  color: rgba(232, 244, 255, 0.65);
  letter-spacing: 0.5px;
}

/* Khung soạn thảo (Composer) */
.comm-composer {
  background: var(--comm-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.16);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.55), 
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s var(--comm-ease);
  animation: commFadeUp 0.8s var(--comm-ease) 0.1s both;
}
.comm-composer:focus-within {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 
    0 12px 50px rgba(0, 212, 255, 0.08), 
    0 10px 40px rgba(0, 0, 0, 0.55), 
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
@keyframes commFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Composer Header: Mode switcher & Nickname */
.composer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.composer-modes {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(232, 244, 255, 0.06);
  padding: 3px;
  border-radius: 24px;
  gap: 2px;
}
.mode-btn {
  background: transparent;
  border: none;
  outline: none;
  color: rgba(232, 244, 255, 0.45);
  font-family: var(--comm-font-ui);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s var(--comm-ease);
  display: flex;
  align-items: center;
  gap: 6px;
}
.mode-btn:hover {
  color: rgba(232, 244, 255, 0.8);
}
.mode-btn.active {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}
#modePublic.active {
  background: rgba(255, 170, 48, 0.1);
  border-color: rgba(255, 170, 48, 0.35);
  color: #ffaa30;
  box-shadow: 0 0 10px rgba(255, 170, 48, 0.1);
}

.nickname-wrap {
  flex: 1;
  min-width: 200px;
  transition: opacity 0.28s var(--comm-ease), transform 0.28s var(--comm-ease);
}
.nickname-wrap.hidden {
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
}
.comm-nickname-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 12px;
  padding: 8px 14px;
  color: var(--comm-white);
  font-family: var(--comm-font-b);
  font-size: 13.5px;
  outline: none;
  transition: all 0.25s var(--comm-ease);
}
.comm-nickname-input:focus {
  border-color: rgba(255, 170, 48, 0.45);
  background: rgba(2, 12, 30, 0.4);
  box-shadow: 0 0 12px rgba(255, 170, 48, 0.08);
}

.comm-textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--comm-white);
  font-family: var(--comm-font-b);
  font-size: 15px;
  line-height: 1.7;
  resize: none;
  outline: none;
  margin-bottom: 16px;
}
.comm-textarea::placeholder {
  color: rgba(232, 244, 255, 0.32);
}
.composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(232, 244, 255, 0.08);
  padding-top: 16px;
}
.composer-hint {
  font-family: var(--comm-font-ui);
  font-size: 13px;
  color: rgba(232, 244, 255, 0.4);
  transition: color 0.25s;
}
.comm-btn {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(0, 150, 200, 0.06) 100%);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: #00d4ff;
  font-family: var(--comm-font-ui);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 2px;
  padding: 11px 24px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.comm-btn:hover {
  border-color: rgba(0, 212, 255, 0.75);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.22);
  color: var(--comm-white);
  transform: translateY(-2px);
}
.comm-btn:active {
  transform: translateY(0);
}

/* Feed */
.comm-feed {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Thẻ bình luận chính */
.comm-post {
  background: rgba(2, 12, 30, 0.48);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.35), 
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.35s var(--comm-ease);
  animation: commSlideIn 0.5s var(--comm-ease) both;
}
@keyframes commSlideIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Phân loại phong cách Đăng Public vs Anon */
.comm-post.post-public {
  border-color: rgba(255, 170, 48, 0.15);
}
.comm-post.post-public:hover {
  border-color: rgba(255, 170, 48, 0.35);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.45), 
    0 0 20px rgba(255, 170, 48, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.comm-post.post-anon {
  border-color: rgba(0, 212, 255, 0.12);
}
.comm-post.post-anon:hover {
  border-color: rgba(0, 212, 255, 0.28);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.45), 
    0 0 20px rgba(0, 212, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--comm-font-h);
  font-size: 16px;
  font-weight: 600;
  color: var(--comm-white);
}

.comm-post.post-public .post-avatar {
  background: linear-gradient(135deg, rgba(255, 170, 48, 0.2) 0%, rgba(255, 90, 40, 0.08) 100%);
  border: 1px solid rgba(255, 170, 48, 0.4);
  box-shadow: 0 0 10px rgba(255, 170, 48, 0.15);
}
.comm-post.post-anon .post-avatar {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(26, 127, 255, 0.08) 100%);
  border: 1px solid rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
}

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.post-author {
  font-family: var(--comm-font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--comm-white);
  letter-spacing: 0.5px;
}
.post-time {
  font-family: var(--comm-font-b);
  font-size: 11px;
  color: rgba(232, 244, 255, 0.45);
}
.post-content {
  font-family: var(--comm-font-b);
  font-size: 15px;
  line-height: 1.72;
  color: rgba(232, 244, 255, 0.88);
  margin-bottom: 16px;
  word-wrap: break-word;
}

/* Nút tương tác */
.post-actions {
  display: flex;
  gap: 16px;
  border-top: 1px solid rgba(232, 244, 255, 0.06);
  padding-top: 12px;
}
.action-btn {
  background: transparent;
  border: none;
  color: rgba(0, 212, 255, 0.65);
  font-family: var(--comm-font-ui);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s;
  padding: 4px 8px;
  border-radius: 6px;
}
.comm-post.post-public .action-btn {
  color: rgba(255, 170, 48, 0.65);
}
.comm-post.post-public .action-btn:hover {
  color: #ffaa30;
  background: rgba(255, 170, 48, 0.08);
}
.comm-post.post-anon .action-btn:hover {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.08);
}

.action-btn svg {
  transition: transform 0.2s;
}
.action-btn:hover svg {
  transform: scale(1.15);
}

/* Khung Phản hồi */
.post-replies {
  margin-top: 16px;
  padding-left: 20px;
  border-left: 2px dashed rgba(232, 244, 255, 0.1);
  display: none;
  flex-direction: column;
  gap: 12px;
}
.post-replies.expanded {
  display: flex;
}

.reply-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(232, 244, 255, 0.05);
  padding: 14px 18px;
  border-radius: 14px;
  transition: all 0.25s var(--comm-ease);
}
.reply-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.reply-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}
.reply-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--comm-font-h);
  font-size: 11px;
  font-weight: 600;
  color: var(--comm-white);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.reply-author {
  font-family: var(--comm-font-ui);
  font-size: 13.5px;
  color: var(--comm-white);
  font-weight: 500;
}
.reply-time {
  font-family: var(--comm-font-b);
  font-size: 10px;
  color: rgba(232, 244, 255, 0.4);
}
.reply-content {
  font-family: var(--comm-font-b);
  font-size: 14px;
  color: rgba(232, 244, 255, 0.72);
  line-height: 1.6;
  word-wrap: break-word;
}

/* Hộp soạn phản hồi */
.reply-composer {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.reply-textarea {
  flex: 1;
  background: rgba(2, 12, 30, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 12px;
  padding: 11px 15px;
  color: var(--comm-white);
  font-family: var(--comm-font-b);
  font-size: 13.5px;
  outline: none;
  transition: all 0.25s var(--comm-ease);
}
.reply-textarea:focus {
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(2, 12, 30, 0.8);
}
.reply-textarea::placeholder {
  color: rgba(232, 244, 255, 0.3);
}
.reply-btn {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(0, 150, 200, 0.05) 100%);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--comm-white);
  font-family: var(--comm-font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 0 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s;
}
.reply-btn:hover {
  border-color: rgba(0, 212, 255, 0.75);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.18);
  background: rgba(0, 212, 255, 0.22);
}

/* ────────────────────────────────────────────────────────
   NAVBAR AUTH & LOGIN/REGISTER MODAL
   ──────────────────────────────────────────────────────── */
.nav-auth-section {
  display: flex;
  align-items: center;
  margin-right: 16px;
}
.nav-auth-btn {
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: #00d4ff;
  font-family: var(--comm-font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s;
}
.nav-auth-btn:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.25);
  color: var(--comm-white);
}

.nav-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(232, 244, 255, 0.06);
  padding: 5px 12px;
  border-radius: 16px;
}
.nav-user-badge span {
  font-family: var(--comm-font-ui);
  font-size: 12.5px;
  color: var(--comm-white);
}
.nav-user-badge strong {
  color: #ffaa30;
}
.nav-logout-btn {
  background: transparent;
  border: none;
  color: rgba(255, 70, 70, 0.7);
  font-family: var(--comm-font-ui);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 70, 70, 0.3);
}
.nav-logout-btn:hover {
  color: #ff6060;
  background: rgba(255, 70, 70, 0.08);
  border-color: #ff6060;
}

/* Modal Overlay */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 6, 16, 0.75);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--comm-ease), visibility 0.3s;
}
.auth-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Modal Box */
.auth-modal-box {
  width: 360px;
  background: var(--comm-glass);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 
    0 0 50px rgba(0, 212, 255, 0.08), 
    0 20px 50px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.32s var(--comm-ease);
  position: relative;
}
.auth-modal-overlay.open .auth-modal-box {
  transform: scale(1) translateY(0);
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(232, 244, 255, 0.06);
  padding-bottom: 12px;
}
.auth-tabs {
  display: flex;
  gap: 12px;
}
.auth-tab-btn {
  background: transparent;
  border: none;
  color: rgba(232, 244, 255, 0.45);
  font-family: var(--comm-font-h);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  padding: 4px 8px;
  position: relative;
}
.auth-tab-btn.active {
  color: #00d4ff;
}
.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0; right: 0;
  height: 2px;
  background: #00d4ff;
  box-shadow: 0 0 8px #00d4ff;
}

.auth-close-btn {
  background: transparent;
  border: none;
  color: rgba(232, 244, 255, 0.4);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s;
}
.auth-close-btn:hover {
  color: #ff6060;
}

.auth-modal-body form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-family: var(--comm-font-ui);
  font-size: 12px;
  color: rgba(0, 212, 255, 0.7);
  letter-spacing: 0.5px;
}
.auth-field input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(232, 244, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--comm-white);
  font-family: var(--comm-font-b);
  font-size: 13.5px;
  outline: none;
  transition: all 0.25s;
}
.auth-field input:focus {
  border-color: #00d4ff;
  background: rgba(2, 12, 30, 0.4);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.08);
}
.auth-error-msg {
  background: rgba(255, 70, 70, 0.08);
  border: 1px solid rgba(255, 70, 70, 0.28);
  color: #ff6060;
  font-family: var(--comm-font-b);
  font-size: 12px;
  padding: 10px;
  border-radius: 8px;
  line-height: 1.5;
  text-align: center;
}
.auth-submit-btn {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 150, 200, 0.08) 100%);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: #00d4ff;
  font-family: var(--comm-font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 11px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.28s;
  margin-top: 6px;
}
.auth-submit-btn:hover {
  border-color: #00d4ff;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.2);
  color: var(--comm-white);
}

.hidden {
  display: none !important;
}

/* ── PLANET FILTER BAR ───────────────────────────────────── */
.planet-filter-bar {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: wrap;
  justify-content: center;
  animation: commFadeUp 0.8s var(--comm-ease) 0.15s both;
}
.planet-filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(232, 244, 255, 0.08);
  border-radius: 20px;
  color: rgba(232, 244, 255, 0.5);
  font-family: var(--comm-font-ui);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.28s var(--comm-ease);
  white-space: nowrap;
}
.filter-btn:hover {
  color: rgba(232, 244, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(232, 244, 255, 0.15);
  transform: translateY(-1px);
}
.filter-btn.active {
  color: var(--comm-white);
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.08);
}
.filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
  transition: box-shadow 0.28s;
}
.filter-btn.active .filter-dot {
  box-shadow: 0 0 10px currentColor, 0 0 4px currentColor;
}

/* Planet-specific active colors */
.filter-btn[data-planet="mercury"].active { border-color: rgba(138,156,168,0.4); background: rgba(138,156,168,0.1); }
.filter-btn[data-planet="venus"].active { border-color: rgba(255,182,193,0.4); background: rgba(255,182,193,0.1); }
.filter-btn[data-planet="earth"].active { border-color: rgba(74,158,223,0.4); background: rgba(74,158,223,0.1); }
.filter-btn[data-planet="mars"].active { border-color: rgba(255,69,0,0.4); background: rgba(255,69,0,0.1); }
.filter-btn[data-planet="jupiter"].active { border-color: rgba(240,230,140,0.4); background: rgba(240,230,140,0.1); }
.filter-btn[data-planet="saturn"].active { border-color: rgba(232,213,152,0.4); background: rgba(232,213,152,0.1); }
.filter-btn[data-planet="uranus"].active { border-color: rgba(125,232,232,0.4); background: rgba(125,232,232,0.1); }
.filter-btn[data-planet="neptune"].active { border-color: rgba(64,128,255,0.4); background: rgba(64,128,255,0.1); }

/* ── PLANET BADGE (on posts) ───────────────────────────── */
.planet-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-family: var(--comm-font-ui);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border: 1px solid rgba(232, 244, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  margin-left: 8px;
  vertical-align: middle;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
.planet-badge:hover { transform: translateY(-1px); filter: brightness(1.25); }
.planet-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Planet badge color variants */
.planet-badge[data-planet="mercury"] { color: #8a9ca8; border-color: rgba(138,156,168,0.25); background: rgba(138,156,168,0.06); }
.planet-badge[data-planet="mercury"] .badge-dot { background: #8a9ca8; box-shadow: 0 0 6px #8a9ca8; }
.planet-badge[data-planet="venus"] { color: #ffb6c1; border-color: rgba(255,182,193,0.25); background: rgba(255,182,193,0.06); }
.planet-badge[data-planet="venus"] .badge-dot { background: #ffb6c1; box-shadow: 0 0 6px #ffb6c1; }
.planet-badge[data-planet="earth"] { color: #4a9edf; border-color: rgba(74,158,223,0.25); background: rgba(74,158,223,0.06); }
.planet-badge[data-planet="earth"] .badge-dot { background: #4a9edf; box-shadow: 0 0 6px #4a9edf; }
.planet-badge[data-planet="mars"] { color: #ff4500; border-color: rgba(255,69,0,0.25); background: rgba(255,69,0,0.06); }
.planet-badge[data-planet="mars"] .badge-dot { background: #ff4500; box-shadow: 0 0 6px #ff4500; }
.planet-badge[data-planet="jupiter"] { color: #f0e68c; border-color: rgba(240,230,140,0.25); background: rgba(240,230,140,0.06); }
.planet-badge[data-planet="jupiter"] .badge-dot { background: #f0e68c; box-shadow: 0 0 6px #f0e68c; }
.planet-badge[data-planet="saturn"] { color: #e8d598; border-color: rgba(232,213,152,0.25); background: rgba(232,213,152,0.06); }
.planet-badge[data-planet="saturn"] .badge-dot { background: #e8d598; box-shadow: 0 0 6px #e8d598; }
.planet-badge[data-planet="uranus"] { color: #7de8e8; border-color: rgba(125,232,232,0.25); background: rgba(125,232,232,0.06); }
.planet-badge[data-planet="uranus"] .badge-dot { background: #7de8e8; box-shadow: 0 0 6px #7de8e8; }
.planet-badge[data-planet="neptune"] { color: #4080ff; border-color: rgba(64,128,255,0.25); background: rgba(64,128,255,0.06); }
.planet-badge[data-planet="neptune"] .badge-dot { background: #4080ff; box-shadow: 0 0 6px #4080ff; }

/* ── SIGNAL LEVEL BADGE ────────────────────────────────── */
.signal-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  font-family: var(--comm-font-ui);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: rgba(232, 244, 255, 0.65);
  border: 1px solid rgba(232, 244, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  margin-left: 6px;
}
.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.signal-bars .sbar {
  width: 3px;
  border-radius: 1px;
  background: rgba(232, 244, 255, 0.15);
  transition: background 0.2s;
}
.signal-bars .sbar:nth-child(1) { height: 4px; }
.signal-bars .sbar:nth-child(2) { height: 6px; }
.signal-bars .sbar:nth-child(3) { height: 8px; }
.signal-bars .sbar:nth-child(4) { height: 10px; }
.signal-bars .sbar:nth-child(5) { height: 12px; }
.signal-bars .sbar.on { background: var(--comm-acc); box-shadow: 0 0 4px rgba(0, 212, 255, 0.4); }

/* Signal level color intensities */
.signal-level-badge[data-level="1"] { color: rgba(232, 244, 255, 0.45); }
.signal-level-badge[data-level="2"] { color: rgba(0, 212, 255, 0.6); }
.signal-level-badge[data-level="3"] { color: rgba(0, 212, 255, 0.75); }
.signal-level-badge[data-level="4"] { color: #ffaa30; border-color: rgba(255, 170, 48, 0.2); }
.signal-level-badge[data-level="4"] .sbar.on { background: #ffaa30; box-shadow: 0 0 4px rgba(255, 170, 48, 0.4); }
.signal-level-badge[data-level="5"] { color: #ff6060; border-color: rgba(255, 96, 96, 0.2); background: rgba(255, 96, 96, 0.04); }
.signal-level-badge[data-level="5"] .sbar.on { background: #ff6060; box-shadow: 0 0 4px rgba(255, 96, 96, 0.4); }

.auth-field small {
  color: rgba(196, 213, 229, 0.62);
  font-family: var(--comm-font-b);
  font-size: 11px;
  line-height: 1.45;
}
.auth-field input[type="email"] {
  padding-right: 42px;
  background-image: radial-gradient(circle at calc(100% - 20px) 50%, rgba(0, 212, 255, 0.5) 0 2px, transparent 3px);
  background-repeat: no-repeat;
}


/* Community stream interactions */
.community-stream-meta {
  width: min(100%, 760px);
  margin: 14px auto 8px;
  padding: 0 6px;
  color: rgba(232, 244, 255, 0.55);
  font-family: var(--comm-font-ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-status {
  padding: 24px;
  text-align: center;
}

.feed-status-error {
  color: #ff7d8d;
}

.action-btn:focus-visible,
.reply-btn:focus-visible,
.reply-textarea:focus-visible {
  outline: 2px solid #7cecff;
  outline-offset: 3px;
}

.action-btn:disabled,
.reply-btn:disabled {
  cursor: wait;
  opacity: 0.55;
}

.comm-post .like-btn.liked {
  color: #ff6f91;
  background: rgba(255, 88, 129, 0.1);
}

.like-btn.liked .heart-icon {
  fill: currentColor;
  filter: drop-shadow(0 0 5px rgba(255, 88, 129, 0.55));
}

.like-count {
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .community-stream-meta {
    margin-top: 10px;
    padding-inline: 16px;
  }

  .post-actions {
    gap: 6px;
  }

  .action-btn {
    min-height: 44px;
    padding-inline: 10px;
  }

  .reply-composer {
    align-items: stretch;
  }

  .reply-btn {
    min-width: 64px;
    min-height: 44px;
    padding-inline: 14px;
  }
}
