/**
 * DiscordFonts.net - Authentic Discord Desktop Client Live Simulator
 * High-fidelity, pixel-perfect dark mode simulation of Discord Client 2024/2026.
 */

/* ==========================================================================
   1. OVERLAY & DESKTOP WINDOW SHELL
   ========================================================================== */

.sim-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
}

.sim-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sim-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.discord-client-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  height: 90vh;
  max-height: 780px;
  background: #1e1f22;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 45px rgba(88, 101, 242, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #dbdee1;
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.sim-modal-overlay.active .discord-client-frame {
  transform: scale(1) translateY(0);
}

/* ==========================================================================
   2. AUTHENTIC DISCORD TITLEBAR (Desktop Mac/Windows App Style)
   ========================================================================== */

.discord-win-titlebar {
  background: #1e1f22;
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  user-select: none;
  height: 38px;
  flex-shrink: 0;
}

.discord-win-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 80px;
}

.win-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
  display: inline-block;
}

.win-dot:hover {
  transform: scale(1.1);
  filter: brightness(1.15);
}

.win-dot.dot-close {
  background: #ff5f56;
  border: 1px solid #e0443e;
}

.win-dot.dot-min {
  background: #ffbd2e;
  border: 1px solid #dea123;
}

.win-dot.dot-max {
  background: #27c93f;
  border: 1px solid #1aab29;
}

.discord-win-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #949ba4;
  letter-spacing: 0.02em;
}

.discord-clyde-logo {
  color: #5865f2;
}

.discord-win-close-btn {
  background: transparent;
  border: none;
  color: #80848e;
  font-size: 0.95rem;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.discord-win-close-btn:hover {
  background: #f23f43;
  color: #ffffff;
}

/* ==========================================================================
   3. INTERACTIVE STUDIO TOOLBAR (Live Font Switching & Limits)
   ========================================================================== */

.sim-studio-toolbar {
  background: #2b2d31;
  border-bottom: 1px solid #1f2023;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.sim-toolbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

.sim-selector-wrap,
.sim-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.sim-bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #949ba4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.sim-font-select {
  background: #1e1f22;
  color: #f2f3f5;
  border: 1px solid #3f4147;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  min-width: 150px;
  max-width: 220px;
  transition: border-color 0.15s ease;
}

.sim-font-select:hover,
.sim-font-select:focus {
  border-color: #5865f2;
}

.sim-quick-text-input {
  background: #1e1f22;
  color: #f2f3f5;
  border: 1px solid #3f4147;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  outline: none;
  width: 170px;
  transition: all 0.15s ease;
}

.sim-quick-text-input:focus {
  border-color: #5865f2;
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.25);
}

.sim-toolbar-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-discord-blurple {
  background: #5865f2;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.42rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(88, 101, 242, 0.35);
}

.btn-discord-blurple:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.btn-discord-blurple:active {
  background: #3c45a5;
  transform: translateY(0);
}

.btn-discord-blurple.copied {
  background: #23a55a !important;
  box-shadow: 0 2px 6px rgba(35, 165, 90, 0.4) !important;
}

/* ==========================================================================
   4. DISCORD CHANNEL HEADER & VIEW TABS
   ========================================================================== */

.discord-channel-nav {
  background: #313338;
  border-bottom: 1px solid #232428;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}

.discord-channel-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.discord-hash-tag {
  color: #80848e;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.discord-header-ch-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f2f3f5;
  white-space: nowrap;
}

.discord-header-divider {
  width: 1px;
  height: 16px;
  background: #3f4147;
}

.discord-header-topic {
  font-size: 0.78rem;
  color: #949ba4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-view-tabs {
  background: #1e1f22;
  border-radius: 8px;
  padding: 3px;
  display: inline-flex;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sim-tab-pill {
  background: transparent;
  border: none;
  color: #949ba4;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sim-tab-pill:hover {
  color: #dbdee1;
  background: rgba(255, 255, 255, 0.05);
}

.sim-tab-pill.active {
  background: #35373c;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.discord-channel-header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ch-tool-icon {
  color: #b5bac1;
  cursor: pointer;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.ch-tool-icon:hover {
  color: #dbdee1;
}

.discord-search-pill {
  background: #1e1f22;
  border-radius: 4px;
  padding: 0.25rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 110px;
  font-size: 0.75rem;
  color: #949ba4;
}

.search-mag {
  font-size: 0.7rem;
}

/* ==========================================================================
   5. CANVAS CONTAINER & VIEWS
   ========================================================================== */

.sim-canvas {
  background: #313338;
  flex: 1;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #1a1b1e #2b2d31;
}

.sim-canvas::-webkit-scrollbar {
  width: 8px;
}

.sim-canvas::-webkit-scrollbar-track {
  background: #2b2d31;
}

.sim-canvas::-webkit-scrollbar-thumb {
  background: #1a1b1e;
  border-radius: 4px;
}

.sim-view {
  display: none;
  height: 100%;
}

.sim-view.active {
  display: block;
  animation: discordFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes discordFadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   6. VIEW 1: AUTHENTIC DISCORD CHAT STREAM
   ========================================================================== */

.discord-chat-scroll-area {
  padding: 0.85rem 1.25rem 0.5rem 1.25rem;
}

.discord-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.4rem 0 0.85rem 0;
  position: relative;
}

.discord-date-divider::before,
.discord-date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #3f4147;
}

.discord-date-divider span {
  padding: 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #949ba4;
}

.discord-message-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  position: relative;
  transition: background 0.12s ease;
  margin-bottom: 0.25rem;
}

.discord-message-row:hover {
  background: #2e3035;
}

.discord-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.discord-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.discord-avatar.bot-avatar {
  background: linear-gradient(135deg, #5865f2, #4752c4);
}

.discord-avatar.user-avatar {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.discord-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #313338;
}

.discord-status-dot.online {
  background: #23a55a;
}

.discord-msg-body {
  flex: 1;
  min-width: 0;
}

.discord-msg-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.discord-author {
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.discord-author.bot-author {
  color: #f2f3f5;
}

.discord-author.user-author {
  color: #00d26a;
}

.discord-author:hover {
  text-decoration: underline;
}

.discord-bot-tag {
  background: #5865f2;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.28rem;
  border-radius: 3px;
  letter-spacing: 0.03em;
}

.discord-role-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.discord-booster-badge {
  color: #ec4899;
  font-size: 0.85rem;
}

.discord-timestamp {
  font-size: 0.72rem;
  color: #949ba4;
}

.discord-msg-text {
  font-size: 1rem;
  line-height: 1.45;
  color: #dbdee1;
  word-break: break-word;
}

.discord-msg-text.bot-text {
  white-space: normal;
  color: #949ba4;
  font-size: 0.88rem;
}

.discord-message-row.user-highlight-msg {
  background: rgba(88, 101, 242, 0.08);
  border-left: 3px solid #5865f2;
  padding-left: 0.75rem;
  margin-top: 0.35rem;
}

.discord-msg-text.user-styled-text {
  font-size: 1.35rem;
  line-height: 1.4;
  color: #ffffff;
  font-weight: 600;
  margin-top: 0.25rem;
  white-space: pre-wrap;
  letter-spacing: 0.01em;
}

/* Floating Discord Hover Action Toolbar */
.discord-hover-actions {
  position: absolute;
  top: -14px;
  right: 1rem;
  background: #313338;
  border: 1px solid #232428;
  border-radius: 6px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
  padding: 2px;
}

.discord-message-row:hover .discord-hover-actions {
  opacity: 1;
  pointer-events: auto;
}

.action-btn {
  background: transparent;
  border: none;
  color: #b5bac1;
  font-size: 0.88rem;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.action-btn:hover {
  background: #35373c;
  color: #f2f3f5;
}

/* Reactions Shelf */
.discord-reactions-shelf {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  flex-wrap: wrap;
}

.reaction-pill {
  background: #2b2d31;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b5bac1;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.reaction-pill:hover {
  background: #35373c;
  transform: translateY(-1px);
}

.reaction-pill.active {
  background: rgba(88, 101, 242, 0.18);
  border-color: #5865f2;
  color: #c9cdfb;
}

.reaction-pill.add-reaction {
  color: #949ba4;
}

/* Bottom Chatbar */
.discord-bottom-chatbar {
  padding: 0 1rem 1rem 1rem;
  background: #313338;
}

.discord-input-box {
  background: #383a40;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  gap: 0.75rem;
}

.chatbar-btn.upload-btn {
  background: #4e5058;
  color: #dbdee1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.chatbar-btn.upload-btn:hover {
  background: #5c5f66;
}

.chatbar-input-field {
  color: #80848e;
  font-size: 0.92rem;
  flex: 1;
  user-select: none;
}

.chatbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chatbar-icon-btn {
  background: transparent;
  border: none;
  color: #b5bac1;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.15s ease;
}

.chatbar-icon-btn:hover {
  color: #dbdee1;
}

/* ==========================================================================
   7. VIEW 2: AUTHENTIC DISCORD PROFILE 3.0 (NITRO POPOUT)
   ========================================================================== */

.discord-profile-showcase {
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100%;
}

.discord-nitro-card {
  width: 100%;
  max-width: 380px;
  background: #232428;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-nitro-banner {
  height: 110px;
  background: linear-gradient(135deg, #5865f2 0%, #a855f7 50%, #ec4899 100%);
  position: relative;
  overflow: hidden;
}

.nitro-banner-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  animation: nitroShimmer 4s infinite linear;
}

@keyframes nitroShimmer {
  0% { left: -100%; }
  35% { left: 150%; }
  100% { left: 150%; }
}

.nitro-badge-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.discord-nitro-body {
  padding: 0 1rem 1rem 1rem;
  position: relative;
  margin-top: -42px;
}

.discord-nitro-avatar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.discord-deco-avatar {
  position: relative;
  width: 76px;
  height: 76px;
}

.nitro-deco-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff007a, #7928ca, #0070f3, #ff007a);
  animation: spinDeco 6s linear infinite;
  filter: blur(0.5px);
}

@keyframes spinDeco {
  100% { transform: rotate(360deg); }
}

.nitro-avatar-face {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1e1f22;
  border: 4px solid #232428;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.nitro-status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #232428;
  z-index: 2;
}

.nitro-status-indicator.online {
  background: #23a55a;
}

.discord-badges-shelf {
  background: #111214;
  padding: 4px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.discord-badge-icon {
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.discord-badge-icon:hover {
  transform: scale(1.18);
}

.discord-identity-box {
  background: #111214;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-top: 0.75rem;
}

.discord-nitro-display-name-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.discord-nitro-display-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f2f3f5;
  word-break: break-word;
}

.pronouns-tag {
  background: #2b2d31;
  color: #b5bac1;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.discord-nitro-handle {
  font-size: 0.8rem;
  color: #949ba4;
  margin-top: 2px;
}

.discord-nitro-custom-status {
  background: #1e1f22;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #dbdee1;
}

.discord-profile-details {
  background: #111214;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-top: 0.6rem;
}

.details-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 0;
}

.details-section:first-child {
  padding-top: 0;
}

.details-section:last-of-type {
  border-bottom: none;
}

.details-heading {
  font-size: 0.68rem;
  font-weight: 800;
  color: #b5bac1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.details-bio-content {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #dbdee1;
  word-break: break-word;
  white-space: pre-wrap;
}

.member-since-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.member-since-pill {
  background: #1e1f22;
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
  color: #dbdee1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.roles-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.role-pill {
  background: #2b2d31;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  color: #f2f3f5;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.profile-quick-msg {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.profile-msg-input {
  background: #1e1f22;
  border: 1px solid #3f4147;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  color: #dbdee1;
  flex: 1;
  outline: none;
}

.profile-msg-btn {
  background: #5865f2;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   8. VIEW 3: AUTHENTIC DISCORD SERVER & CHANNELS RAIL
   ========================================================================== */

.discord-full-layout-mockup {
  display: flex;
  height: 100%;
  min-height: 480px;
}

.discord-server-rail {
  width: 72px;
  background: #1e1f22;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0;
  gap: 0.5rem;
  flex-shrink: 0;
}

.server-rail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #313338;
  color: #dbdee1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.server-rail-icon:hover {
  background: #5865f2;
  color: #ffffff;
  border-radius: 16px;
}

.server-rail-icon.active {
  background: #5865f2;
  color: #ffffff;
  border-radius: 16px;
}

.rail-pill {
  position: absolute;
  left: -12px;
  width: 8px;
  height: 40px;
  background: #ffffff;
  border-radius: 0 4px 4px 0;
}

.rail-separator {
  width: 32px;
  height: 2px;
  background: #35363c;
  margin: 2px 0;
}

.server-rail-icon.add-btn {
  color: #23a55a;
}

.server-rail-icon.add-btn:hover {
  background: #23a55a;
  color: #ffffff;
}

.server-rail-icon.explore-btn {
  color: #23a55a;
}

.discord-channel-sidebar {
  width: 240px;
  background: #2b2d31;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-right: 1px solid #1f2023;
  flex-shrink: 0;
}

.server-top-header {
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f2f3f5;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.server-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
}

.verified-icon {
  background: #23a55a;
  color: #ffffff;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-size: 0.62rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.server-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-chevron {
  font-size: 0.72rem;
  color: #949ba4;
}

.server-boost-bar {
  background: rgba(236, 72, 153, 0.12);
  color: #ec4899;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-bottom: 1px solid rgba(236, 72, 153, 0.2);
}

.sidebar-channels-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0.25rem;
}

.category-group {
  margin-bottom: 0.75rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #949ba4;
  letter-spacing: 0.04em;
}

.cat-arrow {
  font-size: 0.6rem;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.65rem;
  margin: 1px 0.35rem;
  border-radius: 5px;
  color: #949ba4;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.12s ease;
}

.channel-row:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #dbdee1;
}

.channel-row.active {
  background: #404249;
  color: #ffffff;
  font-weight: 600;
}

.channel-row.active .ch-icon {
  color: #dbdee1;
}

.ch-icon {
  font-size: 1rem;
  color: #80848e;
}

.ch-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.channel-row.voice-channel {
  flex-direction: column;
  align-items: flex-start;
}

.voice-users-preview {
  width: 100%;
  padding-left: 1.2rem;
  margin-top: 2px;
}

.voice-user-pill.live-speaking {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(35, 165, 90, 0.15);
  border: 1px solid rgba(35, 165, 90, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.72rem;
  color: #23a55a;
  font-weight: 600;
}

.speaking-wave {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #23a55a;
  animation: pulseGreen 1s infinite alternate;
}

@keyframes pulseGreen {
  from { opacity: 0.4; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

.sidebar-user-footer {
  background: #232428;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.user-footer-avatar-wrap {
  position: relative;
}

.user-footer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.user-footer-status.online {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  background: #23a55a;
  border: 2px solid #232428;
  border-radius: 50%;
}

.user-footer-info {
  flex: 1;
  min-width: 0;
}

.user-footer-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f2f3f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-footer-tag {
  font-size: 0.7rem;
  color: #949ba4;
}

.user-footer-buttons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.footer-icon-btn {
  background: transparent;
  border: none;
  color: #b5bac1;
  font-size: 0.82rem;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.footer-icon-btn:hover {
  background: #35373c;
  color: #dbdee1;
}

/* ==========================================================================
   9. VIEW 4: SERVER MEMBER LIST & NICKNAMES
   ========================================================================== */

.discord-members-showcase {
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100%;
}

.members-sidebar-mockup {
  width: 100%;
  max-width: 340px;
  background: #2b2d31;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.members-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: #949ba4;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.5rem 0.35rem 0.5rem;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.member-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.member-item.offline {
  opacity: 0.5;
}

.member-avatar-wrap {
  position: relative;
}

.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.member-avatar.owner-avatar {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
}

.member-status {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #2b2d31;
}

.member-status.online {
  background: #23a55a;
}

.member-status.offline {
  background: #747f8d;
}

.member-details {
  flex: 1;
  min-width: 0;
}

.member-name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.member-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-name.owner-color {
  color: #f59e0b;
}

.member-name.booster-color {
  color: #ec4899;
}

.member-name.bot-color {
  color: #5865f2;
}

.owner-crown {
  font-size: 0.85rem;
}

.booster-diamond {
  font-size: 0.85rem;
}

.member-activity {
  font-size: 0.72rem;
  color: #949ba4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   10. DISCORD WINDOW FOOTER STATUS STRIP
   ========================================================================== */

.discord-win-footer {
  background: #1e1f22;
  border-top: 1px solid #141517;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: #80848e;
  flex-shrink: 0;
}

.win-footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.win-footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.sim-limits-shelf {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sim-limit-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.sim-limit-tag.safe {
  background: rgba(35, 165, 90, 0.18);
  color: #23a55a;
  border: 1px solid rgba(35, 165, 90, 0.35);
}

.sim-limit-tag.warn {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.win-footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.discord-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #23a55a;
  font-weight: 600;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  background: #23a55a;
  border-radius: 50%;
  animation: rtcPulse 2s infinite ease-in-out;
}

@keyframes rtcPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.sim-kbd-hint kbd {
  background: #2b2d31;
  border: 1px solid #3f4147;
  padding: 1px 5px;
  border-radius: 4px;
  color: #dbdee1;
  font-size: 0.7rem;
}

.sim-font-active-badge {
  background: rgba(88, 101, 242, 0.18);
  color: #c9cdfb;
  border: 1px solid rgba(88, 101, 242, 0.35);
  font-weight: 700;
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
}

/* ==========================================================================
   11. RESPONSIVE OPTIMIZATIONS
   ========================================================================== */

@media (max-width: 768px) {
  .sim-modal-overlay {
    padding: 0.5rem;
  }
  
  .discord-client-frame {
    height: 96vh;
  }

  .sim-studio-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .sim-toolbar-left {
    flex-direction: column;
    align-items: stretch;
  }

  .sim-font-select,
  .sim-quick-text-input {
    width: 100% !important;
    max-width: none;
  }

  .sim-toolbar-right {
    justify-content: space-between;
  }

  .discord-channel-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .discord-channel-header-tools {
    display: none;
  }

  .discord-full-layout-mockup {
    flex-direction: column;
  }

  .discord-server-rail {
    width: 100%;
    flex-direction: row;
    height: auto;
    padding: 0.5rem;
  }

  .discord-channel-sidebar {
    width: 100%;
  }
}
