:root {
  --bg: #070b14;
  --bg-2: #101528;
  --panel: rgba(13, 19, 34, 0.76);
  --panel-strong: rgba(14, 20, 36, 0.94);
  --panel-soft: rgba(17, 24, 42, 0.76);
  --line: rgba(169, 180, 214, 0.16);
  --line-strong: rgba(100, 230, 255, 0.42);
  --text: #f2f6ff;
  --muted: #a0abc4;
  --muted-2: #dbe5f6;
  --accent: #69e3ff;
  --accent-2: #9584ff;
  --accent-hot: #ff63ca;
  --success: #3ee0a7;
  --warning: #ffbb66;
  --shadow: 0 30px 80px rgba(2, 8, 14, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse at 12% 8%, rgba(105, 227, 255, 0.13), transparent 30%),
    radial-gradient(ellipse at 88% 86%, rgba(149, 132, 255, 0.15), transparent 33%),
    radial-gradient(ellipse at 78% 12%, rgba(255, 99, 202, 0.07), transparent 24%),
    linear-gradient(135deg, var(--bg) 0%, #0a1020 48%, var(--bg-2) 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  line-height: 1.5;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(169, 180, 214, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 180, 214, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 82%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  top: 8%;
  right: -16%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 227, 255, 0.12), rgba(149, 132, 255, 0.06) 38%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: ambientDrift 14s ease-in-out infinite alternate;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  width: clamp(220px, 34vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.58;
  mix-blend-mode: screen;
  will-change: transform;
}

.ambient-orb--cyan {
  top: -20%;
  left: -12%;
  background: radial-gradient(circle, rgba(31, 205, 255, 0.3), rgba(31, 205, 255, 0.06) 48%, transparent 72%);
  animation: orbDriftOne 18s ease-in-out infinite alternate;
}

.ambient-orb--violet {
  right: -15%;
  bottom: -28%;
  background: radial-gradient(circle, rgba(133, 93, 255, 0.3), rgba(133, 93, 255, 0.05) 48%, transparent 72%);
  animation: orbDriftTwo 22s ease-in-out infinite alternate;
}

.ambient-orb--pink {
  top: 38%;
  left: 34%;
  width: clamp(180px, 22vw, 340px);
  background: radial-gradient(circle, rgba(255, 68, 196, 0.16), rgba(255, 68, 196, 0.03) 48%, transparent 72%);
  animation: orbDriftThree 16s ease-in-out infinite alternate;
}

.ambient-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(115, 214, 255, 0.025) 6px, transparent 7px);
  opacity: 0.5;
  animation: scanlineTravel 18s linear infinite;
}

.card {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  width: 100%;
  background: linear-gradient(145deg, rgba(16, 23, 41, 0.96), rgba(9, 13, 24, 0.94) 56%, rgba(14, 17, 32, 0.96));
  border: 1px solid rgba(169, 180, 214, 0.2);
  border-radius: 1.7rem;
  padding: 2.4rem 2.5rem 1.8rem;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.54), 0 0 70px rgba(105, 227, 255, 0.055);
  backdrop-filter: blur(20px);
  overflow: hidden;
  animation: riseIn 850ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(300px circle at var(--pointer-x, 82%) var(--pointer-y, 0%), rgba(105, 227, 255, 0.1), transparent 68%),
    linear-gradient(110deg, transparent 15%, rgba(105, 227, 255, 0.035) 45%, transparent 72%),
    radial-gradient(ellipse at 100% 0%, rgba(255, 99, 202, 0.08), transparent 30%);
  pointer-events: none;
  transition: background-position 0.15s ease;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), var(--accent-hot), transparent);
  background-size: 220% 100%;
  opacity: 0.72;
  filter: drop-shadow(0 0 7px rgba(105, 227, 255, 0.7));
  pointer-events: none;
  animation: neonSweep 5s ease-in-out infinite;
}

@keyframes ambientDrift {
  from { transform: translate3d(0, 0, 0) scale(0.94); }
  to { transform: translate3d(-9vw, 12vh, 0) scale(1.08); }
}

@keyframes orbDriftOne {
  from { transform: translate3d(0, 0, 0) scale(0.9); }
  to { transform: translate3d(17vw, 15vh, 0) scale(1.12); }
}

@keyframes orbDriftTwo {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-18vw, -16vh, 0) scale(0.86); }
}

@keyframes orbDriftThree {
  from { transform: translate3d(-4vw, 3vh, 0) scale(0.85); opacity: 0.25; }
  to { transform: translate3d(8vw, -7vh, 0) scale(1.15); opacity: 0.62; }
}

@keyframes scanlineTravel {
  from { transform: translateY(-4%); }
  to { transform: translateY(4%); }
}

@keyframes neonSweep {
  0%, 100% { background-position: 100% 0; opacity: 0.35; }
  50% { background-position: 0 0; opacity: 0.9; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.header,
.header-bottom,
.grid-two,
.skill-tags,
.skill-bars,
.contact-area,
.project-card,
.stats-mini,
.extra-stats,
.modal-card,
.stats-row,
.join-area,
.member-item,
.location,
.discord-widget-btn,
.name-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.work-mode {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.badge-tag {
  position: relative;
  z-index: 1;
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.name-title h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--text);
  margin-bottom: 0.45rem;
  line-height: 1;
}

.name-title h1 i {
  color: var(--accent);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-right: 0.55rem;
  filter: drop-shadow(0 0 14px rgba(105, 227, 255, 0.42));
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(105, 227, 255, 0.12), rgba(149, 132, 255, 0.14));
  color: var(--muted-2);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  border: 1px solid rgba(105, 227, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  text-transform: lowercase;
}

.badge-tag i {
  color: var(--accent);
}

.badge-icon {
  margin-right: 0.375rem;
}

.location {
  background: rgba(16, 31, 45, 0.9);
  border: 1px solid var(--line);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: inset 0 0 25px rgba(89, 208, 255, 0.04);
}

.location i {
  color: var(--accent);
  font-size: 0.8rem;
}

.header-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.header-bottom > span {
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.header-techline-icon {
  margin-right: 0.4rem;
}

.discord-widget-btn {
  background: linear-gradient(135deg, rgba(105, 227, 255, 0.16), rgba(149, 132, 255, 0.2));
  color: var(--text);
  border: 1px solid rgba(105, 227, 255, 0.32);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.08);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  animation: ctaFloat 3.4s ease-in-out infinite;
}

.discord-widget-btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.18) 48%, transparent 72%);
  transform: translateX(-120%);
  animation: buttonShine 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes buttonShine {
  0%, 60%, 100% { transform: translateX(-120%); }
  78% { transform: translateX(120%); }
}

@keyframes ctaFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}

.discord-widget-btn:hover {
  transform: scale(1.035);
  translate: 0 -4px;
  border-color: rgba(105, 227, 255, 0.6);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34), 0 0 24px rgba(105, 227, 255, 0.13);
  animation-play-state: paused;
}

.discord-widget-btn i {
  color: var(--accent);
  font-size: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  padding: 0 0 1.4rem;
  margin: 0 0 1.8rem;
  border-bottom: 1px solid var(--line);
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  background: rgba(17, 31, 43, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
}

.skill-tag i {
  color: var(--accent);
  font-size: 0.8rem;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.6fr);
  gap: 2rem;
  align-items: start;
}

.left-panel,
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(145deg, rgba(20, 28, 48, 0.9), rgba(12, 17, 31, 0.82));
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  padding: 1.3rem 1.2rem 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.skill-item .label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted-2);
  letter-spacing: -0.01em;
}

.skill-item .label span:last-child {
  color: var(--accent);
  font-weight: 700;
}

.progress-bg {
  width: 100%;
  height: 10px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 16px rgba(105, 227, 255, 0.42);
  width: 0;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.skill-bars.is-visible .progress-fill {
  width: var(--skill-level);
}

.stats-mini {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  background: linear-gradient(145deg, rgba(20, 28, 48, 0.82), rgba(12, 17, 31, 0.78));
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1rem 1.2rem;
}

.stat-block {
  flex: 1 1 110px;
  text-align: left;
  padding: 0.35rem 0.1rem;
}

.stat-number {
  display: block;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-area {
  background: linear-gradient(145deg, rgba(20, 28, 48, 0.82), rgba(12, 17, 31, 0.78));
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  padding: 1.2rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.94rem;
  color: var(--muted-2);
}

.contact-row i {
  width: 1.5rem;
  color: var(--accent);
  font-size: 0.98rem;
  text-align: center;
}

.contact-discord-name {
  font-weight: 500;
}

.contact-note {
  color: var(--muted);
  font-size: 0.75rem;
  margin-left: 0.2rem;
}

.contact-row a {
  color: var(--muted-2);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-row a:hover {
  border-color: rgba(105, 227, 255, 0.5);
  color: white;
}

.section-title {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
  margin-bottom: 0.1rem;
}

.section-title-icon {
  margin-right: 0.5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  background: linear-gradient(145deg, rgba(20, 28, 48, 0.8), rgba(12, 17, 31, 0.78));
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.15rem 1rem 1rem;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-5px) scale(1.012);
  border-color: rgba(105, 227, 255, 0.55);
  box-shadow: 0 22px 44px rgba(3, 5, 12, 0.48), 0 0 30px rgba(105, 227, 255, 0.12);
}

.count-up {
  font-variant-numeric: tabular-nums;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(4px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.js .project-card {
  transition: opacity 0.7s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.7s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.js .project-card:nth-child(2) { transition-delay: 90ms; }
.js .project-card:nth-child(3) { transition-delay: 180ms; }
.js .project-card:nth-child(4) { transition-delay: 270ms; }

.project-name {
  font-weight: 800;
  font-size: 1.06rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  letter-spacing: -0.04em;
}

.project-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.5rem;
}

.stack-tag {
  background: rgba(12, 20, 28, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--muted-2);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.extra-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 0.35rem;
}

.extra-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted-2);
  font-weight: 700;
  font-size: 0.92rem;
}

.extra-stat-item i {
  color: var(--accent);
  font-size: 0.8rem;
}

.extra-stat-item .rating-star {
  color: #f5b342;
}

.extra-stat-item span {
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.1rem;
}

.extra-stat-item .count-up {
  color: var(--muted-2);
  font-weight: 700;
  margin-left: 0;
}

.footer-note {
  margin-top: 1.5rem;
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.footer-icon {
  margin-right: 0.375rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 14, 0.82);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 1.5rem;
  isolation: isolate;
  overflow: hidden;
}

.modal-overlay.active {
  display: flex;
  animation: overlayReveal 280ms ease both;
}

.modal-overlay::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 36%, rgba(52, 209, 255, 0.2), transparent 36%),
    radial-gradient(ellipse at 72% 60%, rgba(153, 94, 255, 0.2), transparent 38%),
    radial-gradient(ellipse at 72% 20%, rgba(255, 80, 196, 0.12), transparent 32%);
  animation: modalAtmosphere 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes overlayReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalAtmosphere {
  from { transform: translate3d(-2%, -1%, 0) scale(0.96); }
  to { transform: translate3d(2%, 1%, 0) scale(1.04); }
}

.modal-card {
  max-width: 940px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(145deg, rgba(14, 20, 36, 0.98), rgba(7, 10, 20, 0.98));
  border: 1px solid rgba(126, 213, 255, 0.25);
  border-radius: 1.8rem;
  padding: 2rem;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.72), 0 0 56px rgba(78, 195, 255, 0.13);
  position: relative;
  z-index: 1;
  animation: modalFadeIn 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: perspective(1200px) rotateX(7deg) scale(0.94) translateY(22px); }
  to { opacity: 1; transform: perspective(1200px) rotateX(0) scale(1) translateY(0); }
}

.close-modal {
  position: sticky;
  top: 0;
  float: right;
  background: rgba(17, 31, 43, 0.9);
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
  margin-bottom: 0.3rem;
  z-index: 10;
}

.close-modal:hover {
  transform: rotate(90deg);
  border-color: rgba(105, 227, 255, 0.5);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin: 0 0 1.25rem;
  flex-wrap: wrap;
  padding: 1.2rem;
  border: 1px solid rgba(105, 227, 255, 0.18);
  border-radius: 1.5rem;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(105, 227, 255, 0.12), transparent 42%),
    linear-gradient(125deg, rgba(21, 32, 54, 0.96), rgba(13, 17, 33, 0.92));
  position: relative;
  overflow: hidden;
}

.widget-header > * {
  position: relative;
  z-index: 1;
}

.widget-header::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  transform: skewX(-18deg);
  animation: widgetHeaderSweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes widgetHeaderSweep {
  0%, 62%, 100% { left: -45%; }
  82% { left: 120%; }
}

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

.widget-kicker {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.server-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(62, 224, 167, 0.7);
  animation: liveBlink 1.8s ease-in-out infinite;
}

@keyframes liveBlink {
  50% { opacity: 0.45; box-shadow: 0 0 3px rgba(62, 224, 167, 0.35); }
}

.server-icon {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(105, 227, 255, 0.2), rgba(149, 132, 255, 0.24));
  border: 1px solid rgba(105, 227, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.9rem;
  flex-shrink: 0;
  overflow: visible;
  box-shadow: inset 0 0 26px rgba(105, 227, 255, 0.1);
  z-index: 1;
  position: relative;
}

.server-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(105, 227, 255, 0.28);
  border-radius: inherit;
  animation: iconHalo 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes iconHalo {
  0% { opacity: 0.85; transform: scale(0.92); }
  100% { opacity: 0; transform: scale(1.16); }
}

.server-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border-radius: inherit;
}

.server-name {
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.045em;
  color: var(--text);
  line-height: 1.15;
}

.server-name i {
  color: var(--accent);
  margin-right: 0.4rem;
}

.server-presence {
  margin-left: auto;
  background: rgba(10, 30, 34, 0.84);
  border: 1px solid rgba(62, 224, 167, 0.22);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #baf9df;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  box-shadow: 0 0 22px rgba(62, 224, 167, 0.08);
}

.server-presence i {
  color: var(--success);
  font-size: 0.62rem;
  animation: statusPulse 1.8s ease-out infinite;
}

@keyframes statusPulse {
  0% { opacity: 1; filter: drop-shadow(0 0 0 rgba(62, 224, 167, 0.65)); }
  70%, 100% { opacity: 0.78; filter: drop-shadow(0 0 7px rgba(62, 224, 167, 0)); }
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(145deg, rgba(19, 28, 48, 0.92), rgba(11, 16, 30, 0.9));
  border: 1px solid rgba(169, 180, 214, 0.14);
  border-radius: 1.15rem;
  color: var(--muted-2);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(105, 227, 255, 0.08), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.stat-item:hover {
  transform: translateY(-3px);
  border-color: rgba(105, 227, 255, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 22px rgba(105, 227, 255, 0.07);
}

.stat-item:hover::after {
  transform: translateX(120%);
}

.stat-item i {
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--accent);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(105, 227, 255, 0.09);
  border: 1px solid rgba(105, 227, 255, 0.14);
}

.stat-item .number {
  grid-column: 2;
  grid-row: 1;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-item .label {
  grid-column: 2;
  grid-row: 2;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.members-section {
  margin-bottom: 1.2rem;
}

.members-section .title {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.members-title-icon {
  margin-right: 0.375rem;
}

.members-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.8rem;
}

.members-filter {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 14, 25, 0.8);
}

.members-filter button {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.members-filter button[aria-pressed="true"] {
  background: linear-gradient(110deg, rgba(105, 227, 255, 0.2), rgba(149, 132, 255, 0.22));
  color: var(--text);
  box-shadow: 0 0 14px rgba(105, 227, 255, 0.12);
}

.members-filter button:hover {
  color: var(--text);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(120deg, rgba(20, 29, 48, 0.82), rgba(11, 16, 29, 0.78));
  border: 1px solid rgba(169, 180, 214, 0.13);
  border-radius: 0.95rem;
  padding: 0.55rem 0.65rem;
  color: var(--muted-2);
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  animation: memberEnter 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--member-index, 0) * 35ms);
}

.member-item[hidden] {
  display: none;
}

.member-overflow,
.member-empty-filter {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.76rem;
  padding: 0.55rem;
}

.member-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1rem;
}

.member-state--error {
  color: #ff9aab;
}

.member-item:hover {
  transform: translateY(-2px);
  border-color: rgba(105, 227, 255, 0.28);
  background: rgba(18, 30, 48, 0.96);
}

@keyframes memberEnter {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.member-item .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(105, 227, 255, 0.2), rgba(149, 132, 255, 0.2));
  border: 1px solid rgba(105, 227, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text);
  overflow: hidden;
  flex-shrink: 0;
}

.member-item .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-item span[style*="flex:1"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  margin-left: auto;
}

.status-online { background: var(--success); }
.status-idle { background: var(--warning); }
.status-dnd { background: #ff6077; }
.status-offline { background: #7d8fa6; }

.member-status-text {
  font-size: 0.63rem;
  color: var(--muted);
  margin-left: 0.1rem;
  text-transform: lowercase;
}

.join-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(110deg, rgba(15, 28, 44, 0.96), rgba(21, 17, 41, 0.9));
  border: 1px solid rgba(105, 227, 255, 0.2);
  border-radius: 1.2rem;
  padding: 1rem 1.1rem;
  margin-top: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.join-area .info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.join-area .info i {
  color: var(--accent);
}

.btn-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(105, 227, 255, 0.18), rgba(149, 132, 255, 0.22));
  color: var(--text);
  border: 1px solid rgba(105, 227, 255, 0.3);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: ctaFloat 3.8s ease-in-out infinite;
}

.btn-join:hover {
  transform: translateY(-3px) scale(1.035);
  box-shadow: 0 15px 30px rgba(11, 23, 31, 0.4), 0 0 25px rgba(105, 227, 255, 0.12);
  animation-play-state: paused;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .project-card:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .grid-two {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .card {
    padding: 1.5rem 1.05rem 1.3rem;
  }

  .modal-card {
    padding: 1.3rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .widget-header {
    gap: 0.9rem;
    padding: 1rem;
  }

  .server-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .server-presence {
    margin-left: 0;
  }

  .members-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .members-filter {
    align-self: flex-end;
  }

  .header {
    align-items: flex-start;
  }

  .header-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .discord-widget-btn {
    width: 100%;
    justify-content: center;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .join-area {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-join {
    width: 100%;
  }
}

@media (max-width: 500px) {
  body {
    padding: 1.2rem 0.75rem;
  }

  .name-title h1 {
    font-size: 2.3rem;
  }

  .header-bottom > span {
    font-size: 0.8rem;
  }

  .badge-tag,
  .skill-tag,
  .location {
    width: 100%;
    justify-content: center;
  }

  .members-grid {
    grid-template-columns: 1fr;
  }
}
