.noxis-dashboard {
  --nx-bg: #0a0612;
  --nx-bg-gradient: linear-gradient(145deg, #10091c 0%, #08050f 100%);
  --nx-border: #1a1228;
  --nx-purple-border: #2a1b42;
  --nx-muted: #8b80a1;
  --nx-accent: #a855f7;
  --nx-glow: rgba(168, 85, 247, 0.25);
  
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  box-sizing: border-box;
}

.noxis-dashboard * { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

.nx-card {
  background: var(--nx-bg-gradient);
  border: 1px solid var(--nx-purple-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(168,85,247,0.05);
  display: flex;
  flex-direction: column;
}

.nx-card header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding-bottom: 16px; 
  border-bottom: 1px solid var(--nx-border); 
  margin-bottom: 12px; 
}
.nx-card .title-wrap { display: flex; align-items: center; gap: 10px; }
.nx-card .icon-box { width: 22px; height: 22px; border: 2px solid var(--nx-accent); border-radius: 4px; display: grid; place-items: center; box-shadow: 0 0 8px var(--nx-glow); }
.nx-card .icon-box::after { content: ''; width: 8px; height: 8px; background: var(--nx-accent); }
.nx-card h2 { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 800; color: #fff; }
.nx-card .action-link { color: var(--nx-accent); font-size: 11px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; display: none; }

.noxis-events .events,
.noxis-announcements .announcements-list,
.noxis-media .media-list { 
  min-height: 240px; 
  display: flex; 
  flex-direction: column; 
}

.noxis-events .event,
#nx-announcements .event,
.noxis-media .nx-media-row { 
  height: 80px; 
  display: grid; 
  grid-template-columns: 60px 1fr auto; 
  align-items: center; 
  padding: 8px 4px; 
  border-bottom: 1px solid var(--nx-border); 
  border-radius: 8px; 
  transition: background 0.2s, transform 0.15s ease; 
  text-decoration: none;
}

.noxis-events .events .event:last-child,
#nx-announcements .event:last-child,
.noxis-media .nx-media-row:last-child { 
  border-bottom: none !important; 
}

.noxis-events .event:hover,
#nx-announcements .event:hover,
.noxis-media .nx-media-row:hover { 
  background: rgba(124, 58, 237, 0.15); 
}

.noxis-events .date,
#nx-announcements .date,
.noxis-media .date { 
  width: 50px; 
  height: 50px; 
  border-radius: 8px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  background: rgba(168,85,247,0.03); 
  border: 1px solid #9349ed; 
}

.noxis-events .month,
#nx-announcements .month,
.noxis-media .month { 
  color: white; 
  font-size: 10px; 
  font-weight: 800; 
  text-transform: uppercase; 
}

.noxis-events .day,
#nx-announcements .day,
.noxis-media .day { 
  font-size: 16px; 
  font-weight: 800; 
  color: #fff;
}

.noxis-events .content,
#nx-announcements .content,
.noxis-media .content { 
  padding: 0 12px; 
  overflow: hidden; 
}

.noxis-events .event-name,
#nx-announcements .event-name,
.noxis-media .event-name { 
  font-size: 14px; 
  font-weight: 700; 
  color: #fff; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}

.noxis-events .time, 
.noxis-events .description,
#nx-announcements .time,
.noxis-media .time { 
  color: #a857ff; 
  font-size: 11px; 
  margin-top: 2px; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}

.noxis-events .event-img { width: 30px; height: 30px; object-fit: cover; border-radius: 6px; }
.noxis-events .status { color: var(--nx-accent); font-size: 10px; font-weight: 700; text-transform: uppercase; }

.status-bar { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border: 1px solid #321b51; border-radius: 8px; background: rgba(7,4,14,0.75); margin-bottom: 12px; }
.online { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; color: #25d878; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #25d878; box-shadow: 0 0 8px rgba(37,216,120,0.7); }
.stats { display: flex; gap: 12px; font-size: 10px; font-weight: 700; color: #d5d0dd; }
.section-title { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: #8955b9; text-transform: uppercase; margin-bottom: 8px; }

.activity { min-height: 240px; display: flex; flex-direction: column; }
.activity-item { display: flex; align-items: center; height: 48px; border-radius: 8px; transition: background 0.2s; padding: 0 4px; }
.activity-item:hover { background: rgba(137,66,214,0.06); }
.avatar { width: 30px; height: 30px; border-radius: 50%; margin-right: 10px; object-fit: cover; border: 1px solid #9349ed; flex-shrink: 0; }
.avatar-fallback { display: grid; place-items: center; background: #5b24a6; color: #fff; font-size: 10px; font-weight: 700; }
.activity-content { min-width: 0; flex: 1; }
.activity-top { display: flex; align-items: center; gap: 6px; }
.username { font-size: 11px; font-weight: 800; color: #a95cf1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-text { font-size: 10px; color: #aaa2b5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-time { font-size: 8px; color: #665d70; margin-left: 8px; flex-shrink: 0; }
.join-badge { padding: 1px 4px; border-radius: 3px; background: rgba(37,216,120,0.1); color: #25d878; font-size: 7px; font-weight: 800; }

.msg { height: 240px; display: grid; place-items: center; color: var(--nx-muted); font-size: 12px; }
.widget-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(82,43,119,0.25); display: flex; justify-content: space-between; font-size: 8px; color: #534b5d; }
.discord-link { color: #8955b9; text-decoration: none; font-weight: 700; }
.discord-link:hover { color: #b26cff; }

.mock-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.mock-dashboard .nx-card {
  width: 100%;
  box-sizing: border-box;
}

.mock-card,
.bottom-col,
.nx-card {
  background: linear-gradient(180deg, rgba(15,10,29,0.96), rgba(8,5,18,0.96)) !important;
  border: 1px solid rgba(122,69,193,0.28) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.015), 0 15px 45px rgba(0,0,0,0.18) !important;
}

.mock-card-head,
.col-header,
.nx-card header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 31px !important;
  padding: 0 0 0.75rem 0 !important;
  margin-bottom: 0.75rem !important;
  border-bottom: 1px solid rgba(124,58,237,0.16) !important;
}

.mock-card-title,
.col-title,
.nx-card h2 {
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.025em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
}

.mock-icon,
.col-title-icon,
.nx-card .icon-box {
  color: #9b4cff !important;
  font-size: 1.15rem !important;
}

.mock-event-row,
.event-item,
.noxis-events .event,
#nx-announcements .event,
.noxis-media .nx-media-row,
.mock-person,
.activity-item {
  border-bottom: 1px solid rgba(124,58,237,0.11) !important;
}

.mock-event-row:last-child,
.event-item:last-child,
.noxis-events .event:last-child,
#nx-announcements .event:last-child,
.noxis-media .nx-media-row:last-child,
.mock-person:last-child,
.activity-item:last-child {
  border-bottom: none !important;
}

.clickable-event {
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.clickable-event:hover {
  background: rgba(124, 58, 237, 0.15);
  transform: translateX(3px);
}

.nx-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5, 3, 14, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nx-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nx-event-modal-card {
  position: relative;
  width: min(480px, 90vw);
  background: #0e0920;
  border: 1px solid rgba(160, 90, 255, 0.4);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 35px rgba(124, 58, 237, 0.4);
  display: flex;
  flex-direction: column;
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.nx-modal-overlay.active .nx-event-modal-card {
  transform: scale(1);
}

.nx-event-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.nx-event-modal-close:hover {
  background: rgba(124, 58, 237, 0.8);
}

.nx-event-modal-banner {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.nx-event-modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nx-event-modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.nx-event-modal-title {
  font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.nx-event-modal-time {
  font-size: 0.85rem;
  color: #b47dff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.nx-event-modal-location {
  font-size: 0.88rem;
  color: #c4b5fd;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nx-event-modal-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #dbd2ec;
  margin-bottom: 1.25rem;
}

.nx-event-modal-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  justify-content: flex-end;
}

.nx-event-modal-btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #5865f2;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nx-event-modal-btn-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.nx-announcement-modal-card {
  position: relative;
  width: min(650px, 92vw);
  max-height: 85vh;
  padding: 1.5rem;
  box-sizing: border-box;
  background: #110b24;
  border: 1px solid rgba(160, 90, 255, 0.4);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 35px rgba(124, 58, 237, 0.4);
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.nx-modal-overlay.active .nx-announcement-modal-card {
  transform: scale(1);
}

.nx-announcement-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.nx-announcement-modal-close:hover {
  background: rgba(124, 58, 237, 0.8);
}

.nx-announcement-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.nx-announcement-modal-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--nx-accent);
  object-fit: cover;
}

.nx-announcement-modal-title {
  font-size: 1.2rem;
  margin-bottom: 2px;
  font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff;
}

.nx-announcement-modal-time {
  font-size: 0.85rem;
  color: #a855f7;
  margin-bottom: 0;
}

.nx-announcement-modal-banner {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.nx-announcement-modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nx-announcement-modal-desc.nx-scrollable-content {
  max-height: 50vh;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #dbd2ec;
  padding-right: 8px;
  margin-top: 0.75rem;
}

.discord-h1 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 1rem 0 0.5rem 0;
}

.discord-h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.85rem 0 0.4rem 0;
}

.discord-h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #eeeeee;
  margin: 0.75rem 0 0.3rem 0;
}

.discord-channel {
  background: rgba(88, 101, 242, 0.25);
  color: #c9cdfb;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
}

.discord-mention {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 600;
}

.nx-announcement-modal-desc.nx-scrollable-content::-webkit-scrollbar {
  width: 6px;
}

.nx-announcement-modal-desc.nx-scrollable-content::-webkit-scrollbar-track {
  background: rgba(15, 10, 29, 0.6);
  border-radius: 4px;
}

.nx-announcement-modal-desc.nx-scrollable-content::-webkit-scrollbar-thumb {
  background: #a855f7;
  border-radius: 4px;
}

.nx-announcement-modal-desc.nx-scrollable-content::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
}

.discord-custom-emoji {
  width: 1.35em;
  height: 1.35em;
  vertical-align: -0.2em;
  display: inline-block;
  object-fit: contain;
}

.discord-mention.discord-role {
  background: rgba(235, 69, 158, 0.2);
  color: #f47fff;
  border: 1px solid rgba(235, 69, 158, 0.4);
}

.noxis-media .media-list {
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.media-badge-live {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(37, 216, 120, 0.15);
  color: #25d878;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(37, 216, 120, 0.3);
}

.media-badge-video {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.15);
  color: #b873ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.nx-video-title {
  color: #dbd2ec;
  font-weight: 600;
}