/* Discord widget — Features.win style (scoped, high specificity) */
.hero-discord-col {
  position: relative;
  z-index: 2;
}

.ember-discord,
.ember-discord * {
  box-sizing: border-box;
}

.ember-discord {
  width: 100%;
  max-width: 340px;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: "gg sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  animation: heroCardFloat 6s ease-in-out infinite;
}

.ember-discord__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ember-discord__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.ember-discord__logo {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: #5865f2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.ember-discord__titles {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ember-discord__name {
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ember-discord__tag {
  color: #949ba4;
  font-size: 12px;
  line-height: 1.2;
}

.ember-discord__join {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #5865f2;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.ember-discord__join:hover {
  background: #4752c4;
  color: #fff !important;
}

.ember-discord__online {
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: #b5bac1;
  font-size: 13px;
}

.ember-discord__online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23a559;
  box-shadow: 0 0 0 3px rgba(35, 165, 89, 0.18);
  flex-shrink: 0;
}

.ember-discord__online strong {
  color: #f2f3f5;
  font-weight: 700;
}

.ember-discord__panel {
  background: #1e1f22;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.ember-discord__panel-label {
  padding: 10px 12px 4px;
  color: #949ba4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.ember-discord ul.ember-discord__members,
.ember-discord__members {
  list-style: none !important;
  margin: 0 !important;
  padding: 4px 6px 8px !important;
  max-height: 250px;
  overflow-x: hidden;
  overflow-y: auto;
  display: block !important;
}

.ember-discord__members::-webkit-scrollbar {
  width: 5px;
}

.ember-discord__members::-webkit-scrollbar-thumb {
  background: rgba(88, 101, 242, 0.45);
  border-radius: 99px;
}

.ember-discord li.ember-discord__member,
.ember-discord__member {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px 8px !important;
  margin: 0 !important;
  border-radius: 8px;
  width: 100%;
}

.ember-discord__member:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ember-discord__avatar {
  position: relative;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  flex: 0 0 32px !important;
}

.ember-discord__avatar-img,
.ember-discord__avatar-fallback {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  border-radius: 50% !important;
  display: block !important;
  object-fit: cover !important;
}

.ember-discord__avatar-fallback {
  background: linear-gradient(135deg, #5865f2, #3c45a5);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.ember-discord__status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #1e1f22;
  background: #23a559;
}

.ember-discord__avatar.is-idle .ember-discord__status { background: #f0b232; }
.ember-discord__avatar.is-dnd .ember-discord__status { background: #f23f43; }
.ember-discord__avatar.is-online .ember-discord__status { background: #23a559; }

.ember-discord__username {
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  text-align: left !important;
}

.ember-discord__empty {
  color: #949ba4;
  font-size: 13px;
  padding: 10px 8px;
  list-style: none;
}

.ember-discord__cta {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: #2b2d31;
  color: #f2f3f5 !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s, transform 0.15s;
}

.ember-discord__cta:hover {
  background: #383a40;
  color: #fff !important;
  transform: translateY(-1px);
}

.ember-discord__cta i {
  color: #5865f2;
  font-size: 1.1rem;
}

@media (max-width: 991px) {
  .ember-discord {
    margin-top: 1.5rem;
    max-width: 380px;
    animation: none;
  }
}
