/* सदस्य संवाद — Facebook-inspired, BSCKF theme */
.hidden { display: none !important; }
.arena-hero {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: #fff;
  padding: 36px 0 30px;
  text-align: center;
}
.arena-hero-tag { font-size: .9rem; opacity: .9; margin-bottom: 6px; }
.arena-hero h1 {
  font-family: 'Rozha One', serif;
  color: var(--gold-light);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 8px;
}
.arena-hero p {
  color: rgba(255,255,255,.88);
  max-width: 640px;
  margin: 0 auto;
  font-size: .95rem;
}

.arena-wrap { padding: 24px 0 50px; background: var(--cream-deep, #faf6f0); }

.arena-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: start;
}
.arena-sidebar { position: sticky; top: 88px; }
.arena-side-card {
  background: #fff;
  border: 1px solid #efdcbf;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(107,15,26,.05);
}
.arena-side-card h4 {
  font-family: 'Rozha One', serif;
  color: var(--maroon);
  margin: 0 0 10px;
  font-size: 1rem;
}
.arena-side-muted { font-size: .86rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.arena-side-links { display: flex; flex-direction: column; gap: 8px; }
.arena-side-links a {
  color: var(--maroon);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .2s;
}
.arena-side-links a:hover { background: var(--cream-deep); }
.arena-side-tips ul {
  margin: 0;
  padding-left: 18px;
  font-size: .84rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.arena-profile-mini {
  text-align: center;
}
.arena-profile-mini-av {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(107,15,26,.15);
}
.arena-profile-mini-av img { width: 100%; height: 100%; object-fit: cover; }
.arena-profile-mini strong { display: block; color: var(--maroon); font-size: .95rem; }
.arena-profile-mini span { font-size: .8rem; color: var(--ink-soft); display: block; margin-top: 4px; }
.arena-profile-mini .btn { margin-top: 12px; width: 100%; }

.arena-main { min-width: 0; }
.arena-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.arena-feed-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.arena-tab {
  border: 1.5px solid #e7d3b3;
  background: #fff;
  color: var(--maroon);
  font-family: inherit;
  font-size: .86rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s;
}
.arena-tab:hover { background: #fff8ee; }
.arena-tab.active {
  background: linear-gradient(135deg, var(--maroon), #a0202f);
  color: #fff;
  border-color: var(--maroon);
}

.arena-notif-btn {
  position: relative;
  border: 1.5px solid #e7d3b3;
  background: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}
.arena-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc3545;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 100px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.arena-notif-badge.hidden { display: none; }

.arena-notif-panel {
  position: fixed;
  top: 72px;
  right: 16px;
  width: min(360px, calc(100vw - 32px));
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #efdcbf;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.15);
  z-index: 4000;
}
.arena-notif-panel.hidden { display: none; }
.arena-notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #f5ead8;
  position: sticky;
  top: 0;
  background: #fff;
}
.arena-notif-item {
  padding: 12px 14px;
  border-bottom: 1px solid #f8f2e8;
  font-size: .86rem;
  cursor: pointer;
  transition: background .15s;
}
.arena-notif-item:hover { background: #fffbf6; }
.arena-notif-item.unread { background: #fff8ee; }
.arena-notif-item strong { color: var(--maroon); }
.arena-notif-item time { color: #999; font-size: .75rem; display: block; margin-top: 4px; }

.arena-compose {
  background: #fff;
  border: 1px solid #efdcbf;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(107,15,26,.05);
}
.arena-compose-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.arena-compose-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.arena-compose-av img { width: 100%; height: 100%; object-fit: cover; }
.arena-compose-prompt {
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 600;
}
.arena-compose textarea {
  width: 100%;
  min-height: 88px;
  border: 1.5px solid #e7d3b3;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: .97rem;
  resize: vertical;
  margin-bottom: 10px;
  background: var(--cream-deep, #faf6f0);
}
.arena-compose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.arena-compose-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.arena-tool-btn { cursor: pointer; margin: 0; }
.arena-img-prev {
  max-width: 100px;
  max-height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #efdcbf;
}

.arena-pending-msg {
  background: #fff8e6;
  border: 1px solid #f2d98b;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .86rem;
  color: #7a5a00;
  margin-top: 10px;
  display: none;
}
.arena-pending-msg.show { display: block; }

.arena-feed { display: flex; flex-direction: column; gap: 14px; }

.arena-card {
  background: #fff;
  border: 1px solid #efdcbf;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(107,15,26,.05);
  animation: arenaIn .35s ease;
}
@keyframes arenaIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.arena-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 8px;
}
.arena-card-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), #a0202f);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
}
.arena-card-av img { width: 100%; height: 100%; object-fit: cover; }
.arena-card-meta { min-width: 0; flex: 1; }
.arena-card-meta strong {
  display: block;
  color: var(--maroon);
  font-size: .98rem;
}
.arena-card-meta strong a {
  color: inherit;
  text-decoration: none;
}
.arena-card-meta strong a:hover { text-decoration: underline; }
.arena-card-meta span {
  font-size: .8rem;
  color: var(--ink-soft);
  display: block;
}
.arena-card-body {
  padding: 0 16px 12px;
  font-size: .97rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.arena-card-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  cursor: pointer;
  border-top: 1px solid #f5ead8;
  border-bottom: 1px solid #f5ead8;
}

.arena-reactions {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid #f5ead8;
  flex-wrap: wrap;
}
.arena-react-btn {
  border: none;
  background: var(--cream-deep);
  color: var(--maroon);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s;
}
.arena-react-btn:hover { background: #fdeed7; }
.arena-react-btn.active { background: #fde7ee; color: #9a1b3d; box-shadow: inset 0 0 0 1.5px #e8a0b0; }

.arena-card-actions {
  display: flex;
  gap: 6px;
  padding: 6px 12px 10px;
  border-top: 1px solid #f5ead8;
  flex-wrap: wrap;
}
.arena-act-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: .86rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  flex: 1;
  text-align: center;
}
.arena-act-btn:hover { background: var(--cream-deep); color: var(--maroon); }

.arena-comments {
  padding: 0 14px 14px;
  display: none;
  background: #faf8f5;
  border-top: 1px solid #f5ead8;
}
.arena-comments.open { display: block; }
.arena-comment {
  background: #fff;
  border: 1px solid #f0e6d4;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: .88rem;
}
.arena-comment.reply { margin-left: 24px; border-left: 3px solid var(--saffron); }
.arena-comment strong { color: var(--maroon); font-size: .85rem; }
.arena-comment time { color: #999; font-size: .75rem; margin-left: 6px; }
.arena-comment-reply {
  border: none;
  background: none;
  color: var(--maroon);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0 0;
  font-family: inherit;
}
.arena-comment-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.arena-comment-form input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid #e7d3b3;
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
}

.arena-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px dashed #efdcbf;
  border-radius: 14px;
}
.arena-my-posts-wrap { margin-top: 20px; }
.arena-my-posts {
  padding-top: 16px;
  border-top: 2px dashed #efdcbf;
}
.arena-my-posts h3 {
  font-family: 'Rozha One', serif;
  color: var(--maroon);
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.arena-status-pill {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}
.arena-status-pill.pending { background: #fff3cd; color: #856404; }
.arena-status-pill.approved { background: #d4edda; color: #155724; }
.arena-status-pill.rejected { background: #fde7ee; color: #9a1b3d; }

.arena-delete-btn {
  border: none;
  background: none;
  color: #9a1b3d;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 6px;
}
.arena-delete-btn:hover { background: #fde7ee; }

.arena-profile-view { animation: arenaIn .3s ease; }
.arena-profile-view.hidden { display: none; }
.arena-profile-header {
  background: linear-gradient(135deg, var(--maroon), #a0202f);
  border-radius: 14px 14px 0 0;
  height: 80px;
}
.arena-profile-body {
  background: #fff;
  border: 1px solid #efdcbf;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 22px rgba(107,15,26,.06);
}
.arena-profile-info {
  padding: 0 20px 18px;
  margin-top: -36px;
  text-align: center;
}
.arena-profile-info-av {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 4px solid #fff;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.arena-profile-info-av img { width: 100%; height: 100%; object-fit: cover; }
.arena-profile-back {
  margin-bottom: 12px;
}

.arena-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(43,27,18,.55);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.arena-modal-bg.open { display: flex; }
.arena-modal {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.arena-modal h3 { color: var(--maroon); margin-bottom: 10px; }
.arena-modal input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #e7d3b3;
  border-radius: 10px;
  margin: 12px 0;
  font-family: inherit;
}
.arena-modal .err { color: #9a1b3d; font-size: .85rem; min-height: 1.2em; }

.arena-login-bar {
  background: #fff;
  border: 1px solid #efdcbf;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .arena-layout { grid-template-columns: minmax(0, 1fr); }
  .arena-sidebar-right { display: none; }
  .arena-sidebar-left { position: static; }
}
@media (max-width: 600px) {
  .arena-compose-actions { flex-direction: column; align-items: stretch; }
  .arena-compose-actions .btn { width: 100%; }
  .arena-comment.reply { margin-left: 12px; }
  .arena-notif-panel { right: 8px; left: 8px; width: auto; }
}