:root {
  --bg: #040405;
  --bg-2: #08080b;
  --panel: rgba(15, 15, 20, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: rgba(255, 255, 255, 0.62);
  --muted-2: rgba(255, 255, 255, 0.38);
  --red: #ef4444;
  --green: #22c55e;
  --yellow: #f59e0b;
  --danger: #ef4444;
  --violet: #403163;
  --gray: #6b7280;
  --radius: 30px;
  --shadow:
    0 10px 30px rgba(0, 0, 0, 0.34),
    0 24px 80px rgba(0, 0, 0, 0.5);
}

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

html,
body {
  min-height: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  background:
    radial-gradient(circle at top,rgba(139, 92, 246, 0.10), transparent 24%),
    radial-gradient(circle at 80% 20%,rgba(168, 85, 247, 0.04), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-gif-burat {
  position: fixed;
  inset: 0;
  background-image: url("/assets/bg.gif");
  background-repeat: repeat;
  background-size: 72px 72px;
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
  image-rendering: pixelated;
  animation: gifDrift 40s linear infinite;
  mix-blend-mode: screen;
  filter: brightness(1.2) contrast(1.2);
}

.page-gif-bg {
  position: fixed;
  inset: 0;
  background-image: url("/assets/background.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
  image-rendering: smooth;
  mix-blend-mode: screen;
  filter: brightness(1.2) contrast(1.2);
}

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

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 0.6px, transparent 0.6px);
  background-size: 7px 7px;
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.2;
  animation: floatBlob 14s ease-in-out infinite;
}

.blob-1 {
  width: 340px;
  height: 340px;
  top: 8%;
  left: -70px;
  background: var(--violet);
}

.blob-2 {
  width: 420px;
  height: 420px;
  top: 35%;
  right: -130px;
  background: var(--violet);
  animation-duration: 18s;
}

.blob-3 {
  width: 280px;
  height: 280px;
  bottom: -70px;
  left: 30%;
  background: var(--violet);
  animation-duration: 16s;
}

.mouse-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.16),
    transparent 65%
  );
  filter: blur(40px);
  transform: translate(-50%, -50%);
  opacity: 0.9;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .page-gif-bg,
  .blob,
  .card,
  .members-hero,
  .loading-spinner {
    animation: none;
  }

  .mouse-glow {
    display: none;
  }
}

.wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.header-wrapper {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 14px 28px 0;
}

.site-header {
  position: relative;
  width: min(1260px, 100%);
  margin: 0 auto;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 3px solid var(--violet);
  border-radius: 18px;
  background: rgba(10, 10, 12, 0.82);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(139, 92, 246, 0.12),
    transparent 28%,
    transparent 72%,
    rgba(168, 85, 247, 0.05)
  );
}

.home-header {
  max-width: 1260px;
}

.brand,
.brand-logo-only {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-logo-image {
  width: auto;
  height: 38px;
  display: block;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-copy strong {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-copy small,
.header-note {
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links > a:not(.discord-icon-login) {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
}

.nav-links > a:not(.discord-icon-login):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.discord-icon-login {
  min-height: 40px;
  padding: 0 13px 0 10px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 11px;
  background: rgba(139, 92, 246, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.discord-icon-login:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 92, 246, 0.7);
  background: rgba(139, 92, 246, 0.22);
}

.discord-icon-login img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  filter: brightness(1.2);
}

.home-page {
  overflow-y: auto;
}

.home-page .wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-page .home-hero {
  flex: 1;
}

.home-hero {
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 22px 24px;
}

.logo-home {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px 32px;
}

.logo-home-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-title-image {
  width: min(720px, 88vw);
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.hero-description-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-description {
  width: min(660px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.dashboard {
  max-width: 600px;
  margin: 80px auto;
  display: grid;
  gap: 14px;
}

.dashboard input,
.dashboard textarea {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #333;
  background: #111;
  color: white;
}

.dashboard button {
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: #5865f2;
  color: white;
  cursor: pointer;
}

.profile-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #050505;
  overflow: hidden;
}

#profileBg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.45);
  transform: scale(1.05);
  z-index: -1;
}

.profile-card {
  width: min(90vw, 520px);
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.4);
}

.profile-links {
  margin: 24px 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.members-main {
  width: min(1320px, calc(100% - 30px));
  margin: 0 auto;
  padding: 120px 0 80px;
}

.members-hero {
  text-align: center;
  margin-bottom: 34px;
  animation: fadeUp 0.8s ease;
}

.members-loading {
  width: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.16);
  border-top-color: #ef4444;
  animation: spin 0.8s linear infinite;
}

.members-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 900;
  background: linear-gradient(90deg, #ffffff, #fca5a5 30%, #ef4444 60%, #7f1d1d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.members-hero p {
  margin: 14px auto 0;
  max-width: 700px;
  color: var(--muted);
  line-height: 1.7;
}

.container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  perspective: 1400px;
}

.row,
.members-flat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.owner-row {
  grid-template-columns: repeat(auto-fit, minmax(320px, 370px));
  justify-content: center;
}

.card {
  position: relative;
  min-height: 440px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  isolation: isolate;
  will-change: transform;
}

.card:hover {
  border-color: rgba(239, 68, 68, 0.28);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.55),
    0 12px 36px rgba(127, 29, 29, 0.28);
}

.card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

.avatar-wrap {
  position: relative;
  width: 138px;
  height: 138px;
  margin: 16px auto 18px;
  transform: translateZ(38px);
}

.avatar-ring {
  display: none;
}

.avatar {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.avatar-decoration {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: contain;
  pointer-events: none;
  z-index: 3;
}

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.name {
  font-size: 1.55rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.03em;
}

.role {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.activity-box {
  text-align: center;
  margin-top: 18px;
  min-height: 95px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.activity {
  margin-top: 8px;
  color: #f5d5d5;
  line-height: 1.45;
  font-size: 0.95rem;
  word-break: break-word;
  min-height: 48px;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.activity.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.activity.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.role-section {
  margin-bottom: 25px;
}

.role-title {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
  margin: 10px 0;
  padding-left: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.status-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  animation: pulseStatus 2s ease-in-out infinite;
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.8);
}

.status-dot.idle {
  background: var(--yellow);
}

.status-dot.dnd {
  background: var(--danger);
}

.status-dot.offline {
  background: var(--gray);
  animation: none;
}

.status {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status.online {
  background: rgba(34, 197, 94, 0.14);
  color: #7cf2a5;
}

.status.idle {
  background: rgba(245, 158, 11, 0.14);
  color: #ffcb66;
}

.status.dnd {
  background: rgba(239, 68, 68, 0.14);
  color: #ffa1a1;
}

.status.offline {
  background: rgba(107, 114, 128, 0.16);
  color: #c5cad4;
}

@keyframes floatBlob {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(20px, -26px, 0) scale(1.05); }
}

@keyframes pulseStatus {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.82); opacity: 0.72; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gifDrift {
  from { background-position: 0 0; }
  to { background-position: 64px 64px; }
}

@media (max-width: 960px) {
  .site-header {
    border-radius: 28px;
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header-wrapper {
    position: relative;
    top: 0;
    padding: 14px 14px 0;
  }

  .site-header,
  .home-header {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border-radius: 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .header-logo-image {
    height: 34px;
  }

  .nav-links {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .nav-links > a:not(.discord-icon-login) {
    padding: 8px 10px;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .discord-icon-login {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .discord-icon-login img {
    width: 22px;
    height: 22px;
  }

  .home-page .home-hero,
  .logo-home {
    min-height: calc(100vh - 88px);
    padding: 24px 16px 28px;
  }

  .hero-title-image {
    width: min(220px, 68vw);
    transform: translateX(-12px);
  }

  .hero-description-box {
    width: 100%;
    max-width: 290px;
    padding: 12px 16px;
    border-radius: 16px;
  }

  .mouse-glow,
  .blob {
    display: none;
  }

  .page-gif-bg {
    background-size: 52px 52px;
    opacity: 0.22;
  }
}

@media (max-width: 480px) {
  .header-wrapper {
    padding: 12px 12px 0;
  }

  .site-header,
  .home-header {
    padding: 10px 14px;
    gap: 10px;
  }

  .header-logo-image {
    height: 30px;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links > a:not(.discord-icon-login) {
    padding: 6px 8px;
    font-size: 0.88rem;
  }

  .discord-icon-login {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .hero-title-image {
    width: min(190px, 64vw);
  }

  .hero-description-box {
    max-width: 270px;
    padding: 11px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *:not(.loading-spinner),
  *:not(.loading-spinner)::before,
  *:not(.loading-spinner)::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes loadingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-spinner {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  border: 2px solid rgba(255,255,255,0.25) !important;
  border-top-color: #ef4444 !important;
  border-radius: 50% !important;
  animation-name: loadingSpin !important;
  animation-duration: 0.75s !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
}