nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.55vw 1.3vw;
  border-radius: 0.5vw;
  font-weight: 600;
  font-size: 0.95vw;
  transition: all 0.3s ease;
}

nav a.active {
  color: #fff;
  background-color: #2c7ffc;
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 4px 16px rgba(44,127,252,.3);
}

nav a:hover {
  background-color: rgba(255,255,255,0.1);
}

nav a.active:hover {
  background-color: #2c7ffc;
}

.dc-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 9vw 1.5rem 4rem;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.dc-header {
  text-align: center;
  margin-bottom: 2rem;
}

.dc-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, #2c7ffc 0%, #a855f7 50%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dc-header p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin: 0;
}

.dc-card {
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid rgba(44,127,252,0.22);
  border-radius: 22px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(44,127,252,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
}

.dc-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.dc-tab {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: rgba(255,255,255,0.7);
  padding: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.dc-tab.active {
  background: linear-gradient(135deg, #2c7ffc 0%, #1a5fd0 100%);
  border-color: transparent;
  color: #fff;
}

.dc-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dc-form input,
.dc-form textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.dc-form input::placeholder,
.dc-form textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.dc-form input:focus,
.dc-form textarea:focus {
  border-color: rgba(44,127,252,0.65);
  box-shadow: 0 0 0 4px rgba(44,127,252,0.12), 0 0 24px rgba(44,127,252,0.15);
  background: rgba(44,127,252,0.05);
}

.dc-form textarea {
  min-height: 100px;
  resize: vertical;
}

.dc-char-count {
  text-align: right;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: -0.5rem;
}

.dc-file-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dc-file-row input[type="file"] {
  display: none;
}

.dc-file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dc-file-label:hover {
  background: rgba(44,127,252,0.15);
  border-color: rgba(44,127,252,0.4);
}

#file-name {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.dc-btn {
  background: linear-gradient(135deg, #2c7ffc 0%, #1a5fd0 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  padding: 0.9rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(44,127,252,0.35);
}

.dc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(44,127,252,0.5);
  filter: brightness(1.1);
}

.dc-btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.dc-btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.dc-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
}

.dc-user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}

.dc-error {
  color: #ff5b6a;
  font-weight: 500;
  font-size: 0.85rem;
  margin: 0;
  display: none;
}

.dc-success {
  color: #43a047;
  font-weight: 500;
  font-size: 0.85rem;
  margin: 0;
  display: none;
}

.dc-feed-header {
  margin: 2rem 0 1rem;
}

.dc-feed-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.dc-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dc-loading,
.dc-empty {
  text-align: center;
  color: rgba(255,255,255,0.5);
  padding: 2rem;
  background: rgba(10, 14, 24, 0.6);
  border-radius: 16px;
}

.dc-post {
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid rgba(44,127,252,0.15);
  border-radius: 18px;
  padding: 1.2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}

.dc-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.dc-post-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c7ffc 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  text-transform: uppercase;
}

.dc-post-meta {
  display: flex;
  flex-direction: column;
}

.dc-post-username {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.dc-verified-badge {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-left: 0.35em;
  object-fit: contain;
  vertical-align: -0.18em;
  cursor: help;
  filter: drop-shadow(0 0 5px rgba(49, 201, 107, 0.35));
}

#profile-view-username .dc-verified-badge {
  width: 0.9em;
  height: 0.9em;
  vertical-align: 0.18em;
}

#video-call-peer .dc-verified-badge {
  width: 1em;
  height: 1em;
}

.dc-post-time {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

.dc-post-delete {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.dc-post-delete:hover {
  color: #ff5b6a;
}

.dc-post-text {
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin-bottom: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.dc-post-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0,0,0,0.3);
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .dc-container {
    padding-top: 20vw;
  }
  nav a {
    font-size: 2.5vw;
    padding: 0.5vw 1vw;
  }
}

/* ── My Profile section ─────────────────────────────────────────────────── */
.dc-my-profile {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dc-my-pfp-wrap {
  position: relative;
  flex-shrink: 0;
}

.dc-avatar-lg {
  width: 64px !important;
  height: 64px !important;
  font-size: 1.3rem !important;
  border: 2px solid rgba(44,127,252,0.4);
}

.dc-pfp-change-btn {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2c7ffc;
  border: 2px solid #0a0e18;
  color: #fff;
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  padding: 0;
}

.dc-pfp-change-btn:hover {
  background: #1a5fd0;
}

.dc-my-bio {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dc-my-bio textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  resize: none;
  min-height: 60px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dc-my-bio textarea:focus {
  border-color: rgba(44,127,252,0.65);
  box-shadow: 0 0 0 3px rgba(44,127,252,0.12);
}

.dc-my-bio textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.dc-bio-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dc-btn-sm {
  background: rgba(44,127,252,0.18);
  border: 1px solid rgba(44,127,252,0.35);
  border-radius: 8px;
  color: #7db8ff;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.dc-btn-sm:hover {
  background: rgba(44,127,252,0.3);
  color: #fff;
}

.dc-btn-sm:disabled {
  opacity: 0.5;
  cursor: default;
}

.dc-post-form {
  padding-top: 0 !important;
}

/* ── Avatars: image support ─────────────────────────────────────────────── */
.dc-avatar {
  background-repeat: no-repeat;
}

.dc-avatar-xl {
  width: 72px !important;
  height: 72px !important;
  font-size: 1.5rem !important;
  border: 2px solid rgba(44,127,252,0.4);
  flex-shrink: 0;
}

/* ── Clickable username ──────────────────────────────────────────────────── */
.dc-username-link {
  cursor: pointer;
  transition: color 0.2s ease;
}

.dc-username-link:hover {
  color: #7db8ff;
  text-decoration: underline;
}

/* ── Modals shared ──────────────────────────────────────────────────────── */
.dc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.dc-modal-content {
  background: rgba(10,14,24,0.97);
  border: 1px solid rgba(44,127,252,0.25);
  border-radius: 22px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 60px rgba(44,127,252,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.dc-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-align: center;
}

.dc-modal-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.dc-modal-actions .dc-btn,
.dc-modal-actions .dc-btn-secondary {
  flex: 1;
}

/* ── PFP Editor Modal ───────────────────────────────────────────────────── */
.dc-pfp-crop-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(44,127,252,0.5);
  background: rgba(255,255,255,0.05);
  position: relative;
  cursor: default;
  user-select: none;
  flex-shrink: 0;
  background-repeat: no-repeat;
}

.dc-pfp-drag-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
  text-align: center;
  gap: 0.5rem;
  pointer-events: none;
}

.dc-pfp-drag-hint i {
  font-size: 1.8rem;
}

.dc-pfp-tip {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
  text-align: center;
}

.dc-pfp-file-label {
  width: 100%;
  justify-content: center;
}

/* ── User Profile Modal ─────────────────────────────────────────────────── */
.dc-profile-modal-content {
  max-width: 520px;
  align-items: stretch;
}

.dc-modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.dc-modal-close-btn:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.dc-profile-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}

.dc-profile-info {
  flex: 1;
  min-width: 0;
}

.dc-profile-info h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  color: #fff;
}

.dc-profile-bio {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  margin: 0 0 0.3rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.dc-profile-joined {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  margin: 0;
}

.dc-profile-posts-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: 100%;
  padding-top: 0.5rem;
}

.dc-profile-posts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 2px;
}

.dc-profile-posts::-webkit-scrollbar {
  width: 4px;
}

.dc-profile-posts::-webkit-scrollbar-track {
  background: transparent;
}

.dc-profile-posts::-webkit-scrollbar-thumb {
  background: rgba(44,127,252,0.3);
  border-radius: 2px;
}

.dc-profile-post-time {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
}

/* Profile modal: smaller post cards */
.dc-profile-posts .dc-post {
  padding: 0.9rem;
}

/* ── One-to-one video calls ─────────────────────────────────────────────── */
.dc-call-profile-btn {
  display: inline-flex;
  width: auto;
  padding: 0.55rem 0.85rem;
  margin-top: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: none;
  box-shadow: 0 8px 22px rgba(44,127,252,0.25);
}

.dc-incoming-call-content {
  max-width: 360px;
  text-align: center;
}

.dc-incoming-icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #2c7ffc, #a855f7);
  box-shadow: 0 0 0 10px rgba(44,127,252,0.1), 0 14px 35px rgba(44,127,252,0.3);
  animation: dc-call-pulse 1.8s ease-in-out infinite;
}

.dc-call-hint {
  margin: -0.35rem 0 0.4rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}

.dc-video-call-content {
  width: min(920px, 94vw);
  background: #080c16;
  border: 1px solid rgba(44,127,252,0.35);
  border-radius: 22px;
  padding: 0.9rem;
  box-shadow: 0 35px 100px rgba(0,0,0,0.8), 0 0 80px rgba(44,127,252,0.15);
}

.dc-video-call-header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.55rem 0.55rem;
  color: #fff;
}

.dc-video-call-header strong {
  margin-right: 0.45rem;
}

.dc-video-call-header #video-call-status {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
}

.dc-call-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
}

.dc-video-stage {
  position: relative;
  min-height: min(62vh, 600px);
  overflow: hidden;
  border-radius: 15px;
  background: radial-gradient(circle at 50% 25%, #182747, #050811 70%);
}

.dc-video-stage video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(62vh, 600px);
  object-fit: cover;
}

#local-video {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(25%, 190px);
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  background: #111827;
}

.dc-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
}

.dc-video-placeholder i {
  font-size: 3rem;
  color: rgba(125,184,255,0.7);
}

.dc-call-controls {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.85rem 0 0.1rem;
}

.dc-call-control {
  min-width: 82px;
  min-height: 54px;
  padding: .45rem .7rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .22rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dc-call-control i {
  font-size: 1rem;
}

.dc-call-control span {
  font: 700 .62rem Montserrat, sans-serif;
  letter-spacing: .02em;
}

.dc-call-control:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.2);
}

.dc-call-control.is-off {
  color: #ffb4bb;
  background: rgba(255,91,106,0.2);
}

.dc-call-control.dc-end-call {
  background: #dc3545;
  border-color: #ff6977;
  min-width: 100px;
}

.dc-video-error {
  padding: 0.35rem 0.4rem 0;
  text-align: center;
}

@keyframes dc-call-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@media (max-width: 600px) {
  .dc-video-call-content {
    width: 100%;
    padding: 0.55rem;
    border-radius: 15px;
  }
  .dc-video-stage,
  .dc-video-stage video {
    min-height: 58vh;
  }
  #local-video {
    right: 0.6rem;
    bottom: 0.6rem;
    width: 32%;
  }
  .dc-call-controls {
    gap: .5rem;
    padding-bottom: .35rem;
  }
  .dc-call-control {
    min-width: 76px;
    min-height: 52px;
  }
  .dc-call-control.dc-end-call {
    min-width: 92px;
  }
}

/* ── Page Tabs ────────────────────────────────────────────────────────────── */
.dc-page-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 0.35rem;
  border: 1px solid rgba(255,255,255,0.10);
}
.dc-page-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.dc-page-tab:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}
.dc-page-tab.active {
  background: rgba(44,127,252,0.22);
  color: #fff;
  font-weight: 600;
}
.dc-tab-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #e53935;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── Login prompt ─────────────────────────────────────────────────────────── */
.dc-login-prompt {
  text-align: center;
  padding: 2rem;
  color: rgba(255,255,255,0.55);
}
.dc-login-prompt p { margin: 0.5rem 0 0; }

/* ── Section title ────────────────────────────────────────────────────────── */
.dc-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Friend / people rows ─────────────────────────────────────────────────── */
.dc-person-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dc-person-row:last-child { border-bottom: none; }
.dc-person-info {
  flex: 1;
  min-width: 0;
}
.dc-person-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.dc-person-name:hover { color: #2c7ffc; }
.dc-person-bio {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-person-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.dc-friend-accept {
  background: rgba(44,127,252,0.18);
  color: #2c7ffc;
  border: 1px solid rgba(44,127,252,0.3);
}
.dc-friend-accept:hover { background: rgba(44,127,252,0.3); }
.dc-friend-decline {
  background: rgba(220,50,50,0.12);
  color: #e57373;
  border: 1px solid rgba(220,50,50,0.25);
}
.dc-friend-decline:hover { background: rgba(220,50,50,0.22); }

/* ── Profile modal actions ────────────────────────────────────────────────── */
.dc-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.dc-friend-profile-btn,
.dc-dm-profile-btn {
  font-size: 0.82rem;
  padding: 0.42rem 0.85rem;
}
.dc-friend-pending { opacity: 0.7; cursor: default; }
.dc-friend-remove { color: #e57373 !important; border-color: rgba(229,115,115,0.35) !important; }

/* ── Comments ─────────────────────────────────────────────────────────────── */
.dc-post-footer {
  display: flex;
  gap: 0.6rem;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.dc-comment-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.dc-comment-toggle:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.9);
}
.dc-comments-section {
  margin-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 0.6rem;
}
.dc-comment {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}
.dc-avatar-xs {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(44,127,252,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.dc-comment-body { flex: 1; min-width: 0; }
.dc-comment-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.dc-comment-username {
  font-weight: 600;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
}
.dc-comment-username:hover { color: #2c7ffc; }
.dc-comment-time {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
}
.dc-comment-delete {
  background: none;
  border: none;
  color: rgba(255,80,80,0.5);
  cursor: pointer;
  font-size: 0.72rem;
  padding: 0 0.2rem;
  margin-left: auto;
  opacity: 0.6;
}
.dc-comment-delete:hover { opacity: 1; }
.dc-comment-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
  margin-top: 0.15rem;
  word-break: break-word;
}
.dc-comment-form {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.6rem;
  align-items: center;
}
.dc-comment-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 0.4rem 0.85rem;
  color: #fff;
  font-size: 0.84rem;
  outline: none;
}
.dc-comment-input:focus {
  border-color: rgba(44,127,252,0.45);
  background: rgba(255,255,255,0.1);
}
.dc-comment-error {
  font-size: 0.78rem;
  color: #e57373;
  margin-top: 0.3rem;
}
.dc-comments-empty {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  padding: 0.3rem 0;
}

/* ── Messages ─────────────────────────────────────────────────────────────── */
.dc-messages-card {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  min-height: 480px;
}
.dc-conversations-panel {
  width: 260px;
  min-width: 260px;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
}
.dc-conversations-header {
  padding: 1rem 1rem 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dc-conversations-list { flex: 1; overflow-y: auto; }
.dc-convo-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.dc-convo-row:hover, .dc-convo-row.active {
  background: rgba(44,127,252,0.12);
}
.dc-convo-info { flex: 1; min-width: 0; }
.dc-convo-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.dc-convo-preview {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}
.dc-convo-unread {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #2c7ffc;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}
.dc-chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dc-chat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.92rem;
}
.dc-back-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}
.dc-back-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.dc-dm-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dc-dm-bubble {
  max-width: 72%;
  padding: 0.5rem 0.8rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.4;
  word-break: break-word;
}
.dc-dm-bubble.mine {
  align-self: flex-end;
  background: rgba(44,127,252,0.28);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.dc-dm-bubble.theirs {
  align-self: flex-start;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border-bottom-left-radius: 4px;
}
.dc-dm-time {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.15rem;
  text-align: right;
}
.dc-dm-bubble.theirs .dc-dm-time { text-align: left; }
.dc-dm-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
#dm-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 0.45rem 1rem;
  color: #fff;
  font-size: 0.86rem;
  outline: none;
}
#dm-input:focus {
  border-color: rgba(44,127,252,0.45);
  background: rgba(255,255,255,0.1);
}
.dc-messages-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.88rem;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Card trading ───────────────────────────────────────────────────────── */
.dc-trade-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border: 1px solid rgba(168,85,247,.4);
  border-radius: 20px;
  padding: .45rem .65rem;
  color: #d8b4fe;
  background: rgba(168,85,247,.12);
  cursor: pointer;
  font: 600 .75rem Montserrat,sans-serif;
  white-space: nowrap;
}
.dc-trade-btn:hover { color:#fff; background:rgba(168,85,247,.25); }
.dc-trade-safety {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: .7rem .8rem;
  border: 1px solid rgba(67,160,71,.35);
  border-radius: 10px;
  color: #b8e5ba;
  background: rgba(67,160,71,.1);
  font-size: .75rem;
  line-height: 1.45;
}
.dc-trade-error {
  width: 100%;
  box-sizing: border-box;
  margin: .5rem 0;
  padding: .6rem .75rem;
  border: 1px solid rgba(239,83,80,.45);
  border-radius: 8px;
  color: #ffcdd2;
  background: rgba(239,83,80,.12);
  font-size: .78rem;
  line-height: 1.4;
}
.dc-trade-error:empty { display: none; }
.dc-trade-modal-content { max-width: 760px; align-items: stretch; }
.dc-trade-columns { display:grid; grid-template-columns:1fr 1fr; gap:1rem; width:100%; }
.dc-trade-side { min-width:0; }
.dc-trade-side h4 { margin:.2rem 0 .2rem; color:#fff; font-size:.9rem; }
.dc-trade-side h4 i { color:#a855f7; margin-right:.35rem; }
.dc-trade-side-hint { margin:0 0 .6rem; color:rgba(255,255,255,.45); font-size:.72rem; }
.dc-trade-card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(105px,1fr)); gap:.5rem; max-height:275px; overflow-y:auto; padding:.1rem; }
.dc-trade-card {
  position:relative; min-width:0; padding:0; overflow:hidden; text-align:left;
  border:1px solid color-mix(in srgb,var(--trade-accent) 45%,transparent);
  border-radius:9px; color:#fff; background:rgba(255,255,255,.06); cursor:pointer;
}
.dc-trade-card:hover { background:rgba(255,255,255,.13); }
.dc-trade-card.selected { outline:2px solid #a855f7; background:rgba(168,85,247,.22); }
.dc-trade-card img { width:100%; aspect-ratio:1.35; display:block; object-fit:cover; background:#080c16; }
.dc-trade-card-name { display:block; padding:.35rem .4rem .1rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.68rem; font-weight:700; }
.dc-trade-card-rarity { display:block; padding:0 .4rem .4rem; color:var(--trade-accent); font-size:.58rem; font-weight:800; text-transform:uppercase; }
.dc-trade-card-check { position:absolute; top:.3rem; right:.3rem; display:none; width:19px; height:19px; border-radius:50%; color:#fff; background:#a855f7; text-align:center; font-size:.7rem; line-height:19px; }
.dc-trade-card.selected .dc-trade-card-check { display:block; }
.dc-trade-selection-summary { width:100%; margin:0; color:rgba(255,255,255,.62); font-size:.78rem; text-align:center; }
.dc-incoming-trades { width:100%; padding:.7rem; box-sizing:border-box; border:1px solid rgba(255,193,7,.35); border-radius:10px; background:rgba(255,193,7,.08); }
.dc-incoming-trade { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; font-size:.76rem; }
.dc-incoming-trade + .dc-incoming-trade { margin-top:.55rem; padding-top:.55rem; border-top:1px solid rgba(255,255,255,.1); }
.dc-incoming-trade strong { color:#ffe082; }
.dc-incoming-trade-actions { display:flex; gap:.35rem; margin-left:auto; }
.dc-trade-actions { margin-top:.2rem; }

@media (max-width: 600px) {
  .dc-messages-card { flex-direction: column; min-height: auto; }
  .dc-conversations-panel {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    max-height: 220px;
  }
  .dc-page-tab span:not(.dc-tab-badge) { display: none; }
  .dc-trade-btn span { display:none; }
  .dc-trade-columns { grid-template-columns:1fr; }
  .dc-trade-card-grid { max-height:220px; }
}


