* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 28rem),
    radial-gradient(circle at 78% 8%, color-mix(in srgb, var(--secondary) 18%, transparent), transparent 24rem),
    var(--bg);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.preloading {
  overflow: hidden;
}

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

img,
video {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #02060a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--secondary));
  border-radius: 999px;
}

.site-shell {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 82%);
  pointer-events: none;
  z-index: -2;
}

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

.hidden {
  display: none !important;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 18rem),
    radial-gradient(circle at 28% 62%, rgba(69, 163, 255, .14), transparent 22rem),
    #020508;
  transition: opacity .35s ease, visibility .35s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-core {
  width: min(360px, calc(100vw - 36px));
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.preloader-core img {
  width: 138px;
  height: 138px;
  object-fit: contain;
  filter: drop-shadow(0 0 34px color-mix(in srgb, var(--primary) 45%, transparent));
  animation: preloaderPulse 1.4s ease-in-out infinite;
}

.preloader-core h1 {
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
}

.preloader-core p {
  margin: 0;
  color: rgba(248,250,252,.46);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .72rem;
}

.preloader-track {
  width: 100%;
  height: 6px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
}

.preloader-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary), #45a3ff);
  box-shadow: 0 0 24px color-mix(in srgb, var(--primary) 55%, transparent);
  transition: width .18s ease;
}

.preloader-core strong {
  color: var(--primary);
  font-size: .82rem;
}

.preloader-skip {
  position: fixed;
  right: 22px;
  bottom: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: rgba(248,250,252,.74);
  background: rgba(255,255,255,.05);
  padding: 10px 16px;
  font-weight: 800;
}

@keyframes preloaderPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.04); }
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  box-shadow: 0 0 22px var(--primary);
  opacity: .5;
  animation: drift 12s linear infinite;
}

.snowflake {
  position: absolute;
  top: -12px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.25));
  animation: snowFall linear infinite;
}

@keyframes snowFall {
  from { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  to { transform: translate3d(var(--sway, 36px), 112vh, 0) rotate(180deg); }
}

@keyframes drift {
  from { transform: translateY(110vh) rotate(0deg); }
  to { transform: translateY(-10vh) rotate(180deg); }
}

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 28px));
  z-index: 50;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(4, 11, 16, .78);
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 24px 60px rgba(0,0,0,.38);
}

.nav-inner {
  min-height: 68px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--primary) 42%, transparent));
}

.brand span {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand small {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  border: 0;
  color: rgba(248,250,252,.82);
  background: transparent;
  padding: 10px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
  transition: .2s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

.nav-link i {
  color: var(--item-color, var(--primary));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #fff;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 112px 18px 58px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(2,6,10,.25), rgba(2,6,10,.88)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  z-index: -2;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  opacity: .54;
}

.hero-content {
  width: min(1050px, 100%);
  text-align: center;
  padding: 42px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: calc(var(--radius) + 18px);
  background: linear-gradient(145deg, rgba(4, 11, 16, .62), rgba(4, 11, 16, .36));
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 34px 90px rgba(0,0,0,.42);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 38%, transparent);
  border-radius: 999px;
  color: var(--secondary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
}

.hero h1 {
  margin: 22px 0 12px;
  font-size: clamp(3.2rem, 11vw, 8.6rem);
  line-height: .88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 38px rgba(25,230,179,.22);
}

.hero h1 span {
  color: var(--secondary);
}

.hero .subtitle {
  margin: 0 auto 16px;
  max-width: 760px;
  color: rgba(248,250,252,.9);
  font-size: clamp(1.05rem, 2.1vw, 1.42rem);
  line-height: 1.55;
}

.hero .description {
  margin: 0 auto 28px;
  max-width: 760px;
  color: rgba(248,250,252,.68);
}

.hero-actions,
.modal-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border: 0;
  border-radius: 14px;
  min-height: 46px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  color: #03100d;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 22%, transparent);
  transition: .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px color-mix(in srgb, var(--primary) 30%, transparent);
}

.btn.ghost {
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
}

.status-row {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.status-pill {
  min-width: 164px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(0,0,0,.22);
}

.status-pill strong {
  display: block;
  color: var(--secondary);
}

.section {
  padding: 82px 18px;
}

.section-inner {
  width: min(1140px, 100%);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 26px;
}

.section-head.center {
  text-align: center;
  display: grid;
  justify-items: center;
}

.section-head p {
  color: rgba(248,250,252,.62);
  max-width: 680px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reveal-section {
  overflow: visible;
}

.reveal-card {
  opacity: 0;
  transform: translateY(42px) scale(.94);
  transition:
    opacity .65s ease,
    transform .75s cubic-bezier(.16, 1, .3, 1),
    box-shadow .25s ease,
    border-color .25s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-section.in-view .reveal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feature-section {
  padding-top: 62px;
}

.feature-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: calc(var(--radius) + 14px);
  background:
    radial-gradient(circle at 18% 22%, rgba(69,163,255,.1), transparent 24rem),
    radial-gradient(circle at 76% 28%, rgba(255,95,147,.08), transparent 22rem),
    rgba(0,0,0,.22);
  box-shadow: 0 28px 86px rgba(0,0,0,.32);
  transform: scale(.965);
  clip-path: inset(4% 7% round calc(var(--radius) + 14px));
  transition:
    transform .85s cubic-bezier(.16, 1, .3, 1),
    clip-path .85s cubic-bezier(.16, 1, .3, 1);
}

.feature-section.in-view .feature-panel {
  transform: scale(1);
  clip-path: inset(0 0 round calc(var(--radius) + 14px));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--feature-color) 34%, rgba(255,255,255,.1));
  border-radius: calc(var(--radius) + 4px);
  padding: 22px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--feature-color) 18%, transparent), rgba(6, 12, 18, .75)),
    rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 16px 44px rgba(0,0,0,.2);
  will-change: transform;
}

.feature-card:hover,
.reveal-section.in-view .feature-card:hover {
  transform: translateY(-12px) scale(1.018);
  border-color: color-mix(in srgb, var(--feature-color) 58%, rgba(255,255,255,.16));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 28px 68px rgba(0,0,0,.36),
    0 0 42px color-mix(in srgb, var(--feature-color) 20%, transparent);
}

.feature-card:hover i {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 0 0 38px color-mix(in srgb, var(--feature-color) 46%, transparent);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -38% 38%;
  height: 120px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--feature-color) 24%, transparent);
  filter: blur(40px);
  opacity: .55;
}

.card {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(calc(var(--blur) * .75));
  padding: 20px;
  box-shadow: 0 16px 44px rgba(0,0,0,.22);
}

.feature-card i {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  color: #fff;
  background: color-mix(in srgb, var(--feature-color) 70%, rgba(255,255,255,.12));
  box-shadow: 0 0 26px color-mix(in srgb, var(--feature-color) 32%, transparent);
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.feature-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(248,250,252,.68);
  line-height: 1.6;
}

.cluster-section {
  padding-top: 44px;
}

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cluster-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cluster-color) 34%, rgba(255,255,255,.12));
  border-radius: calc(var(--radius) + 8px);
  padding: 24px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--cluster-color) 20%, transparent), rgba(5, 13, 19, .72)),
    rgba(7, 17, 24, .8);
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
  will-change: transform;
}

.cluster-card:hover,
.reveal-section.in-view .cluster-card:hover {
  transform: translateY(-14px) scale(1.025);
  border-color: color-mix(in srgb, var(--cluster-color) 58%, rgba(255,255,255,.16));
  box-shadow:
    0 32px 88px rgba(0,0,0,.42),
    0 0 46px color-mix(in srgb, var(--cluster-color) 22%, transparent);
}

.cluster-card:hover .cluster-icon {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 0 0 44px color-mix(in srgb, var(--cluster-color) 54%, transparent);
}

.cluster-card::before {
  content: "";
  position: absolute;
  inset: auto -18% -28% 18%;
  height: 150px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cluster-color) 26%, transparent);
  filter: blur(46px);
}

.cluster-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .18;
  mix-blend-mode: screen;
}

.cluster-icon {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 16px;
  color: #06110f;
  background: var(--cluster-color);
  box-shadow: 0 0 34px color-mix(in srgb, var(--cluster-color) 42%, transparent);
  transition: transform .25s ease, box-shadow .25s ease;
}

.cluster-badge {
  position: absolute;
  top: 26px;
  right: 22px;
  max-width: calc(100% - 108px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cluster-card h3,
.cluster-card p {
  position: relative;
}

.cluster-card h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.cluster-card p {
  margin: 0;
  color: rgba(248,250,252,.68);
  line-height: 1.65;
}

.staff-panel {
  position: relative;
  overflow: hidden;
  padding: 44px 18px 34px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: calc(var(--radius) + 10px);
  background: rgba(0,0,0,.18);
  box-shadow: 0 22px 80px rgba(0,0,0,.32);
}

.staff-spotlight {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin: 28px 0 34px;
}

.staff-tier {
  width: min(980px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
}

.staff-tier-head {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(360px, 90%);
  gap: 12px;
  color: rgba(248,250,252,.64);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 900;
}

.staff-tier-head::before,
.staff-tier-head::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18));
}

.staff-tier-head::after {
  background: linear-gradient(90deg, rgba(255,255,255,.18), transparent);
}

.staff-tier-row {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}

.staff-card {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.05);
  overflow: hidden;
}

.staff-card img {
  object-fit: cover;
  background: rgba(255,255,255,.08);
}

.staff-card h3 {
  width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.staff-card span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--primary) 32%, transparent);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-card.highlight {
  width: 148px;
  padding: 18px 14px;
  border-color: color-mix(in srgb, var(--secondary) 45%, rgba(255,255,255,.1));
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,227,122,.13), rgba(25,230,179,.08));
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
}

.staff-card.highlight.tier-owner {
  width: 176px;
  padding: 20px 16px;
  border-color: color-mix(in srgb, var(--secondary) 62%, rgba(255,255,255,.14));
  background:
    linear-gradient(145deg, rgba(255,227,122,.18), rgba(25,230,179,.1)),
    rgba(255,255,255,.05);
  box-shadow: 0 18px 54px color-mix(in srgb, var(--secondary) 24%, rgba(0,0,0,.35));
}

.staff-card.highlight.tier-owner img {
  width: 92px;
  height: 92px;
}

.staff-card.highlight.tier-owner h3 {
  color: var(--secondary);
}

.staff-card.highlight.tier-admin {
  border-color: color-mix(in srgb, #45a3ff 46%, rgba(255,255,255,.12));
  background:
    linear-gradient(145deg, rgba(69,163,255,.13), rgba(25,230,179,.08)),
    rgba(255,255,255,.05);
}

.staff-card.highlight.tier-admin span {
  border-color: rgba(69,163,255,.38);
  color: #8fcaff;
  background: rgba(69,163,255,.12);
}

.staff-card.highlight.tier-moderator,
.staff-card.highlight.tier-support,
.staff-card.highlight.tier-builder,
.staff-card.highlight.tier-staff {
  width: 138px;
}

.staff-card.highlight img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  margin-bottom: 12px;
}

.staff-card.highlight h3 {
  font-size: .92rem;
  margin-bottom: 9px;
}

.staff-card.highlight span {
  padding: 6px 10px;
}

.staff-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.staff-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: staffMarquee 34s linear infinite;
}

.staff-marquee:hover .staff-track {
  animation-play-state: paused;
}

.staff-card.compact {
  width: 142px;
  padding: 12px;
  flex: 0 0 auto;
  border-radius: 18px;
}

.staff-card.compact img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin-bottom: 8px;
}

.staff-card.compact h3 {
  font-size: .78rem;
  margin-bottom: 7px;
}

.staff-card.compact span {
  padding: 5px 8px;
  font-size: .58rem;
}

@keyframes staffMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.footer {
  padding: 48px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(248,250,252,.68);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(1, 5, 8, .72);
  backdrop-filter: blur(18px);
}

.modal-backdrop.active {
  display: grid;
}

.modal {
  width: min(920px, 100%);
  max-height: min(86vh, 860px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: calc(var(--radius) + 10px);
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    rgba(5, 13, 19, .94);
  box-shadow: 0 30px 120px rgba(0,0,0,.58);
  animation: modalIn .22s ease both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-header p {
  margin: 5px 0 0;
  color: rgba(248,250,252,.6);
}

.modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.06);
}

.modal-body {
  padding: 22px;
  overflow: auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab-btn {
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(248,250,252,.78);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  padding: 9px 14px;
}

.tab-btn.active {
  color: #03100d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.address-grid,
.product-grid,
.media-grid,
.review-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.address-card strong,
.product-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--secondary);
}

.copy-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.copy-row code {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-btn {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.08);
  padding: 10px 12px;
}

.rule-item,
.faq-item,
.order-box {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding: 16px;
  margin-bottom: 12px;
}

.rule-item h3,
.faq-question {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rule-item p,
.faq-answer,
.review-card p,
.product-card p {
  color: rgba(248,250,252,.68);
  line-height: 1.6;
}

.faq-question {
  width: 100%;
  color: #fff;
  text-align: left;
  border: 0;
  background: transparent;
}

.faq-answer {
  display: none;
  padding-top: 12px;
}

.faq-item.open .faq-answer {
  display: block;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field.full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: rgba(248,250,252,.74);
  font-size: .9rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #fff;
  background: rgba(0,0,0,.25);
  padding: 12px 13px;
  outline: none;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(248,250,252,.76);
}

.donate-form {
  margin-top: 14px;
}

.card-topup-form {
  background:
    linear-gradient(145deg, rgba(69,163,255,.07), rgba(25,230,179,.05)),
    var(--card);
}

.confirm-box {
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}

.confirm-box input {
  margin-top: 4px;
  flex: 0 0 auto;
}

.confirm-box span {
  display: grid;
  gap: 4px;
}

.confirm-box strong {
  color: rgba(248,250,252,.9);
  text-transform: uppercase;
  font-size: .78rem;
}

.confirm-box small {
  color: rgba(248,250,252,.55);
  line-height: 1.5;
}

.form-message {
  margin-top: 12px;
  color: var(--secondary);
  min-height: 22px;
  white-space: pre-line;
}

.vietqr-result {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}

.vietqr-result img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.vietqr-details {
  display: grid;
  gap: 8px;
}

.vietqr-details p {
  margin: 0;
  color: rgba(248,250,252,.78);
  overflow-wrap: anywhere;
}

.vietqr-details strong {
  color: var(--secondary);
}

.vietqr-timer {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255,227,122,.22);
  border-radius: 10px;
  color: rgba(248,250,252,.78);
  background: rgba(255,227,122,.08);
  font-size: .9rem;
}

.vietqr-timer strong {
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}

.stars {
  color: var(--secondary);
  letter-spacing: 2px;
}

.product-card,
.review-card,
.media-card {
  min-height: 100%;
}

.product-card.selected {
  outline: 2px solid var(--primary);
}

.product-image,
.media-card img,
.media-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 12px;
  background: rgba(255,255,255,.06);
}

.media-card {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.82);
  padding: 22px;
}

.lightbox.active {
  display: grid;
}

.lightbox-content {
  max-width: min(1100px, 96vw);
  max-height: 86vh;
}

.lightbox-content img,
.lightbox-content video {
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 24px 90px rgba(0,0,0,.64);
}

.system-options {
  display: grid;
  gap: 12px;
}

.system-options label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  z-index: 140;
  color: #03100d;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.low-perf *,
.low-perf *::before,
.low-perf *::after {
  animation: none !important;
  transition-duration: .01ms !important;
  backdrop-filter: none !important;
}

.low-perf .particle-layer {
  display: none;
}

@media (max-width: 1120px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cluster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-inner {
    align-items: flex-start;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .navbar.open .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
  }

  .hero-content {
    padding: 26px 18px;
  }

  .grid.three,
  .form-grid.two,
  .feature-grid,
  .cluster-grid {
    grid-template-columns: 1fr;
  }

  .feature-panel {
    padding: 24px 16px;
    clip-path: inset(0 0 round var(--radius));
  }

  .cluster-card {
    min-height: 250px;
  }

  .vietqr-result {
    grid-template-columns: 1fr;
  }

  .staff-panel {
    padding-inline: 14px;
    border-radius: var(--radius);
  }

  .staff-tier {
    gap: 10px;
  }

  .staff-tier-row {
    gap: 10px;
  }

  .staff-card.highlight,
  .staff-card.highlight.tier-owner,
  .staff-card.highlight.tier-moderator,
  .staff-card.highlight.tier-support,
  .staff-card.highlight.tier-builder,
  .staff-card.highlight.tier-staff {
    width: min(148px, calc(50vw - 24px));
  }

  .staff-card.highlight.tier-owner img {
    width: 76px;
    height: 76px;
  }

  .staff-card.compact {
    width: 124px;
  }

  .preloader-skip {
    right: 14px;
    bottom: 14px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-card,
  .feature-panel,
  .cluster-card,
  .cluster-icon {
    transition: none !important;
  }

  .reveal-card {
    opacity: 1;
    transform: none;
  }

  .feature-panel {
    transform: none;
    clip-path: none;
  }
}

@media (max-width: 520px) {
  .navbar {
    top: 10px;
    width: calc(100% - 18px);
  }

  .brand span {
    font-size: .95rem;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-actions .btn,
  .hero-actions .btn.ghost {
    width: 100%;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal {
    max-height: 92vh;
  }

  .modal-header,
  .modal-body {
    padding: 16px;
  }
}
