/* =============================================
   ВИД ПОСТА — CRIMSON DESERT ESTETIC
   ============================================= */

.postTable {
  background: #1f1812 !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-left: 3px solid #ae8954 !important;
  border-radius: 0 !important;
  overflow: hidden;
  margin-bottom: 22px !important;
  width: 100% !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
  position: relative;
}

.postTable::before,
.postTable::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255,107,0,0.4);
  pointer-events: none;
  z-index: 2;
}
.postTable::before { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.postTable::after { bottom: 6px; right: 6px; border-left: none; border-top: none; }

/* === ВЕРХНЯЯ ПАНЕЛЬ === */
.postTdTopNick {
  background: #261c14 !important;
  padding: 14px 20px !important;
  text-align: center !important;
  border-right: 1px solid rgba(255,255,255,0.05) !important;
  border-bottom: 1px solid rgba(255,107,0,0.15) !important;
  width: 220px !important;
}
.postTdTopNick .postUser {
  font-family: 'Russo One', 'Open Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  transition: color 0.2s ease !important;
}
.postTdTopNick .postUser:hover { color: #ae8954 !important; }

.postTdTopNick .postUser.groupAdmin { color: #ff4444 !important; }
.postTdTopNick .postUser.groupSupermoder { color: #ff8533 !important; }
.postTdTopNick .postUser.groupModer { color: #4a9eff !important; }
.postTdTopNick .postUser.groupFriends { color: #ffcc00 !important; }
.postTdTopNick .postUser.groupVerify { color: #44ff88 !important; }
.postTdTopNick .postUser.groupCitizen { color: #88ccff !important; }
.postTdTopNick .postUser.groupUser { color: #fff !important; }
.postTdTopNick .postUser.groupBanned { color: #808080 !important; text-decoration: line-through !important; }

.postTdTopMeta {
  background: #261c14 !important;
  padding: 14px 20px !important;
  padding-right: 64px !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(255,107,0,0.15) !important;
  vertical-align: middle !important;
  position: relative !important;          /* ← опора для абсолютной кнопки */
}

.postNumber {
  font-family: 'Russo One', sans-serif !important;
  font-size: 10px !important;
  color: #ae8954 !important;
  background: rgba(255,107,0,0.1) !important;
  border: 1px solid rgba(255,107,0,0.3) !important;
  padding: 4px 10px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  display: inline-block !important;
  margin-right: 10px !important;
}
.postDate { font-size: 11px !important; color: #6a5d4e !important; letter-spacing: 0.5px !important; }

.postRepBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  background: rgba(255,107,0,0.1) !important;
  border: 1px solid rgba(255,107,0,0.3) !important;
  transition: all 0.2s ease !important;

  /* ← Прижато к правому краю */
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  transform: translateY(-50%) !important;
}
.postRepBtn:hover {
  background: rgba(255,107,0,0.2) !important;
  border-color: #ae8954 !important;
  box-shadow: 0 0 10px rgba(255,107,0,0.4) !important;
}
.postRepBtn img { width: 16px !important; height: 16px !important; filter: brightness(0) invert(1) !important; opacity: 0.85 !important; }
.postRepBtn:hover img { opacity: 1 !important; }

/* === ЛЕВАЯ КОЛОНКА === */
.postTdInfo {
  background: #15100c !important;
  color: #c5b8aa !important;
  padding: 22px 16px !important;
  text-align: center !important;
  width: 220px !important;
  border-right: 1px solid rgba(255,255,255,0.05) !important;
  vertical-align: top !important;
}
.postTdInfo .userAvatar {
  display: block !important;
  margin: 0 auto 12px auto !important;
  border-radius: 0 !important;
  border: 1px solid rgba(174, 137, 84, 0.5) !important;
  width: 130px !important;
  height: 130px !important;
  object-fit: cover !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 4px 14px rgba(0,0,0,0.5) !important;
  transition: all 0.3s ease !important;
}
.postTdInfo .userAvatar:hover {
  border-color: #ae8954 !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 6px 18px rgba(0,0,0,0.6), 0 0 20px rgba(174,137,84,0.25) !important;
}
.postGroupIco { margin: 8px 0 !important; display: inline-block !important; }
.postGroupIco img { max-width: 100% !important; }

.postRankName {
  font-family: 'Russo One', sans-serif !important;
  font-size: 11px !important;
  color: #ae8954 !important;
  font-weight: 400 !important;
  margin-top: 10px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  background: rgba(255,107,0,0.08) !important;
  border: 1px solid rgba(255,107,0,0.2) !important;
  display: inline-block !important;
}

/* === СТАТИСТИКА === */
.postStats {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.postStatItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
  background: transparent;
  border: none;
  min-width: 0;
  transition: opacity 0.2s ease;
}
.postStatItem:hover { opacity: 0.85; }
.postStatItem img { width: 25px; height: 25px; display: block; opacity: 0.8; }
.postStatItem span { font-size: 11px; color: #c5b8aa; text-align: center; font-weight: 600; line-height: 1; }
.postStatItem span b { color: #ae8954 !important; }
.postStatItem a { text-decoration: none !important; }

/* === ПРАВАЯ КОЛОНКА === */
.posttdMessage {
  background: #1f1812 !important;
  color: #c5b8aa !important;
  padding: 22px 26px !important;
  line-height: 1.7 !important;
  vertical-align: top !important;
}
.postMessage { color: #c5b8aa !important; line-height: 1.75 !important; font-size: 14px !important; word-wrap: break-word !important; }
.postMessage img { max-width: 100% !important; height: auto !important; }

.signatureHr { border: none !important; border-top: 1px dashed rgba(255,107,0,0.2) !important; margin: 20px 0 10px !important; }
.signatureView {
  font-size: 11px !important;
  color: #6a5d4e !important;
  font-style: italic !important;
  line-height: 1.6 !important;
  padding-left: 12px !important;
  border-left: 2px solid rgba(255,107,0,0.2) !important;
}

.edited {
  font-size: 10px !important;
  color: #6a5d4e !important;
  margin-top: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 6px 10px !important;
  background: rgba(255,255,255,0.02) !important;
  border-left: 2px solid rgba(255,107,0,0.3) !important;
  display: inline-block !important;
}

.eAttach {
  font-size: 12px !important;
  color: #c5b8aa !important;
  margin-top: 14px !important;
  padding: 10px 14px !important;
  background: #15100c !important;
  border: 1px solid rgba(255,107,0,0.2) !important;
  border-left: 3px solid #ae8954 !important;
}
.eAttach a { color: #ae8954 !important; }

/* === НИЖНЯЯ ПАНЕЛЬ === */
.postBottom {
  background: #15100c !important;
  padding: 12px 20px !important;
  font-size: 11px !important;
  color: #6a5d4e !important;
  border-top: 1px solid rgba(255,255,255,0.04) !important;
  vertical-align: middle !important;
}
.postIp {
  font-size: 10px !important;
  color: #6a5d4e !important;
  letter-spacing: 1px !important;
  padding: 3px 8px !important;
  background: rgba(0,0,0,0.3) !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
}
.postActions { display: flex !important; justify-content: space-between !important; align-items: center !important; gap: 10px !important; }
.postProfileIcons, .postModIcons { display: inline-flex !important; align-items: center !important; gap: 4px !important; }
.postProfileIcons img, .postModIcons img {
  opacity: 0.75 !important;
  transition: all 0.2s ease !important;
  padding: 4px !important;
  background: rgba(255,255,255,0.02) !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
}
.postProfileIcons img:hover, .postModIcons img:hover {
  opacity: 1 !important;
  border-color: rgba(255,107,0,0.4) !important;
  background: rgba(255,107,0,0.08) !important;
}

.scrollBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  background: rgba(255,107,0,0.08) !important;
  border: 1px solid rgba(255,107,0,0.2) !important;
  transition: all 0.2s ease !important;
}
.scrollBtn:hover {
  background: rgba(255,107,0,0.2) !important;
  border-color: #ae8954 !important;
  box-shadow: 0 0 8px rgba(255,107,0,0.3) !important;
}
.scrollBtn img { width: 14px !important; height: 14px !important; filter: brightness(0) invert(1) !important; opacity: 0.85 !important; }
.scrollBtn:hover img { opacity: 1 !important; }

/* === СТАТУС ОНЛАЙН === */
.statusText {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
  font-size: 0;
  overflow: hidden;
  background: #6a5d4e;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.04);
}
.statusText.online {
  background: #44ff88;
  box-shadow: 0 0 0 2px rgba(68,255,136,0.15), 0 0 8px rgba(68,255,136,0.5) !important;
  animation: pulseOnline 2s ease-in-out infinite;
}
@keyframes pulseOnline {
  0%, 100% { box-shadow: 0 0 0 2px rgba(68,255,136,0.15), 0 0 8px rgba(68,255,136,0.5); }
  50% { box-shadow: 0 0 0 2px rgba(68,255,136,0.25), 0 0 14px rgba(68,255,136,0.7); }
}

/* === ТУЛТИПЫ === */
.crd-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  background: #15100c;
  border: 1px solid rgba(255,107,0,0.4);
  color: #fff;
  font-family: 'Russo One', sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.crd-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(255,107,0,0.4);
}
.crd-tooltip.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === АДАПТИВ === */
@media (max-width: 768px) {
  .postTable { margin-bottom: 12px !important; border-left-width: 2px !important; }
  .postTable::before, .postTable::after { display: none !important; }

  .postTdTopNick, .postTdTopMeta {
    display: block !important; width: 100% !important;
    padding: 10px 12px !important; text-align: left !important;
    border-right: none !important; box-sizing: border-box !important;
  }
  .postTdTopNick { padding-bottom: 4px !important; border-bottom: none !important; }
  .postTdTopMeta { padding-top: 4px !important; padding-right: 56px !important; position: relative !important; }
  .postTdTopNick .postUser { font-size: 13px !important; letter-spacing: 1px !important; }
  .postNumber { font-size: 9px !important; padding: 3px 8px !important; display: inline-block !important; margin-bottom: 4px !important; }
  .postDate { font-size: 10px !important; display: inline-block !important; }
  .postRepBtn { width: 30px !important; height: 30px !important; right: 10px !important; }
  .postRepBtn img { width: 14px !important; height: 14px !important; }

  .postTdInfo {
    display: block !important; width: 100% !important;
    padding: 14px !important; text-align: left !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    box-sizing: border-box !important;
  }
  .postTdInfo .userAvatar { float: left !important; width: 56px !important; height: 56px !important; margin: 0 12px 0 0 !important; }
  .postGroupIco { float: left !important; margin: 4px 8px 0 0 !important; }
  .postGroupIco img { max-height: 24px !important; width: auto !important; }
  .postRankName { display: inline-block !important; font-size: 9px !important; padding: 3px 8px !important; margin-top: 4px !important; letter-spacing: 1px !important; }
  .postStats { clear: both !important; justify-content: flex-start !important; padding-top: 10px !important; margin-top: 10px !important; gap: 8px !important; }
  .postStatItem { min-width: 36px !important; padding: 4px 6px !important; }
  .postStatItem img { width: 18px !important; height: 18px !important; }
  .postStatItem span { font-size: 10px !important; }

  .posttdMessage { display: block !important; width: 100% !important; padding: 14px 16px !important; box-sizing: border-box !important; }
  .postMessage { font-size: 13px !important; line-height: 1.65 !important; }

  .postBottom { display: block !important; width: 100% !important; padding: 10px 14px !important; text-align: center !important; box-sizing: border-box !important; }
  .postActions { flex-wrap: wrap !important; justify-content: space-between !important; gap: 8px !important; }

  .postProfileIcons, .postModIcons,
  .postActions .postProfileIcons, .postActions .postModIcons { display: none !important; }
  .postIp { display: none !important; }
  .postScrollBtns { margin-left: auto !important; display: inline-flex !important; gap: 6px !important; }
  .scrollBtn { width: 32px !important; height: 32px !important; }

  .signatureView { font-size: 10px !important; padding-left: 8px !important; }
  .edited { font-size: 9px !important; padding: 4px 8px !important; }
}

@media (max-width: 480px) {
  .postTable { border-left-width: 2px !important; }
  .postTdTopNick { padding: 10px 12px 2px !important; }
  .postTdTopMeta { padding: 4px 56px 10px 12px !important; }
  .postTdInfo { padding: 12px !important; }
  .postTdInfo .userAvatar { width: 50px !important; height: 50px !important; margin: 0 10px 0 0 !important; }
  .posttdMessage { padding: 12px 14px !important; }
  .postMessage { font-size: 12px !important; }
  .postRepBtn { width: 28px !important; height: 28px !important; right: 8px !important; }
}
/* =============================================
   Форум: компактный левый блок пользователя
============================================= */

/* Общая колонка пользователя */
.postTdInfo {
  padding-top: 20px !important;
  padding-bottom: 18px !important;
}

/* Аватар */
.postTdInfo .userAvatar {
  margin: 0 auto 8px auto !important;
}

/* Иконка группы */
.postTdInfo .postGroupIco {
  display: block !important;
  margin: 6px auto 3px !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

.postTdInfo .postGroupIco img {
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  vertical-align: top !important;
}

/* Титул пользователя */
.postTdInfo .postRankName {
  display: inline-block !important;
  margin-top: 3px !important;
  margin-bottom: 10px !important;
}

/* Статистика под титулом */
.postTdInfo .postStats {
  margin-top: 10px !important;
  padding-top: 10px !important;
  gap: 8px !important;
}

/* Сами элементы статистики */
.postTdInfo .postStatItem {
  margin: 0 !important;
  padding: 0 !important;
}

.postTdInfo .postStatItem img {
  margin: 0 auto 3px !important;
}
/* =============================================
   Форум: цвета новых групп в постах
============================================= */

.postTdTopNick .postUser.groupAxiom,
.postUser.groupAxiom,
a.postUser.groupAxiom {
  color: #d7b06f !important;
  text-shadow: 0 0 8px rgba(215,176,111,0.28) !important;
}

.postTdTopNick .postUser.groupAxiom:hover,
.postUser.groupAxiom:hover,
a.postUser.groupAxiom:hover {
  color: #ffd08a !important;
}

.postTdTopNick .postUser.groupAbyss,
.postUser.groupAbyss,
a.postUser.groupAbyss {
  color: #8f7cff !important;
  text-shadow: 0 0 8px rgba(143,124,255,0.30) !important;
}

.postTdTopNick .postUser.groupAbyss:hover,
.postUser.groupAbyss:hover,
a.postUser.groupAbyss:hover {
  color: #c8bdff !important;
}