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

html, body {
  width: 100%;
  height: 100%;
  background-color: #08080a;
  background-image: radial-gradient(circle at 50% 30%, #14141c 0%, #060608 85%);
  color: #e4e4e7;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.light-mode {
  background-color: #f4f4f5;
  background-image: radial-gradient(circle at 50% 30%, #ffffff 0%, #e4e4e7 85%);
  color: #18181b;
}

body.light-mode .cardbox,
body.light-mode .livecard,
body.light-mode .discordcard {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

body.light-mode .herotitle,
body.light-mode .cardtitle,
body.light-mode .nowtitle,
body.light-mode .statustitle,
body.light-mode .countnumber,
body.light-mode .discordusername {
  color: #09090b;
}

body.light-mode .tabbtn {
  color: #52525b;
}

body.light-mode .tabbtn.active {
  color: #09090b;
  background: rgba(0, 0, 0, 0.08);
}

body.light-mode .navwrapper {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #08080a;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.splashscreen {
  position: fixed;
  inset: 0;
  background-color: #08080a;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.splashscreen.hide {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.splashcontent {
  text-align: center;
}

.splashlogo {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  color: #ffffff;
}

.splashsub {
  margin-top: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: #a1a1aa;
  letter-spacing: 0.5px;
  animation: pulseanim 2s infinite ease-in-out;
}

@keyframes pulseanim {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1.0; }
}

.topnav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
}

.navwrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(14, 14, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(28px);
  padding: 8px 18px;
  border-radius: 36px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  gap: 10px;
}

.navbrand {
  display: none;
}

.navtabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tabbtn {
  border: none;
  background: transparent;
  color: #8e8e9e;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tabbtn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.tabbtn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0,0,0,0.35);
}

.hovercard {
  position: absolute;
  bottom: calc(100% + 14px);
  top: auto;
  left: 0;
  background: rgba(14, 14, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 180px;
  z-index: 501;
}

.hovercard.show {
  opacity: 1;
  transform: translateY(0);
}

.popuptitle {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.popupdesc {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #8e8e9e;
  line-height: 1.4;
}

.statuspill {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.navsep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 13px;
  margin-right: 2px;
}

.statusdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.statustext {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: #a1a1aa;
}

.navbullet {
  color: #52525b;
  font-size: 12px;
}

.topclock {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #a1a1aa;
}

.themetoggle,
.mutebutton {
  background: none;
  border: none;
  color: #a1a1aa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.themetoggle:hover,
.mutebutton:hover {
  color: #ffffff;
}

.mainwrapper {
  width: 100%;
  max-width: 1000px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 60px 24px 120px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  position: relative;
  animation: slaponanim 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slaponanim {
  0% {
    opacity: 0;
    transform: scale(1.12) translateY(-24px);
  }
  70% {
    transform: scale(0.98) translateY(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.leftcol {
  flex: 1;
  max-width: 640px;
}

.herobox {
  margin-bottom: 36px;
  text-align: center;
}

.heronamerow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.heroavatar {
  width: 100px;
  height: 100px;
  border-radius: 26px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.herotitle {
  font-size: 76px;
  font-weight: 800;
  letter-spacing: -3px;
  color: #ffffff;
  line-height: 0.95;
}

.herobio {
  margin-top: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: #8e8e9e;
  letter-spacing: -0.2px;
}

.subtimeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #71717a;
  margin-top: 14px;
}

.homecardgrid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.discordcard {
  background: rgba(18, 18, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discordhead {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discordstatuslabel {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #8e8e9e;
}

.discorduserrow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.discordcardpfp {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.discorduserinfo {
  display: flex;
  flex-direction: column;
}

.discordusername {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.discordstatusmsg {
  font-size: 13px;
  color: #8e8e9e;
  margin-top: 2px;
}

.discordcardlink {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #8e8e9e;
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.2s ease;
}

.discordcardlink:hover {
  color: #ffffff;
}

.tabcontainer {
  position: relative;
  width: 100%;
}

.tabcontent {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tabcontent.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nowheader {
  margin-bottom: 24px;
  text-align: center;
}

.nowsub {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #71717a;
  display: block;
  margin-bottom: 6px;
}

.nowtitle {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -2px;
  color: #ffffff;
  line-height: 1.0;
}

.nowdesc {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: #71717a;
  margin-top: 8px;
}

.livegrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.livecard {
  background: rgba(18, 18, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

.cardtop {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.cardicon {
  color: #71717a;
  display: flex;
  align-items: center;
}

.cardhead {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #8e8e9e;
  letter-spacing: 0.5px;
}

.cardbody {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.statusheading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.statustitle {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.devicebadge {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
}

.statussubtext {
  font-size: 13px;
  color: #71717a;
  margin-top: 10px;
}

.countrow {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.countnumber {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.countlabel {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: #71717a;
}

.countdesc {
  font-size: 12px;
  color: #71717a;
  margin-top: 8px;
}

.activitytext {
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
}

.activityempty {
  font-size: 13px;
  color: #71717a;
}

.spotifytrack {
  font-size: 15px;
  font-weight: 700;
  color: #4ade80;
}

.spotifyartist {
  font-size: 13px;
  color: #a1a1aa;
  margin-top: 4px;
}

.spotifyempty {
  font-size: 13px;
  color: #71717a;
}

.nouserid {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #f87171;
}

.cardbox {
  background: rgba(18, 18, 24, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.profileheadicon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a1a1aa;
  margin-bottom: 12px;
}

.profilesvclabel {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
}

.cardtitle {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.cardtext {
  font-size: 14px;
  line-height: 1.6;
  color: #a1a1aa;
}

.cardlinks {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cardlink {
  color: #ffffff;
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.cardlink:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.tagbox {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tagitem {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #d4d4d8;
}

.projectgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.projectitem {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  border-radius: 14px;
  text-decoration: none;
  display: block;
  transition: all 0.25s ease;
}

.projectitem:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.projectname {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.projectdesc {
  font-size: 12px;
  color: #71717a;
}

.rightcol {
  width: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rightwrapper {
  text-align: center;
}

.rightclock {
  font-family: "JetBrains Mono", monospace;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
}

.rightcountry {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #71717a;
  margin-top: 6px;
}

.statusdetail1 {
  font-size: 13px;
  color: #a1a1aa;
  margin-top: 24px;
  font-weight: 600;
}

.statusdetail2 {
  font-size: 13px;
  color: #71717a;
  margin-top: 10px;
  max-width: 220px;
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
}

.draggable-item {
  cursor: grab;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hold-active {
  cursor: grabbing !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.03) !important;
  z-index: 1000 !important;
  position: relative;
}

@media (max-width: 860px) {
  .topnav {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
  }
  .mainwrapper {
    padding: 30px 20px 100px 20px;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .livegrid {
    grid-template-columns: 1fr;
  }
  .projectgrid {
    grid-template-columns: 1fr;
  }
  .rightcol {
    width: 100%;
  }
  .herotitle {
    font-size: 56px;
  }
}
