:root{
  --rspc-bg: rgba(18, 18, 24, .55);
  --rspc-border: rgba(255,255,255,.08);
  --rspc-text: rgba(255,255,255,.92);
  --rspc-muted: rgba(255,255,255,.60);
  --rspc-accent: #7b5cff;
  --rspc-accent2: rgba(123, 92, 255, .14);
}

/* Honeypot field (anti-spam) */
.rspc-hp{display:none !important;}

.rspc-wrap{ margin: 14px 0; color: var(--rspc-text); direction: ltr; }
.rspc-wrap.rspc-rtl{ direction: rtl; }

/* RTL: ensure comment content aligns to the right even if theme forces left alignment */
.rspc-wrap.rspc-rtl,
.rspc-wrap.rspc-rtl .rspc-box,
.rspc-wrap.rspc-rtl .rspc-comment__body,
.rspc-wrap.rspc-rtl .rspc-reply-item__body,
.rspc-wrap.rspc-rtl .rspc-subreply__body,
.rspc-wrap.rspc-rtl .rspc-compose,
.rspc-wrap.rspc-rtl .rspc-panelbar{
  text-align: right;
}
.rspc-wrap.rspc-rtl .rspc-comment__text,
.rspc-wrap.rspc-rtl .rspc-comment__text p,
.rspc-wrap.rspc-rtl .rspc-reply-item__body p,
.rspc-wrap.rspc-rtl .rspc-subreply__body p{
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: inherit;
}
.rspc-box{
  background: var(--rspc-bg);
  border: 1px solid var(--rspc-border);
  border-radius: 14px;
  padding: 12px;
}
.rspc-compose{ margin-bottom: 12px; }

/* Reactions */
.rspc-reactions{ margin-bottom: 12px; }
.rspc-reactions__head{ display:flex; align-items:flex-end; justify-content:space-between; gap:8px; margin-bottom: 10px; }
.rspc-reactions__title{ font-weight: 900; font-size: 18px; letter-spacing: .2px; }
.rspc-reactions__total{ color: var(--rspc-muted); font-weight: 800; font-size: 13px; }
.rspc-reactions__grid{ display:grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; justify-content:center; }
.rspc-rx{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: var(--rspc-text);
  cursor:pointer;
  user-select:none;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}
.rspc-rx:hover{ border-color: rgba(185,169,255,.28); background: rgba(0,0,0,.22); }
.rspc-rx:active{ transform: scale(.98); }
.rspc-rx:disabled{ opacity: .6; cursor: not-allowed; }
.rspc-rx.is-active{ border-color: rgba(123, 92, 255, .55); background: rgba(123, 92, 255, .14); }
.rspc-rx__emoji{ font-size: 22px; line-height: 1; }
.rspc-rx__label{ font-size: 12px; font-weight: 900; color: var(--rspc-muted); }
.rspc-rx.is-active .rspc-rx__label{ color: rgba(255,255,255,.92); }
.rspc-rx__count{ font-size: 12px; font-weight: 900; }
.rspc-reactions__hint{ margin-top: 8px; color: var(--rspc-muted); font-size: 12px; min-height: 16px; }

@media (max-width: 860px){
  .rspc-reactions__grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 520px){
  .rspc-comment__sticker img{ width: 150px; }

  .rspc-reactions__grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rspc-reactions__grid{ gap: 8px; }
  .rspc-rx{ padding: 9px 6px; }
  .rspc-rx__emoji{ font-size: 20px; }
}
.rspc-compose__title{ font-weight: 700; margin-bottom: 8px; }
.rspc-compose__as{ margin-bottom: 8px; color: var(--rspc-muted); }
.rspc-compose__head{ display:flex; flex-direction:column; gap:14px; margin: 8px 0 12px; }
.rspc-compose__profileline{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  padding:10px 2px 4px;
}
.rspc-compose__toolbar{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  width:100%;
}
.rspc-compose__avatar{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}
.rspc-compose__avatar img{
  width:48px;
  height:48px;
  border-radius:999px;
  display:block;
}
.rspc-compose__meta{ display:flex; flex-direction:column; gap:6px; min-width:0; flex:1 1 auto; }
.rspc-compose__who{ display:flex; align-items:center; gap:8px; min-width:0; flex-wrap:wrap; }
.rspc-compose__subline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.rspc-compose__name{ font-weight:900; font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width: 260px; }
.rspc-compose__level{
  display:inline-flex;
  align-items:center;
}
.rspc-compose__level .rspc-badge--level{
  font-size:12px;
  padding:4px 10px;
}
.rspc-account-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:46px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(138,92,255,.35);
  background:rgba(255,255,255,.02);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  white-space:nowrap;
}
.rspc-account-btn__icon{ font-size:14px; line-height:1; opacity:.92; }
.rspc-account-btn__text{ display:inline-block; line-height:1.55; word-spacing:2px; }
.rspc-account-btn:hover{ border-color: rgba(185,169,255,.48); background:rgba(255,255,255,.06); }
.rspc-wrap.rspc-rtl .rspc-compose__toolbar{ direction:rtl; }
.rspc-levels-btn{
  border-color: rgba(255,214,92,.30);
  background: rgba(255,214,92,.04);
}
.rspc-levels-btn:hover{
  border-color: rgba(255,214,92,.48);
  background: rgba(255,214,92,.08);
}

/* Guest CTA (lightweight, encourages sign-up) */
.rspc-guest-cta{
  margin:10px 0 12px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:12px;
  background:rgba(255,255,255,.03);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.rspc-guest-cta__text{
  display:block;
  width:100%;
  font-size:12px;
  line-height:1.6;
  color: var(--rspc-muted);
}
.rspc-guest-cta__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
}
.rspc-wrap.rspc-rtl .rspc-guest-cta__actions{ justify-content:flex-end; }
.rspc-row{ margin-top: 8px; }
.rspc-input, .rspc-textarea{
  width: 100%;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--rspc-text);
  outline: none;
}
.rspc-textarea{ resize: vertical; min-height: 84px; }
.rspc-textarea{ line-height: 1.85; }
.rspc-wrap.rspc-rtl .rspc-textarea::placeholder{
  text-align: right;
  direction: rtl;
}
.rspc-wrap.rspc-rtl #rspc-content,
.rspc-wrap.rspc-rtl .rspc-reply-content,
.rspc-wrap.rspc-rtl .rspc-edit-textarea{
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: plaintext;
}
.rspc-formatrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.rspc-formatbar{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; position:relative; }
.rspc-fmt-btn{
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  background: rgba(255,255,255,.03);
  color: var(--rspc-text);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:800;
  line-height:1;
}
.rspc-fmt-btn:hover{ border-color: rgba(185,169,255,.28); background: rgba(255,255,255,.08); }
.rspc-fmt-btn:active{ transform: scale(.98); }
.rspc-fmt-btn.is-open{ border-color: rgba(123, 92, 255, .55); background: rgba(123, 92, 255, .16); }
.rspc-emoji-panel{
  position:absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  z-index: 40;
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:6px;
  min-width: 198px;
  padding:8px;
  border-radius:12px;
  border:1px solid rgba(185,169,255,.24);
  background: #151724;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.rspc-emoji-item{
  width:30px;
  height:30px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:9px;
  background: rgba(255,255,255,.03);
  cursor:pointer;
  font-size:18px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.rspc-emoji-item:hover{ border-color: rgba(185,169,255,.32); background: rgba(255,255,255,.08); }
.rspc-input:focus, .rspc-textarea:focus{
  border-color: rgba(123, 92, 255, .55);
  box-shadow: 0 0 0 3px rgba(123, 92, 255, .12);
}
.rspc-actions{ display:flex; gap:8px; align-items:center; }
.rspc-btn{
  background: var(--rspc-accent);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  white-space:nowrap;
}
.rspc-btn:disabled{ opacity: .7; cursor: not-allowed; }
.rspc-btn--ghost{
  background: transparent;
  border: 1px solid rgba(123, 92, 255, .45);
  color: var(--rspc-text);
}
.rspc-btn--small{ padding: 7px 12px; font-size: 13px; }
.rspc-hint{ color: var(--rspc-muted); font-size: 13px; }
.rspc-hint--err{ color: #ff8a8a; }
.rspc-note{ margin-top: 8px; color: var(--rspc-muted); font-size: 13px; }

.rspc-compose__extras{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }

/* Spoiler toggle (modern switch) */
.rspc-toggle{ display:inline-flex; gap:8px; align-items:center; cursor:pointer; user-select:none; }
.rspc-toggle input{ position:absolute; opacity:0; width:1px; height:1px; }
.rspc-toggle__track{
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
  transition: background .15s ease, border-color .15s ease;
}
.rspc-toggle__thumb{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition: left .15s ease, background .15s ease;
}
.rspc-toggle__label{ color: var(--rspc-muted); font-size: 13px; font-weight: 700; }
.rspc-toggle:hover .rspc-toggle__track{ border-color: rgba(185,169,255,.28); }
.rspc-toggle input:focus-visible + .rspc-toggle__track{ box-shadow: 0 0 0 3px rgba(123, 92, 255, .14); }
.rspc-toggle input:checked + .rspc-toggle__track{
  background: rgba(123, 92, 255, .28);
  border-color: rgba(123, 92, 255, .45);
}
.rspc-toggle input:checked + .rspc-toggle__track .rspc-toggle__thumb{
  left: 21px;
  background: rgba(255,255,255,.92);
}
.rspc-file{ display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.rspc-file input{ display:none; }
.rspc-file span{
  display:inline-flex;
  align-items:center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  padding: 6px 10px;
  border-radius: 12px;
  color: var(--rspc-text);
  font-size: 13px;
}
.rspc-upload-note{ color: var(--rspc-muted); font-size: 13px; }

.rspc-comment{ margin-top: 10px; }
.rspc-comment.rspc-jump-target,
.rspc-reply-item.rspc-jump-target,
.rspc-subreply.rspc-jump-target{
  box-shadow: 0 0 0 2px rgba(123,92,255,.55), 0 0 22px rgba(123,92,255,.18);
  border-color: rgba(185,169,255,.42);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.rspc-comment__head{ display:grid; grid-template-columns: 1fr auto; gap:8px; align-items:start; }
.rspc-comment__author{ font-weight: 800; }
.rspc-comment__time{ color: var(--rspc-muted); font-size: 11px; white-space:nowrap; flex:0 0 auto; padding:3px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); justify-self:end; }
.rspc-comment__body{ margin-top: 8px; line-height: 1.8; }
.rspc-comment__text, .rspc-reply-item__text, .rspc-subreply__text{
  line-height: 1.95;
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
.rspc-comment__text p, .rspc-reply-item__text p, .rspc-subreply__text p{ margin: 0 0 .85em; }
.rspc-comment__text p:last-child, .rspc-reply-item__text p:last-child, .rspc-subreply__text p:last-child{ margin-bottom: 0; }
.rspc-comment__image{ margin-bottom: 8px; }
.rspc-comment__image img{ max-width:100%; height:auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); }

.rspc-spoiler{
  position: relative;
  cursor: pointer;
}
.rspc-spoiler .rspc-comment__text,
.rspc-spoiler .rspc-reply-item__text{
  filter: blur(6px);
  transition: filter .15s ease;
}
.rspc-spoiler::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
  pointer-events:none;
  z-index: 1;
}
.rspc-spoiler-btn{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(185,169,255,.40);
  background: rgba(123, 92, 255, .18);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
}
.rspc-spoiler-btn:hover{ background: rgba(123,92,255,.26); }
.rspc-spoiler-btn:active{ transform: translate(-50%, -50%) scale(.98); }

.rspc-spoiler--revealed .rspc-comment__text,
.rspc-spoiler--revealed .rspc-reply-item__text{
  filter: none;
}
.rspc-spoiler--revealed::before{ display:none; }
.rspc-spoiler--revealed .rspc-spoiler-btn{ display:none; }
.rspc-comment__body a{ color: #b9a9ff; text-decoration: underline; }
.rspc-comment__footer{ margin-top: 8px; }
.rspc-comment__metafoot{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
}
.rspc-comment__metafoot .rspc-more{
  margin-top:0;
  text-align:initial;
}

/* Comment votes (like/dislike) */
.rspc-actions-inline{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.rspc-vote{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--rspc-text);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, transform .08s ease;
}
.rspc-vote:hover{ border-color: rgba(185,169,255,.28); background: rgba(0,0,0,.22); }
.rspc-vote:active{ transform: scale(.98); }
.rspc-vote:disabled{ opacity: .55; cursor: not-allowed; }
.rspc-vote.is-active{ border-color: rgba(123, 92, 255, .55); background: rgba(123, 92, 255, .14); }
.rspc-vote-sep{ color: rgba(255,255,255,.28); font-weight: 800; }
.rspc-vote-hint{ color: var(--rspc-muted); font-size: 12px; }
.rspc-vote-hint--active{ color:#cfc4ff; font-weight:800; }
.rspc-vote-hint--flash{ color: #fff; }
.rspc-link{
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #cdbfff;
  font-weight: 700;
}
.rspc-more{ margin-top: 10px; text-align:center; }

.rspc-reply{ margin-top: 10px; }
.rspc-hidden{ display:none; }

.rspc-replies{
  margin-top: 10px;
  border-right: 2px solid rgba(123, 92, 255, .35);
  padding-right: 10px;
}

.rspc-subreplies{
  margin-top: 8px;
  border-right: 2px solid rgba(123, 92, 255, .25);
  padding-right: 10px;
  margin-right: 4px;
}
.rspc-subreply{
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.06);
}
.rspc-subreply__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.rspc-subreply__time{ color: var(--rspc-muted); font-size: 12px; white-space:nowrap; flex:0 0 auto; padding:3px 9px; border-radius:999px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.rspc-subreply__metafoot{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
}
.rspc-subreply__body{ margin-top: 6px; line-height:1.75; }
.rspc-reply-item{
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.06);
}
.rspc-reply-item__head{ display:grid; grid-template-columns: 1fr auto; align-items:start; gap:12px; }
.rspc-reply-item__time{ color: var(--rspc-muted); font-size: 11px; white-space:nowrap; flex:0 0 auto; padding:3px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); justify-self:end; }
.rspc-reply-item__metafoot{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
}
.rspc-reply-item__body{ margin-top: 6px; line-height:1.8; }

/* User header (avatar + name + reply-to) */
.rspc-user{ display:flex; align-items:center; gap:8px; min-width:0; }
.rspc-user__identity{ display:flex; flex-direction:column; align-items:center; gap:6px; flex:0 0 auto; }
.rspc-user__meta{ min-width:0; flex:1 1 auto; }
.rspc-user__top{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; }
.rspc-user__level{ display:flex; align-items:center; justify-content:center; width:100%; }
.rspc-user__name{ font-weight: 900; letter-spacing: .1px; min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rspc-user__replyto{ color: var(--rspc-muted); font-size: 12px; display:inline-flex; align-items:center; gap:6px; }

/* User box (avatar + name container) */
.rspc-userbox{
  padding: 6px 10px;
  max-width: min(62%, 520px);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 1px 0 rgba(0,0,0,.12) inset;
  min-width:0;
}
.rspc-userbox--reply{ padding: 5px 9px; border-radius: 13px; max-width: min(72%, 560px); }
.rspc-userbox--sub{ padding: 4px 8px; border-radius: 12px; max-width: min(74%, 560px); }
.rspc-reply-item__footer,
.rspc-subreply__footer{
  margin-top:8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.rspc-badges{ display:inline-flex; align-items:center; gap:6px; }
.rspc-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(185,169,255,.28);
  background: rgba(123,92,255,.10);
  color: rgba(255,255,255,.92);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

/* Badge variants */
.rspc-badge--vip{ background: rgba(255, 204, 102, .14); border-color: rgba(255, 204, 102, .38); color: rgba(255, 230, 170, .95); }
.rspc-badge--translator{ background: rgba(120, 190, 255, .12); border-color: rgba(120, 190, 255, .32); color: rgba(210, 235, 255, .95); }
.rspc-badge--mod{ background: rgba(255, 90, 90, .12); border-color: rgba(255, 90, 90, .32); color: rgba(255, 210, 210, .95); }
.rspc-badge--owner{ background: rgba(170, 120, 255, .16); border-color: rgba(170, 120, 255, .40); color: rgba(235, 220, 255, .98); }
.rspc-badge--member{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.78); }
.rspc-badge--level{ font-size:10px; padding:2px 7px; white-space:nowrap; max-width:100%; }
.rspc-level-1{ background:rgba(146,166,199,.16); border-color:rgba(146,166,199,.34); color:#e7f0ff; }
.rspc-level-2{ background:rgba(86,196,173,.16); border-color:rgba(86,196,173,.36); color:#ddfff8; }
.rspc-level-3{ background:rgba(239,181,72,.16); border-color:rgba(239,181,72,.38); color:#fff2cd; }
.rspc-level-4{ background:rgba(224,102,167,.16); border-color:rgba(224,102,167,.38); color:#ffe0f1; }
.rspc-level-5{
  background:linear-gradient(135deg, rgba(255,255,245,.28), rgba(255,223,138,.22));
  border-color:rgba(255,214,92,.58);
  color:#fff8df;
  box-shadow:0 0 16px rgba(255,214,92,.20);
}
.rspc-badge--level.rspc-level-5::before{
  content:"👑";
  margin-inline-end:4px;
}

.rspc-avatar{ width:40px; height:40px; border-radius: 999px; overflow:hidden; flex:0 0 auto; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); display:flex; align-items:center; justify-content:center; }
.rspc-avatar__img{ width:100%; height:100%; object-fit:cover; display:block; }
.rspc-avatar--guest{ background: rgba(123,92,255,.12); border-color: rgba(185,169,255,.22); }
.rspc-avatar__guest{ font-weight:900; font-size: 13px; color: rgba(255,255,255,.92); }

.rspc-user--sub .rspc-avatar{ width:30px; height:30px; }
.rspc-user--sub .rspc-avatar__guest{ font-size: 12px; }

.rspc-spoiler:hover::before{ border-color: rgba(185,169,255,.22); }



/* Attached image preview (before submit) */
.rspc-attach{display:flex;align-items:center;gap:8px;margin-top:10px;padding:10px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);border-radius:14px}
.rspc-attach__thumb{width:56px !important;height:56px !important;border-radius:12px;overflow:hidden;flex:0 0 auto;background:rgba(0,0,0,.25)}
.rspc-attach__thumb img{width:100% !important;height:100% !important;object-fit:cover;display:block}
.rspc-attach__meta{min-width:0;flex:1}
.rspc-attach__name{font-size:12px;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rspc-attach__sub{font-size:11px;opacity:.65;margin-top:2px}
.rspc-attach__remove{flex:0 0 auto;border:0;background:rgba(255,255,255,.06);color:inherit;width:32px;height:32px;border-radius:10px;cursor:pointer;line-height:32px;font-size:18px}
.rspc-attach__remove:hover{background:rgba(255,255,255,.10)}

/* Comment images: keep layout stable (avoid giant images taking the whole screen) */
.rspc-comment__images{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.rspc-comment__images--multi{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
.rspc-comment__image{ margin-top: 10px; margin-bottom: 6px; }
.rspc-comment__image img{
  width: min(420px, 100%);
  max-width: 100%;
  max-height: 360px;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  object-fit: contain;
}
.rspc-comment__images--multi .rspc-comment__image{
  margin:0;
}
.rspc-comment__images--multi .rspc-comment__image img{
  width:100%;
  max-height:280px;
}

/* @mention for replies */
.rspc-mention{
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(185,169,255,.30);
  background: rgba(123,92,255,.12);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 800;
  margin-inline-end: 6px;
}

/* Replying line (rendered at the start of reply body for clean mobile layout) */
.rspc-replying-line{
  display:flex;
  align-items:center;
  gap:8px;
  margin: 6px 0 8px;
  font-size: 12px;
  color: rgba(255,255,255,.70);
}
.rspc-replying-line--sub{ font-size: 11px; margin: 4px 0 6px; }

/* Footer right actions (thread toggle + reply) */
.rspc-footer__right{ display:flex; align-items:center; gap:12px; }

/* Mobile polish: avoid overlaps (name/mention/time) */
@media (max-width: 560px){
  .rspc-comment__head,
  .rspc-reply-item__head{ gap:8px; }

  .rspc-userbox{ max-width: 85%; }
  .rspc-userbox--reply{ max-width: 86%; }
  .rspc-userbox--sub{ max-width: 88%; }

  .rspc-comment__time,
  .rspc-reply-item__time,
  .rspc-subreply__time{ font-size:10px; padding:2px 7px; white-space:nowrap; }

  .rspc-user__top{ flex-direction:column; align-items:flex-start; gap:4px; }
  .rspc-user__name{
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .rspc-footer__right{ gap:8px; }
  .rspc-comment__metafoot{
    justify-content:space-between;
    align-items:center;
  }
  .rspc-mention{ max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Compact vote bars for replies */
.rspc-actions-inline--compact .rspc-vote{ padding: 4px 8px; font-size: 12px; border-radius: 10px; }
.rspc-actions-inline--compact .rspc-vote-count{ font-size: 12px; }
.rspc-actions-inline--tiny .rspc-vote{ padding: 3px 7px; font-size: 11px; }

/* Optional: hide images behind a small reveal button */
.rspc-imgwrap{position:relative;margin-bottom:8px}
.rspc-imgbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(185,169,255,.32);
  background: rgba(123, 92, 255, .14);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.rspc-imgbtn:hover{ background: rgba(123, 92, 255, .20); }
.rspc-imgbtn:active{ transform: scale(.98); }
.rspc-imgwrap--hidden img{ display:none; }
.rspc-imgwrap--revealed img{ display:block; }


/* Reply avatars a bit smaller */
.rspc-userbox--reply .rspc-avatar{ width:34px; height:34px; }


/* Role highlights (very light, keep modern) */
.rspc-comment--vip{ border-color: rgba(255, 204, 102, .22) !important; box-shadow: 0 0 0 1px rgba(255, 204, 102, .10) inset; background: rgba(255, 204, 102, .04); }
.rspc-comment--vip .rspc-userbox{ border-color: rgba(255, 204, 102, .22); background: rgba(255, 204, 102, .05); }
.rspc-comment--translator{ border-color: rgba(120, 190, 255, .22) !important; box-shadow: 0 0 0 1px rgba(120, 190, 255, .10) inset; background: rgba(120, 190, 255, .035); }
.rspc-comment--translator .rspc-userbox{ border-color: rgba(120, 190, 255, .22); background: rgba(120, 190, 255, .05); }
.rspc-comment--mod{ border-color: rgba(255, 90, 90, .22) !important; box-shadow: 0 0 0 1px rgba(255, 90, 90, .10) inset; background: rgba(255, 90, 90, .03); }
.rspc-comment--mod .rspc-userbox{ border-color: rgba(255, 90, 90, .22); background: rgba(255, 90, 90, .05); }
.rspc-comment--owner{ border-color: rgba(170, 120, 255, .26) !important; box-shadow: 0 0 0 1px rgba(170, 120, 255, .12) inset; background: rgba(170, 120, 255, .045); }
.rspc-comment--owner .rspc-userbox{ border-color: rgba(170, 120, 255, .26); background: rgba(170, 120, 255, .06); }


.rspc-action-sep{ display:inline-block; margin: 0 10px; width:1px; height:14px; background: rgba(255,255,255,.18); vertical-align: middle; }

/* More menu (three dots) */
.rspc-head-right{ display:flex; align-items:center; gap:8px; }
.rspc-more{ position:relative; }
.rspc-more__btn{
  width:30px;height:30px;border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.85);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
}
.rspc-more__btn:hover{ background: rgba(255,255,255,.06); border-color: rgba(185,169,255,.22); }
.rspc-more__menu{
  position:absolute;
  top: 34px;
  right: 0;
  min-width: 160px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(12, 13, 30, .96);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 35px rgba(0,0,0,.35);
  z-index: 50;
  display:none;
}

/* RTL: open the menu inward (to the right) so it doesn't get clipped */
[dir="rtl"] .rspc-more__menu,
body.rtl .rspc-more__menu{
  left: 0;
  right: auto;
}

.rspc-edit{ margin-top: 6px; }
.rspc-edit__actions{ display:flex; gap:8px; margin-top: 8px; }
.rspc-more.is-open .rspc-more__menu{ display:block; }
.rspc-more__item{
  width:100%;
  display:flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 12px;
  border:0;
  background: transparent;
  color: rgba(255,255,255,.92);
  cursor:pointer;
  font-weight:700;
  text-align:left;
}

/* RTL: menu items should align to the right */
.rspc-wrap.rspc-rtl .rspc-more__item{
  text-align: right;
}
.rspc-more__item:hover{ background: rgba(255,255,255,.06); }
.rspc-more__item--danger{ color: rgba(255, 120, 120, .95); }
.rspc-more__item--danger:hover{ background: rgba(255, 90, 90, .10); }

/* Stickers */
.rspc-sticker-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  font-weight:800;
}
.rspc-sticker-btn:hover{ background: rgba(255,255,255,.06); border-color: rgba(185,169,255,.22); }

.rspc-sticker-preview{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.rspc-sticker-preview img{ width:40px; height:40px; object-fit:contain; }
.rspc-sticker-remove{
  width:26px;height:26px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.85);
  cursor:pointer;
}
.rspc-sticker-remove:hover{ background: rgba(255,90,90,.12); border-color: rgba(255,120,120,.35); }

.rspc-sticker-picker{
  position:relative;
  width:100%;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,13,30,.78);
  margin-top: 10px;
  display:none;
}
.rspc-sticker-picker.is-open{ display:block; }
.rspc-sticker-tabs{ display:flex; gap:8px; margin-bottom:10px; }
.rspc-sticker-tab{
  padding:7px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.9);
  cursor:pointer;
  font-weight:800;
}
.rspc-sticker-tab.is-active{ border-color: rgba(185,169,255,.35); background: rgba(185,169,255,.10); }
.rspc-sticker-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:6px;
}
.rspc-sticker-item{
  width:100%;
  aspect-ratio: 1 / 1;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.rspc-sticker-item:hover{ background: rgba(255,255,255,.06); border-color: rgba(185,169,255,.22); }
.rspc-sticker-item img{ width: 84%; height: 84%; object-fit: contain; }
.rspc-sticker-item.is-locked{ cursor: not-allowed; }
.rspc-sticker-item.is-locked img{ filter: none; opacity: .95; }
.rspc-sticker-lock{
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  border-radius: 10px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}
.rspc-stickers-empty{ padding: 10px; color: rgba(255,255,255,.65); }
.rspc-stickers-hint{ margin-top: 8px; color: rgba(255,120,120,.92); font-weight:700; }

.rspc-comment__sticker img{ width: 160px; max-width: 100%; height: auto; object-fit: contain; }

@media (max-width: 520px){
  .rspc-comment__sticker img{ width: 150px; }

  .rspc-sticker-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rspc-sticker-preview img{ width:44px; height:44px; }
  
}

.rspc-sticker-btn{ letter-spacing:.2px; }
.rspc-sticker-btn::before{
  content:'';
  display:inline-flex;
  width:22px;
  height:22px;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background: rgba(185,169,255,.10);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a2 2 0 0 1 2 2v7a1 1 0 0 1-1 1H8a3 3 0 0 0-3 3v1H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h3Zm1 12h10a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-6Zm2.5 2.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2Zm5 0a1 1 0 1 0 0 2a1 1 0 0 0 0-2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a2 2 0 0 1 2 2v7a1 1 0 0 1-1 1H8a3 3 0 0 0-3 3v1H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h3Zm1 12h10a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-6Zm2.5 2.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2Zm5 0a1 1 0 1 0 0 2a1 1 0 0 0 0-2Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:16px 16px;
  mask-size:16px 16px;
  background-color: rgba(185,169,255,.95);
 }
.rspc-sticker-btn--main::before{ background-color: rgba(185,169,255,1); }

.rspc-vipupsell{ color: rgba(185,169,255,1); text-decoration: underline; font-weight:800; }


/* Stickers button */
.rspc-sticker-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(140,120,255,.35);
  background:rgba(20,22,42,.65);
  color:#e9e6ff;
  font-weight:600;
  line-height:1;
}
.rspc-sticker-btn:hover{ border-color:rgba(140,120,255,.6); background:rgba(20,22,42,.78); }
.rspc-sticker-btn:before{
  content:'';
  width:16px; height:16px;
  display:inline-block;
  background:linear-gradient(180deg,#c7b9ff,#7c5cff);
  -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M7 2h10a3 3 0 0 1 3 3v9a8 8 0 0 1-8 8H7a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3Zm0 2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h5a6 6 0 0 0 6-6V5a1 1 0 0 0-1-1H7Zm2 4h6v2H9V8Zm0 4h6v2H9v-2Z"/></svg>') center/contain no-repeat;
          mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M7 2h10a3 3 0 0 1 3 3v9a8 8 0 0 1-8 8H7a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3Zm0 2a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h5a6 6 0 0 0 6-6V5a1 1 0 0 0-1-1H7Zm2 4h6v2H9V8Zm0 4h6v2H9v-2Z"/></svg>') center/contain no-repeat;
}
/* Locked VIP stickers */
.rspc-sticker-item{ position:relative; }
.rspc-sticker-item.is-locked img{ filter: none; opacity:.95; }
.rspc-sticker-item.is-locked:after{
  content:'';
  position:absolute; inset:0;
  border-radius:12px;
  background:linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.35));
}
.rspc-sticker-lock{
  position:absolute; right:8px; top:8px;
  font-size:14px; line-height:1;
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  padding:2px 6px;
}
.rspc-stickers-hint{
  margin-top:10px;
  font-size:13px;
  color:#c9c2ff;
}
.rspc-vipupsell{
  color:#ffe08a;
  text-decoration:underline;
}


/* Section heading */
.rspc-compose__section{font-size:20px;font-weight:800;margin:0 0 10px 0;letter-spacing:.2px}

.rspc-vip-promo{margin-top:10px;padding:10px 12px;border:1px solid rgba(108,92,231,.35);border-radius:14px;background:rgba(108,92,231,.10);font-size:13px}
.rspc-vip-promo a{color:inherit;text-decoration:none;font-weight:700}
.rspc-vip-promo a:hover{text-decoration:underline}

/* My comments profile page */
.rspc-myc{ display:flex; flex-direction:column; gap:12px; }
.rspc-myc-title{ margin:0; font-size:20px; font-weight:900; }
.rspc-myc-sub{ margin:6px 0 0; color:var(--rspc-muted); font-size:13px; line-height:1.7; }
.rspc-myc-tabs{ display:flex; gap:10px; overflow:auto; padding-bottom:2px; scrollbar-width:none; }
.rspc-myc-tabs::-webkit-scrollbar{ display:none; }
.rspc-myc-tab{
  flex:1 0 0;
  min-width:140px;
  border:1px solid rgba(132,160,255,.22);
  border-radius:14px;
  background:rgba(18,21,39,.88);
  color:#eff3ff;
  font-size:13px;
  font-weight:800;
  padding:12px 14px;
  transition:transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.rspc-myc-tab:hover{
  transform:translateY(-1px);
  border-color:rgba(126,182,255,.42);
  background:rgba(25,30,54,.94);
}
.rspc-myc-tab.is-active{
  border-color:rgba(150,206,255,.32);
  background:linear-gradient(135deg, rgba(70,123,255,.92), rgba(106,86,245,.90));
  box-shadow:0 12px 22px rgba(18,24,48,.28);
}
.rspc-myc-panel{ display:none; flex-direction:column; gap:12px; }
.rspc-myc-panel.is-active{ display:flex; }
.rspc-myc-panel.is-loading{ opacity:.72; pointer-events:none; transition:opacity .15s ease; }
.rspc-myc-accountline{ margin-top:8px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.rspc-myc-accountitem{ font-size:13px; font-weight:700; color:var(--rspc-text); }
.rspc-myc-notice{ margin-top:10px; padding:10px 12px; border-radius:12px; font-size:13px; font-weight:700; }
.rspc-myc-notice.is-ok{ border:1px solid rgba(89,199,136,.35); background:rgba(89,199,136,.12); }
.rspc-myc-notice.is-err{ border:1px solid rgba(255,117,117,.35); background:rgba(255,117,117,.12); }
.rspc-vip-promo--inline{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.rspc-vip-promo--inline a{ white-space:nowrap; }
.rspc-myc-profile{ margin-top:10px; display:flex; flex-direction:column; gap:10px; }
.rspc-myc-profile__grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
.rspc-myc-field{ display:flex; flex-direction:column; gap:6px; font-size:12px; color:var(--rspc-muted); font-weight:700; }
.rspc-myc-subnote{ font-size:12px; color:var(--rspc-muted); line-height:1.6; }
.rspc-myc-section-title{ margin:0; font-size:16px; font-weight:900; }
.rspc-myc-statsbox{ display:flex; flex-direction:column; gap:10px; }
.rspc-myc-stats{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
.rspc-myc-stat{ display:flex; flex-direction:column; gap:4px; }
.rspc-myc-stat--tile{ border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:10px 12px; background:rgba(255,255,255,.02); }
.rspc-myc-stat__label{ font-size:12px; color:var(--rspc-muted); font-weight:700; }
.rspc-myc-stat__value{ font-size:22px; font-weight:900; line-height:1.1; }
.rspc-myc-levels{
  display:flex;
  flex-direction:column;
  gap:12px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(70,96,190,.20), rgba(10,12,22,.55) 55%, rgba(7,8,14,.85) 100%);
  border:1px solid rgba(129,162,255,.20);
}
.rspc-myc-levels__hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
}
.rspc-myc-levels__avatar-ring{
  width:88px;
  height:88px;
  border-radius:999px;
  padding:4px;
  background:linear-gradient(135deg, rgba(87,173,255,.95), rgba(163,117,255,.95));
  box-shadow:0 0 0 4px rgba(108,92,231,.15), 0 10px 24px rgba(0,0,0,.28);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.rspc-myc-levels__avatar-ring .rspc-avatar{
  width:100% !important;
  height:100% !important;
  border-radius:999px;
  overflow:hidden;
}
.rspc-myc-levels__current{
  font-size:18px;
  font-weight:900;
  letter-spacing:.2px;
  color:#f0f4ff;
}
.rspc-myc-levels__progress-wrap{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.rspc-myc-levels__progress-text{
  font-size:13px;
  font-weight:800;
  color:#d9e7ff;
  text-align:center;
}
.rspc-myc-levels__bar{
  width:100%;
  height:14px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(149,181,255,.22);
  overflow:hidden;
  position:relative;
}
.rspc-myc-levels__bar > span{
  display:block;
  height:100%;
  background:linear-gradient(90deg, rgba(92,183,255,.95), rgba(147,110,255,.95));
  border-radius:999px;
  box-shadow:0 0 14px rgba(116,167,255,.45);
}
.rspc-myc-levels__next{ font-size:13px; color:var(--rspc-muted); text-align:center; }
.rspc-myc-levels__xpgrid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px; }
.rspc-myc-levels__xpcard{
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:12px;
  background:rgba(255,255,255,.04);
  display:flex;
  flex-direction:column;
  gap:6px;
  text-align:center;
}
.rspc-myc-levels__xpcard--total{
  border-color:rgba(130,197,255,.34);
  background:linear-gradient(180deg, rgba(69,117,255,.16), rgba(255,255,255,.04));
}
.rspc-myc-levels__xpicon{ font-size:18px; line-height:1; }
.rspc-myc-levels__xplabel{ font-size:12px; color:#dbe7ff; font-weight:700; }
.rspc-myc-levels__xpvalue{ font-size:24px; font-weight:900; line-height:1.1; color:#fff; }
.rspc-myc-levels__list{ display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:9px; }
.rspc-myc-level-item{
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:10px 8px;
  background:rgba(255,255,255,.03);
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:12px;
  text-align:center;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.rspc-myc-level-item small{ font-size:11px; font-weight:800; opacity:.95; }
.rspc-myc-level-item strong{ font-size:13px; }
.rspc-myc-level-item:hover{
  transform:translateY(-2px);
  border-color:rgba(121,179,255,.48);
  background:rgba(90,146,255,.12);
  box-shadow:0 10px 22px rgba(0,0,0,.20);
}
.rspc-myc-level-item.is-done{
  border-color:rgba(163,117,255,.52);
  background:rgba(163,117,255,.18);
}
.rspc-myc-level-item.is-current{
  box-shadow:0 0 0 1px rgba(112,195,255,.42) inset, 0 0 16px rgba(90,146,255,.24);
}
.rspc-myc-level-item.rspc-level-1{ background:rgba(146,166,199,.09); border-color:rgba(146,166,199,.24); }
.rspc-myc-level-item.rspc-level-2{ background:rgba(86,196,173,.09); border-color:rgba(86,196,173,.24); }
.rspc-myc-level-item.rspc-level-3{ background:rgba(239,181,72,.09); border-color:rgba(239,181,72,.24); }
.rspc-myc-level-item.rspc-level-4{ background:rgba(224,102,167,.09); border-color:rgba(224,102,167,.24); }
.rspc-myc-level-item.rspc-level-5{
  background:linear-gradient(180deg, rgba(255,255,245,.16), rgba(255,223,138,.10));
  border-color:rgba(255,214,92,.36);
  box-shadow:0 10px 26px rgba(255,214,92,.12);
}
.rspc-myc-level-item.rspc-level-5 small::before{ content:"👑 "; }
.rspc-myc-levels__howbox{
  border:1px solid rgba(153,174,255,.26);
  border-radius:12px;
  padding:10px 12px;
  background:rgba(255,255,255,.04);
}
.rspc-myc-levels__how-title{
  font-size:13px;
  font-weight:900;
  margin-bottom:6px;
}
.rspc-myc-levels__howchips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.rspc-myc-levels__howchips span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  padding:7px 10px;
  background:rgba(255,255,255,.04);
  font-size:12px;
  font-weight:700;
  color:#e8ecff;
}
.rspc-myc-levels__breakdown{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; font-size:12px; color:var(--rspc-muted); font-weight:700; }
.rspc-myc-levels__cache-note{ font-size:11px; color:var(--rspc-muted); opacity:.9; }
.rspc-myc-vipnote{
  display:flex;
  flex-direction:column;
  gap:10px;
  border:1px solid rgba(137,124,255,.30);
  background:linear-gradient(180deg, rgba(84,91,255,.12), rgba(255,255,255,.03));
}
.rspc-myc-vipnote__title{ font-size:15px; font-weight:900; color:#f4f6ff; }
.rspc-myc-vipnote__text{ margin:0; color:var(--rspc-muted); font-size:13px; line-height:1.9; }
.rspc-myc-tablebox{ padding:0; overflow:hidden; }
.rspc-myc-tablewrap{ overflow:auto; }
.rspc-myc-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:760px;
}
.rspc-myc-table thead th{
  position:sticky;
  top:0;
  z-index:1;
  background:rgba(10,13,26,.95);
  color:#cfd8ff;
  font-size:12px;
  font-weight:900;
  padding:14px 12px;
  text-align:right;
  border-bottom:1px solid rgba(255,255,255,.08);
  white-space:nowrap;
}
.rspc-myc-table tbody td{
  padding:14px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
  vertical-align:top;
}
.rspc-myc-row{
  background:rgba(255,255,255,.02);
  transition:background .15s ease;
}
.rspc-myc-row:hover{ background:rgba(96,115,255,.06); }
.rspc-myc-row__source{ min-width:120px; font-weight:800; white-space:nowrap; }
.rspc-myc-row__text{ min-width:280px; line-height:1.9; }
.rspc-myc-row__meta{
  min-width:120px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}
.rspc-myc-row__likes{ font-size:12px; color:var(--rspc-muted); font-weight:700; }
.rspc-myc-row__time{ min-width:110px; white-space:nowrap; font-size:12px; color:var(--rspc-muted); }
.rspc-myc-row__actions{
  min-width:180px;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.rspc-myc-list{ display:flex; flex-direction:column; gap:10px; }
.rspc-myc-item__head{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:8px; }
.rspc-myc-item__meta{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.rspc-myc-item__time{ font-size:12px; color:var(--rspc-muted); }
.rspc-myc-item__status{ font-size:11px; padding:3px 8px; border-radius:999px; border:1px solid rgba(89,199,136,.30); background:rgba(89,199,136,.12); }
.rspc-myc-item__status.is-pending{ border-color:rgba(255,194,92,.35); background:rgba(255,194,92,.12); }
.rspc-myc-item__likes{ font-size:12px; color:var(--rspc-muted); font-weight:700; }
.rspc-myc-item__actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.rspc-myc-item__text{ line-height:1.9; }
.rspc-myc-empty{ color:var(--rspc-muted); text-align:right; }
.rspc-myc-pagination{ display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; }
.rspc-myc-pagination__info{ font-size:13px; color:var(--rspc-muted); font-weight:700; }

@media (max-width: 860px){
  .rspc-myc-tab{ min-width:128px; }
  .rspc-myc-levels__xpgrid{ grid-template-columns:1fr; }
  .rspc-myc-levels__list{ grid-template-columns:repeat(3, minmax(0,1fr)); }
  .rspc-myc-profile__grid{ grid-template-columns:1fr; }
  .rspc-myc-table{ min-width:680px; }
}

@media (max-width: 520px){
  .rspc-myc-accountline{ flex-direction:column; align-items:flex-start; gap:6px; }
  .rspc-myc-stats{ grid-template-columns:1fr; }
  .rspc-myc-levels__avatar-ring{ width:78px; height:78px; }
  .rspc-myc-levels__current{ font-size:16px; }
  .rspc-myc-levels__progress-text{ text-align:right; }
  .rspc-myc-levels__list{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .rspc-myc-item__head{ flex-direction:column; align-items:stretch; }
  .rspc-myc-item__actions{ justify-content:space-between; }
  .rspc-myc-tablewrap{ overflow:visible; }
  .rspc-myc-table,
  .rspc-myc-table thead,
  .rspc-myc-table tbody,
  .rspc-myc-table tr,
  .rspc-myc-table th,
  .rspc-myc-table td{ display:block; width:100%; min-width:0; }
  .rspc-myc-table thead{ display:none; }
  .rspc-myc-row{
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    padding:10px;
    margin-bottom:10px;
    background:rgba(255,255,255,.03);
  }
  .rspc-myc-table tbody td{
    border:0;
    padding:8px 0;
  }
  .rspc-myc-table tbody td::before{
    content:attr(data-label);
    display:block;
    margin-bottom:5px;
    color:#cfd8ff;
    font-size:11px;
    font-weight:900;
  }
  .rspc-myc-row__source,
  .rspc-myc-row__text,
  .rspc-myc-row__meta,
  .rspc-myc-row__time,
  .rspc-myc-row__actions{ min-width:0; }
  .rspc-myc-row__source,
  .rspc-myc-row__text{
    padding:10px 12px !important;
    border-radius:12px;
    background:rgba(255,255,255,.02);
  }
  .rspc-myc-row__meta{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding-top:4px !important;
  }
  .rspc-myc-row__actions{
    justify-content:flex-start;
    gap:10px;
    padding-top:2px !important;
  }
  .rspc-myc-row__actions .rspc-more__edit{ display:none; }
  .rspc-myc-row__actions .rspc-btn{ min-width:74px; }
}


/* Read more */
.rspc-comment.is-expanded .rspc-comment__text{display:block;-webkit-line-clamp:unset;overflow:visible}


/* More/Less (50-word) */
.rspc-textmore{ position: relative; line-height: 1.95; }
.rspc-textmore__pre, .rspc-textmore__more{ display:block; }
.rspc-textmore__pre, .rspc-textmore__more{ direction: rtl; text-align: right; unicode-bidi: plaintext; }
.rspc-moreless{
  margin-top:8px;
  background:transparent;
  border:0;
  padding:0;
  color:rgba(201,194,255,.95);
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}
.rspc-moreless:hover{ text-decoration: underline; }

/* Thread placeholders */
.rspc-thread-loading, .rspc-thread-empty{
  padding:10px 12px;
  font-size:13px;
  color:rgba(255,255,255,.70);
}

/* Small divider between actions */
.rspc-divider{
  display:inline-block;
  width:1px;
  height:14px;
  background:rgba(255,255,255,.18);
  margin:0 10px;
  vertical-align:middle;
}


/* Performance: reduce heavy effects on mobile */
@media (max-width: 600px){
  .rspc-spoiler-btn{ box-shadow: none; }
  .rspc-sticker-picker{ box-shadow: none; }
}


/* Performance tweaks (especially on mobile) */
.rspc-list, .rspc-item {
  content-visibility: auto;
  contain: content;
  contain-intrinsic-size: 400px;
}

@media (max-width: 768px){
  .rspc-wrap *{
    transition: none !important;
  }
  .rspc-item, .rspc-box, .rspc-btn, .rspc-reactions, .rspc-form{
    box-shadow: none !important;
    filter: none !important;
  }
}

/* Collapsed comments control (reactions stay visible) */
.rspc-togglebar{ margin: 12px 0; }
.rspc-toggle-comments{ width: 100%; justify-content: center; }
.rspc-comments-panel{ margin-top: 12px; }

/* Banner slot: responsive and lightweight */
.rspc-banner-slot{ margin: 12px 0; }
.rspc-banner{ width:100%; display:block; }
.rspc-banner iframe,
.rspc-banner img,
.rspc-banner ins{ max-width:100%; width:100%; height:auto; }


/* Panel toolbar (sort) */
.rspc-panelbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  margin:10px 0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(255,255,255,.03);
}
.rspc-sort-label{ font-size:12px; opacity:.85; margin-inline-end:8px; }
.rspc-sort{
  appearance:auto;
  background:rgba(10,10,18,.55);
  color:inherit;
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  padding:6px 10px;
}

/* Credit line */
.rspc-credit{
  margin:10px 2px 0;
  font-size:12px;
  opacity:.85;
  text-align:center;
}
.rspc-credit a{ text-decoration:underline; }

/* Pinned badge */
.rspc-pin-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-inline-start:6px;
  font-size:14px;
  opacity:.95;
}


/* Notifications */
.rspc-compose__actions{margin-inline-start:0; position:relative;}
.rspc-notify-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:46px;
  border:1px solid rgba(138,92,255,.35);
  background:rgba(255,255,255,.02);
  color:#fff;
  border-radius:14px;
  padding:10px 14px;
  cursor:pointer;
}
.rspc-notify-btn__count{display:none; min-width:20px; height:20px; line-height:20px; text-align:center; border-radius:999px; background:#8a5cff; color:#fff; font-size:12px; padding:0 6px;}
.rspc-notify-btn__count.is-visible{display:inline-block;}
.rspc-notify-panel{position:absolute; top:calc(100% + 8px); inset-inline-end:0; width:min(360px, 88vw); background:#12131d; border:1px solid rgba(138,92,255,.28); border-radius:16px; padding:12px; box-shadow:0 18px 40px rgba(0,0,0,.25); z-index:45;}
.rspc-notify-panel__head{font-weight:700; margin-bottom:8px; text-align:right;}
.rspc-notify-item{display:flex; align-items:flex-start; gap:10px; text-decoration:none; color:inherit; padding:10px 8px; border-radius:12px;}
.rspc-notify-item:hover{background:rgba(255,255,255,.03);}
.rspc-notify-item__icon{width:26px; height:26px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; background:rgba(138,92,255,.15); color:#b899ff; flex:0 0 26px;}
.rspc-notify-item__content{display:flex; flex-direction:column; gap:4px; min-width:0; flex:1; text-align:right;}
.rspc-notify-item__title,.rspc-notify-item__snippet,.rspc-notify-item__time,.rspc-notify-empty,.rspc-notify-loading{text-align:right;}
.rspc-notify-item__snippet{opacity:.8; font-size:13px; line-height:1.6;}
.rspc-notify-item__time{font-size:12px; opacity:.7; white-space:nowrap;}
.rspc-notify-empty,.rspc-notify-loading{padding:10px 6px; opacity:.85;}
.rspc-wrap.rspc-rtl .rspc-notify-panel,.rspc-wrap.rspc-rtl .rspc-notify-item,.rspc-wrap.rspc-rtl .rspc-notify-item__content,.rspc-wrap.rspc-rtl .rspc-notify-panel__head{direction:rtl;}


.rspc-notify-panel__head{display:flex; align-items:center; justify-content:space-between; gap:10px;}
.rspc-notify-panel__clear{background:transparent; border:0; color:rgba(201,194,255,.92); cursor:pointer; font-size:12px; font-weight:700; padding:0;}
.rspc-notify-panel__clear:hover{text-decoration:underline;}
.rspc-notify-panel__body{max-height:min(60vh, 420px); overflow:auto;}
.rspc-notify-panel__foot{padding-top:8px; text-align:center;}
.rspc-btn--sm{padding:7px 12px; font-size:13px; min-height:auto;}
.rspc-notify-item + .rspc-notify-item{border-top:1px solid rgba(255,255,255,.05);}
.rspc-notify-tabs{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
  margin-bottom:10px;
}
.rspc-notify-tab{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:#fff;
  border-radius:12px;
  padding:9px 10px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}
.rspc-notify-tab.is-active{
  border-color:rgba(138,92,255,.45);
  background:rgba(138,92,255,.16);
  color:#f6f1ff;
}
.rspc-notify-pane{display:none;}
.rspc-notify-pane.is-active{display:block;}
.rspc-notify-empty--pane{
  border:1px dashed rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.02);
}

@media (max-width: 560px){
  .rspc-compose__head{ gap:12px; }
  .rspc-compose__profileline{ gap:12px; padding-top:8px; }
  .rspc-compose__avatar img{ width:46px; height:46px; }
  .rspc-compose__name{ font-size:15px; max-width:100%; }
  .rspc-compose__toolbar{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  .rspc-levels-btn{
    grid-column:auto !important;
  }
  .rspc-compose__actions{
    width:100% !important;
    display:block !important;
  }
  .rspc-compose__toolbar > .rspc-account-btn,
  .rspc-compose__toolbar > .rspc-compose__actions{
    width:100% !important;
    min-width:0 !important;
  }
  .rspc-account-btn,
  .rspc-notify-btn{
    width:100% !important;
    min-height:46px !important;
    padding:10px 12px !important;
    font-size:12px !important;
    justify-content:center !important;
    box-sizing:border-box !important;
  }
  .rspc-account-btn__text,
  .rspc-notify-btn__text{
    line-height:1.45;
    word-spacing:1px;
  }
  #rspc-notify-btn{
    width:100% !important;
  }
  #rspc-notify-panel{
    position:fixed !important;
    top:88px !important;
    left:12px !important;
    right:12px !important;
    inset-inline-start:12px !important;
    inset-inline-end:12px !important;
    width:auto !important;
    max-width:none !important;
    max-height:calc(100vh - 112px) !important;
    z-index:120 !important;
    box-sizing:border-box !important;
  }
  #rspc-notify-panel .rspc-notify-panel__body{
    max-height:calc(100vh - 190px) !important;
  }
  .rspc-comment__images--multi{
    grid-template-columns:1fr;
  }
}
