* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, #000000 0%, #0d0614 50%, #1a0826 100%);
  background-attachment: fixed;
  color: #d1d1d1;
  font-family: monospace, monospace;
  font-size: 15px;
  line-height: 1.6;
  padding: 40px 20px;
}

.container {
  max-width: 680px;
  margin: 0 auto;
}

h1 {
  font-size: 28px;
  font-weight: normal;
  color: #ffffff;
  margin-bottom: 12px;
}

.profile-link {
  color: #bfa3e6;
  cursor: pointer;
  text-decoration: underline;
}

.profile-link:hover {
  color: #ffffff;
}

h2 {
  font-size: 16px;
  font-weight: normal;
  color: #bfa3e6;
  margin-top: 36px;
  margin-bottom: 12px;
}

p, p.intro {
  margin-bottom: 20px;
  color: #a0a0a0;
}

a {
  color: #ffffff;
  text-decoration: underline;
}

a:hover {
  color: #bfa3e6;
}

.nav {
  margin-bottom: 30px;
  display: flex;
  gap: 12px;
}

.data-list {
  list-style: none;
}

.data-list li {
  margin-bottom: 8px;
  word-break: break-all;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.profile-card {
  width: 100%;
  max-width: 380px;
  background: #0d0614;
  border: 1px solid #3d2459;
  position: relative;
  overflow: hidden;
}

.profile-banner {
  height: 100px;
  border-bottom: 1px solid #28143a;
  position: relative;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #3d2459;
  padding: 2px 6px;
  color: #bfa3e6;
  font-family: monospace;
  font-size: 12px;
  cursor: pointer;
  z-index: 1;
}

.close-btn:hover {
  color: #ffffff;
  border-color: #bfa3e6;
}

.profile-header {
  padding: 0 16px;
  margin-top: -36px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
}

#modal-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #0d0614;
  background: #000000;
  display: block;
  object-fit: cover;
}

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

.status-dot.online { background: #23a55a; }
.status-dot.idle { background: #f0b232; }
.status-dot.dnd { background: #f23f43; }
.status-dot.offline { background: #80848e; }

.profile-body {
  padding: 0 16px 20px 16px;
}

.profile-names {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.display-name {
  color: #ffffff;
  font-size: 18px;
}

.username {
  color: #8a8a8a;
  font-size: 13px;
}

.profile-section {
  border-top: 1px solid #231238;
  padding-top: 10px;
  margin-top: 10px;
}

.profile-section h3 {
  font-size: 11px;
  color: #bfa3e6;
  font-weight: normal;
  text-transform: lowercase;
  margin-bottom: 6px;
}

.markdown-content {
  font-size: 13px;
  color: #d1d1d1;
  word-break: break-word;
}

.markdown-content p {
  margin-bottom: 0;
  color: #d1d1d1;
  font-size: 13px;
}

.markdown-content strong {
  color: #ffffff;
  font-weight: bold;
}

.markdown-content em {
  color: #bfa3e6;
  font-style: italic;
}

.markdown-content code {
  background: #180a29;
  border: 1px solid #3d2459;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
  color: #bfa3e6;
}

.markdown-content a {
  color: #bfa3e6;
  text-decoration: underline;
}

.markdown-content a:hover {
  color: #ffffff;
}

.activity-container {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.activity-cover {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #3d2459;
  cursor: pointer;
  opacity: 1;
  transform: scale(1);
  margin-right: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.activity-cover.hidden {
  opacity: 0;
  transform: scale(0.8);
  width: 0;
  margin-right: -12px;
  pointer-events: none;
  border: none;
}

.activity-details {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-title {
  font-size: 13px;
  color: #ffffff;
  font-weight: bold;
}

.activity-desc {
  font-size: 12px;
  color: #a0a0a0;
}

.activity-time {
  font-size: 11px;
  color: #bfa3e6;
  margin-top: 2px;
}

.time-badge {
  display: inline-flex;
  align-items: center;
  background: #140a21;
  border: 1px solid #3d2459;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #bfa3e6;
  margin-top: 4px;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: none;
}

.time-part {
  display: inline-block;
  max-width: 45px;
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.time-part.hidden {
  max-width: 0;
  opacity: 0;
}

.time-tz {
  margin-left: 6px;
}