:root {
  --hero-image: url("/assets/images/banner.jpg");
  --bg: #120716;
  --bg-soft: #211028;
  --surface: rgba(23, 12, 35, 0.7);
  --surface-strong: rgba(19, 9, 30, 0.92);
  --text: #f7f0ff;
  --muted: #c8b8dc;
  --accent: #ff4ebd;
  --accent-2: #36e6f5;
  --accent-3: #ff9f5b;
  --border: rgba(255, 255, 255, 0.14);
  --radius: 18px;
  --shadow: 0 18px 48px rgba(5, 0, 12, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #0e0613 0%, #13091d 40%, #0f0918 100%);
  font-family: "Manrope", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.site-bg::before,
.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}

.site-bg::before {
  inset: -7%;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.2) brightness(0.74);
  transform: scale(1.16);
  opacity: 0.88;
}

.site-bg::after {
  background:
    linear-gradient(180deg, rgba(8, 4, 12, 0.58), rgba(10, 6, 17, 0.66)),
    radial-gradient(42% 30% at 15% 8%, rgba(255, 78, 189, 0.25), rgba(0, 0, 0, 0)),
    radial-gradient(35% 28% at 92% 22%, rgba(54, 230, 245, 0.19), rgba(0, 0, 0, 0)),
    radial-gradient(40% 35% at 78% 84%, rgba(255, 159, 91, 0.13), rgba(0, 0, 0, 0));
  animation: bgShift 14s ease-in-out infinite alternate;
}

@keyframes bgShift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -1.4%, 0) scale(1.04);
  }
}

.container {
  width: min(1120px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(22px) saturate(1.18);
  background: rgba(12, 6, 20, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--accent), #ff77d0 42%, var(--accent-2));
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(255, 78, 189, 0.35);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #19071e;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.brand-mark.logo-fallback .brand-logo {
  display: none;
}

.brand-mark.logo-fallback .brand-fallback {
  display: grid;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 1.02rem;
  line-height: 1.1;
}

.brand-text small {
  font-size: 0.75rem;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-nav a {
  padding: 0.62rem 0.9rem;
  border-radius: 12px;
  color: #e8dbfa;
  font-size: 0.94rem;
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  padding: 0.58rem 0.85rem;
}

h1,
h2,
h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.06;
}

h1 {
  font-size: clamp(3.1rem, 10vw, 6.3rem);
}

h2 {
  font-size: clamp(2rem, 6vw, 3.3rem);
}

h3 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

p {
  margin: 0;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 80vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: -4% -2% -2%;
  background-image:
    linear-gradient(180deg, rgba(8, 2, 15, 0.12), rgba(8, 2, 13, 0.48)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: saturate(1.1) contrast(1.03);
  z-index: -1;
  transition: transform 0.2s linear;
}

.hero::before {
  content: "";
  position: absolute;
  inset: clamp(4.2rem, 11vh, 6.8rem) -14% clamp(2.8rem, 9vh, 5.2rem) -10%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(80% 126% at 32% 48%, rgba(7, 2, 11, 0.76) 0%, rgba(7, 2, 11, 0.62) 34%, rgba(7, 2, 11, 0.42) 56%, rgba(7, 2, 11, 0.2) 76%, rgba(7, 2, 11, 0) 100%),
    radial-gradient(42% 58% at 24% 37%, rgba(255, 112, 206, 0.18) 0%, rgba(255, 112, 206, 0) 74%),
    radial-gradient(34% 44% at 58% 63%, rgba(54, 230, 245, 0.12) 0%, rgba(54, 230, 245, 0) 72%);
  filter: blur(18px) saturate(1.06);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 3, 12, 0.5) 10%, rgba(8, 3, 12, 0.2) 46%, rgba(8, 3, 12, 0.5) 100%);
  z-index: -1;
}

.hero-image-missing .hero-media {
  background-image:
    linear-gradient(180deg, rgba(8, 2, 15, 0.18), rgba(8, 2, 13, 0.72)),
    linear-gradient(140deg, rgba(255, 78, 189, 0.2), rgba(27, 15, 38, 0.9) 40%, rgba(54, 230, 245, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 11vh, 7rem) 0 4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #f7a4da;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.hero-copy {
  max-width: 62ch;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.52);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.28rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  background-clip: padding-box;
  outline: none;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid rgba(127, 245, 255, 0.65);
  outline-offset: 2px;
}

.btn-primary {
  color: #120715;
  background: linear-gradient(130deg, #ff4ebd, #ff8fd9 52%, #7ff6ff);
  box-shadow: 0 12px 26px rgba(255, 78, 189, 0.34);
}

.btn-secondary {
  border-color: rgba(255, 140, 214, 0.36);
  background: linear-gradient(140deg, rgba(38, 16, 55, 0.92), rgba(20, 27, 46, 0.92));
  color: #f3e8ff;
  box-shadow: inset 0 0 0 1px rgba(125, 230, 242, 0.16);
}

.stats-grid {
  margin-top: 1.85rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid.compact {
  margin-top: 0;
}

.stat-card {
  padding: 1rem 1rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(14px) saturate(1.18);
  box-shadow: var(--shadow);
}

.stat-card span {
  color: #dcc7f2;
  font-size: 0.85rem;
  display: block;
}

.stat-card strong {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

#server-status.online {
  color: #6fffd6;
}

#server-status.offline {
  color: #ff9da0;
}

#stat-discord-status.status-online {
  color: #6fffd6;
}

#stat-discord-status.status-idle {
  color: #ffe39b;
}

#stat-discord-status.status-dnd {
  color: #ff9aa6;
}

#stat-discord-status.status-offline {
  color: #c5b8d8;
}

#stat-discord-status.status-muted {
  color: #d8caec;
  font-size: clamp(1.06rem, 2.6vw, 1.45rem);
}

.section {
  padding: clamp(3rem, 8vh, 5rem) 0;
}

.section-accent {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-head {
  margin-bottom: 1.2rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: linear-gradient(160deg, rgba(29, 15, 46, 0.68), rgba(12, 9, 24, 0.66));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  backdrop-filter: blur(13px) saturate(1.14);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.36rem;
}

.rules-stack {
  display: grid;
  gap: 1rem;
}

.rule-card {
  padding: 1.2rem 1.25rem;
}

.rule-card h3 {
  margin-bottom: 0.65rem;
}

.rule-body {
  display: grid;
  gap: 0.62rem;
}

.rule-body p {
  margin: 0;
  color: #e8dbfb;
}

.rule-body ul {
  margin: 0.1rem 0 0.15rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.25rem;
}

.rule-body li {
  color: #e7d8f7;
}

.card .tag {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.product-card .price {
  color: #ffe39b;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0.2rem 0 0.6rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
}

.panel {
  background: linear-gradient(160deg, rgba(20, 11, 34, 0.78), rgba(14, 8, 24, 0.8));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  backdrop-filter: blur(14px) saturate(1.16);
}

.check-list {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
}

.check-list li {
  margin-bottom: 0.38rem;
  color: #e2d2f4;
}

.check-list.small {
  margin-bottom: 1rem;
}

.ordered-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
}

.ordered-list li {
  margin-bottom: 0.4rem;
  color: #e1d0f2;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(23, 12, 35, 0.72), rgba(13, 10, 25, 0.68));
  border-radius: 14px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(12px) saturate(1.12);
}

.page-hero {
  padding: clamp(5.2rem, 10vh, 7rem) 0 2rem;
}

.page-hero p {
  max-width: 70ch;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(23, 12, 35, 0.72), rgba(13, 10, 25, 0.68));
  backdrop-filter: blur(12px) saturate(1.12);
}

.faction-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 680px;
}

.faction-table th,
.faction-table td {
  text-align: left;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faction-table th {
  color: #f6dcff;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge {
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.taken {
  color: #ffd6da;
  background: rgba(255, 92, 108, 0.2);
}

.badge.open {
  color: #b2fff0;
  background: rgba(64, 216, 195, 0.2);
}

.gallery-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.gallery-item {
  grid-column: span 4;
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 2, 9, 0.15), rgba(5, 2, 9, 0.82)),
    linear-gradient(120deg, rgba(255, 78, 189, 0.28), rgba(54, 230, 245, 0.28)),
    #170c25;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  text-align: left;
  cursor: pointer;
  padding: 1rem;
  color: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.gallery-item:nth-child(5n + 1),
.gallery-item:nth-child(5n + 4) {
  grid-column: span 6;
}

.gallery-item span {
  display: block;
  width: 100%;
  padding: 0.55rem 0.62rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(13, 8, 23, 0.78), rgba(13, 8, 23, 0.5));
}

.gallery-item strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-item small {
  color: #ebddfc;
  font-size: 0.84rem;
  line-height: 1.35;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.gallery-count {
  display: inline-block;
  margin-top: 0.42rem;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.74rem;
  color: #bdf7ff;
  background: rgba(7, 17, 30, 0.6);
  border: 1px solid rgba(127, 246, 255, 0.25);
}

.gallery-item.fallback {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 180px;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 45;
  padding: 1.1rem;
  background: rgba(5, 2, 10, 0.82);
}

.gallery-modal.open {
  display: grid;
}

.gallery-modal img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  object-fit: contain;
}

.gallery-modal p {
  margin-top: 0.7rem;
  color: #f0e4ff;
  text-align: center;
  max-width: min(1000px, 92vw);
  line-height: 1.45;
  word-break: break-word;
}

.gallery-modal-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
}

.gallery-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 6, 18, 0.66);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-nav[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.gallery-modal-index {
  margin-top: 0.2rem;
  color: #d8caec;
  font-size: 0.86rem;
}

.gallery-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.profile-auth-card {
  display: grid;
  gap: 0.85rem;
}

.profile-auth-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: min(420px, 100%);
}

.profile-user-copy {
  display: grid;
  gap: 0.18rem;
}

.profile-user-copy h3 {
  margin: 0;
}

.profile-user-copy p {
  margin: 0;
}

.profile-avatar-shell {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(145deg, rgba(255, 78, 189, 0.88), rgba(127, 246, 255, 0.78));
  box-shadow: 0 10px 24px rgba(255, 78, 189, 0.28);
  flex: 0 0 72px;
  display: block;
}

.profile-avatar-shell[hidden] {
  display: none !important;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  display: block;
  background: rgba(18, 7, 25, 0.9);
  object-position: center;
}

#profile-auth-card #profile-avatar {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

.profile-auth-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-auth-card.is-guest .profile-user {
  min-width: 0;
}

.profile-auth-card .btn {
  min-width: 168px;
}

.profile-auth-card .btn.btn-secondary {
  min-width: 128px;
}

.is-hidden {
  display: none !important;
}

.profile-note {
  width: 100%;
  font-size: 0.92rem;
  color: #e7d8fb;
}

.profile-note.error {
  color: #ffc8cf;
}

.profile-kv {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.profile-kv li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.45rem;
}

.profile-kv span {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-kv strong {
  color: #f7efff;
  font-size: 0.96rem;
  text-align: right;
}

.profile-form {
  display: grid;
  gap: 0.6rem;
}

.profile-form label {
  font-size: 0.92rem;
  color: #ebddfc;
}

.profile-form input[type="text"],
.profile-form textarea,
.profile-form input[type="file"] {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(10, 5, 18, 0.56);
  color: #f7efff;
  border-radius: 12px;
  padding: 0.62rem 0.72rem;
  font: inherit;
}

.profile-form textarea {
  resize: vertical;
  min-height: 92px;
}

.profile-events-manage {
  margin-top: 1rem;
}

.profile-events-list {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.7rem;
}

.profile-event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 8, 24, 0.52);
}

.profile-event-copy h4 {
  margin: 0 0 0.2rem;
  font-size: 1.08rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
}

.profile-event-copy p {
  margin: 0;
  font-size: 0.92rem;
  color: #ded0f0;
}

.profile-event-copy small {
  display: block;
  margin-top: 0.25rem;
  color: #bcaed2;
  font-size: 0.8rem;
}

.profile-event-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.profile-event-actions .btn {
  min-width: 92px;
  padding: 0.5rem 0.85rem;
  font-size: 0.86rem;
}


.team-groups {
  display: grid;
  gap: 1rem;
}

.team-group {
  display: grid;
  gap: 0.8rem;
}

.team-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.team-group-head span {
  color: #d7c8eb;
  font-size: 0.9rem;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(10, 5, 18, 0.5);
  padding: 0.62rem;
}

.team-member img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 5, 15, 0.9);
}

.team-member-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.team-member-copy strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-member-copy small {
  color: #ccbddd;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-member-copy span {
  color: #8ff8ff;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 1.2rem 0;
  background: rgba(9, 4, 14, 0.62);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-links a {
  color: #ead8fe;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    top: calc(100% + 0.4rem);
    border-radius: 14px;
    background: rgba(12, 6, 20, 0.95);
    border: 1px solid var(--border);
    padding: 0.5rem;
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.72rem 0.82rem;
  }

  .stats-grid,
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    grid-column: span 6;
  }

  .hero::before {
    inset: 5.1rem -18% 2.2rem -15%;
    filter: blur(14px) saturate(1.05);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 1.3rem));
  }

  .stats-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    padding-top: 4.5rem;
  }

  .hero::before {
    inset: 5.4rem -24% 1.5rem -22%;
    filter: blur(12px) saturate(1.04);
  }

  .gallery-item,
  .gallery-item:nth-child(5n + 1),
  .gallery-item:nth-child(5n + 4) {
    grid-column: 1 / -1;
  }

  .profile-auth-main {
    align-items: flex-start;
  }

  .profile-user {
    min-width: 100%;
  }

  .profile-avatar-shell {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    flex-basis: 60px;
  }

  .profile-auth-card .btn,
  .profile-auth-card .btn.btn-secondary {
    min-width: 0;
  }

  .gallery-modal-content {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .gallery-nav {
    justify-self: center;
  }

  .team-members-grid {
    grid-template-columns: 1fr;
  }

  .profile-event-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


