:root {
  --pink-50: #fff1f8;
  --pink-100: #ffe1f0;
  --pink-300: #ff9fca;
  --pink-500: #f0529c;
  --pink-700: #b91965;
  --ink: #231824;
  --muted: #6e5b6a;
  --paper: rgba(255, 255, 255, 0.88);
  --line: rgba(99, 44, 78, 0.16);
  --stone: #2f3338;
  --emerald: #22c55e;
  --sky: #33b5cc;
  --amber: #f3b442;
  --shadow: 0 18px 45px rgba(78, 20, 52, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 241, 248, 0.94), rgba(255, 225, 240, 0.84)),
    url("assets/stronghold-pattern.png");
  background-size: auto, 220px 220px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(240, 82, 156, 0.18), transparent 34%),
    linear-gradient(245deg, rgba(51, 181, 204, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 42%);
  pointer-events: none;
}

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

.ambient span {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(185, 25, 101, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 159, 202, 0.42)),
    url("assets/stronghold-pattern.png") center / 140px;
  box-shadow: 0 18px 36px rgba(78, 20, 52, 0.12);
  opacity: 0.62;
  animation: driftBlock 16s linear infinite;
}

.ambient span:nth-child(1) { left: 7%; top: 78%; animation-duration: 18s; }
.ambient span:nth-child(2) { left: 22%; top: 22%; width: 28px; height: 28px; animation-delay: -7s; }
.ambient span:nth-child(3) { left: 44%; top: 86%; width: 54px; height: 54px; animation-delay: -11s; animation-duration: 22s; }
.ambient span:nth-child(4) { left: 68%; top: 16%; width: 34px; height: 34px; animation-delay: -4s; }
.ambient span:nth-child(5) { left: 84%; top: 72%; width: 46px; height: 46px; animation-delay: -13s; animation-duration: 20s; }
.ambient span:nth-child(6) { left: 92%; top: 36%; width: 24px; height: 24px; animation-delay: -9s; }

@keyframes driftBlock {
  0% {
    transform: translate3d(0, 90px, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(-26px, -20px, 0) rotate(18deg);
  }
  100% {
    transform: translate3d(18px, -150px, 0) rotate(36deg);
  }
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  margin: 10px 0 22px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: topbarIn 520ms ease both;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 48px;
  height: 48px;
  border: 3px solid #ffffff;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.35rem;
  background:
    linear-gradient(135deg, var(--pink-500), var(--pink-700)),
    #f0529c;
  box-shadow: 0 8px 22px rgba(240, 82, 156, 0.38);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  background: #ffffff;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

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

.nav a,
.chip,
.ghost-button,
.solid-button,
.icon-button {
  min-height: 40px;
  border-radius: 8px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--pink-700);
  background: var(--pink-50);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--stone);
  cursor: pointer;
}

@keyframes topbarIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  min-height: 590px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(35, 24, 36, 0.86), rgba(35, 24, 36, 0.28)),
    var(--hero-image, url("assets/banner.png")) center / cover;
  box-shadow: var(--shadow);
  isolation: isolate;
  animation: heroBreath 14s ease-in-out infinite alternate;
}

.hero-apex {
  grid-template-columns: minmax(0, 1fr) 410px;
  min-height: 650px;
  background:
    linear-gradient(90deg, rgba(20, 16, 22, 0.9), rgba(35, 24, 36, 0.58) 52%, rgba(35, 24, 36, 0.34)),
    var(--hero-image, url("assets/banner.png")) center / cover;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.16) 42%, transparent 55%);
  transform: translateX(-110%);
  animation: heroSweep 7s ease-in-out infinite;
}

.hero::after {
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.6), transparent 72%);
}

@keyframes heroBreath {
  from { background-position: center, center; }
  to { background-position: center, center 18px; }
}

@keyframes heroSweep {
  0%, 46% { transform: translateX(-110%); }
  68%, 100% { transform: translateX(110%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: clamp(28px, 5vw, 58px);
  color: #ffffff;
}

.hero-logo {
  display: block;
  width: min(520px, 88%);
  max-height: 170px;
  margin: 0 0 16px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.38));
  animation: logoLift 680ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes logoLift {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #ffe7f3;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.11);
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2);
  animation: livePulse 1.7s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.42); }
  100% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.apex-hero-copy h1 {
  margin-bottom: 12px;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
}

.quick-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 120px));
  gap: 10px;
  margin-top: 28px;
}

.quick-metrics div {
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
}

.quick-metrics strong {
  display: block;
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
}

.quick-metrics span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.solid-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  padding: 0 16px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.solid-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  box-shadow: 0 10px 24px rgba(240, 82, 156, 0.28);
}

.solid-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-2px);
}

.solid-button:hover {
  box-shadow: 0 16px 30px rgba(240, 82, 156, 0.36);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.ghost-button.dark {
  border-color: var(--line);
  color: var(--ink);
  background: #ffffff;
}

.icon-button {
  width: 40px;
  padding: 0;
  color: #ffffff;
  background: var(--stone);
}

.hero-panel {
  position: relative;
  z-index: 2;
  align-self: end;
  margin: 0 22px 22px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
}

.apex-server-card {
  position: relative;
  z-index: 2;
  align-self: center;
  margin-right: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(35, 24, 36, 0.52);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.apex-server-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.apex-server-card p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.server-ip-large {
  min-height: 58px;
  margin: 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.mini-grid div {
  min-height: 78px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
}

.mini-grid span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: #ffffff;
}

.live-strip {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid rgba(240, 82, 156, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 225, 240, 0.68)),
    #ffffff;
  box-shadow: 0 12px 28px rgba(78, 20, 52, 0.08);
}

.live-strip::before,
.live-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 80px;
  pointer-events: none;
}

.live-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--pink-50), transparent);
}

.live-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--pink-50), transparent);
}

.live-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  min-height: 52px;
  padding: 0 24px;
  animation: liveTrack 28s linear infinite;
}

.live-track span,
.live-track strong,
.live-track em {
  white-space: nowrap;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 900;
}

.live-track span {
  color: var(--pink-700);
  text-transform: uppercase;
}

.live-track strong {
  color: var(--ink);
}

.live-track em {
  color: var(--muted);
}

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

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 48%, rgba(255, 159, 202, 0.18));
  pointer-events: none;
}

.server-ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.server-ip code {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-weight: 900;
}

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

.stat {
  position: relative;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink-300), var(--sky), var(--amber));
  transform: translateX(-22%);
  animation: statLine 2.8s ease-in-out infinite;
}

@keyframes statLine {
  0%, 100% { transform: translateX(-35%); }
  50% { transform: translateX(35%); }
}

.stat strong,
.metric strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.stat span,
.metric span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: 48px 0 10px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.section p {
  color: var(--muted);
  line-height: 1.65;
}

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

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

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

.action-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 235px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(255, 225, 240, 0.72)),
    #ffffff;
  box-shadow: 0 14px 30px rgba(78, 20, 52, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.action-card::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 6px;
  background: linear-gradient(180deg, var(--pink-500), var(--sky), var(--amber));
}

.action-card:hover {
  border-color: rgba(240, 82, 156, 0.34);
  box-shadow: 0 22px 46px rgba(78, 20, 52, 0.14);
  transform: translateY(-5px);
}

.action-index {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(185, 25, 101, 0.14);
  font-size: 3.7rem;
  line-height: 1;
  font-weight: 950;
}

.action-card h3 {
  position: relative;
  margin: 34px 0 10px;
  font-size: 1.35rem;
}

.action-card p {
  position: relative;
  color: var(--muted);
  line-height: 1.62;
}

.action-card .ghost-button {
  width: fit-content;
  margin-top: 18px;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.showcase-copy,
.showcase-media {
  border-radius: 8px;
}

.showcase-copy {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 225, 240, 0.76)),
    #ffffff;
  box-shadow: 0 14px 30px rgba(78, 20, 52, 0.08);
}

.showcase-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.timeline div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.timeline span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 950;
  background: var(--stone);
}

.timeline strong {
  align-self: end;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.showcase-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 500ms ease;
}

.showcase-media:hover img {
  transform: scale(1.06);
}

.media-stat {
  position: absolute;
  left: 18px;
  bottom: 18px;
  min-width: 190px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(35, 24, 36, 0.66);
  backdrop-filter: blur(14px);
}

.media-stat strong,
.media-stat span {
  display: block;
}

.media-stat span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.world-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 300px;
  padding: 18px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(35, 24, 36, 0.08), rgba(35, 24, 36, 0.84)),
    var(--image) center / cover;
  box-shadow: 0 14px 30px rgba(78, 20, 52, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.world-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(78, 20, 52, 0.16);
}

.world-card span {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  background: rgba(240, 82, 156, 0.84);
}

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

.world-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.home-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-list li {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.home-list span {
  color: var(--muted);
  line-height: 1.5;
}

.logo-panel {
  display: grid;
  align-content: center;
}

.logo-panel img {
  width: min(330px, 100%);
  max-height: 150px;
  margin-bottom: 18px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 12px 18px rgba(78, 20, 52, 0.16));
}

.card,
.form-panel,
.admin-shell,
.table-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(78, 20, 52, 0.08);
}

.card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  border-color: rgba(240, 82, 156, 0.34);
  box-shadow: 0 20px 42px rgba(78, 20, 52, 0.13);
  transform: translateY(-4px);
}

.card.visual {
  min-height: 210px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(35, 24, 36, 0.2), rgba(35, 24, 36, 0.7)),
    var(--image) center / cover;
}

.card.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.14) 45%, transparent 56%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.card.visual:hover::after {
  transform: translateX(120%);
}

.card h3 {
  margin-bottom: 9px;
}

.card p {
  margin-bottom: 0;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge {
  margin-bottom: 14px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--pink-700);
  background: var(--pink-100);
}

.chip {
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
}

.page-title {
  display: grid;
  gap: 10px;
  margin: 26px 0 20px;
}

.page-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.7rem);
}

.page-title p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

.form-panel {
  padding: 22px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--pink-500);
  box-shadow: 0 0 0 3px rgba(240, 82, 156, 0.14);
}

.role-select {
  min-height: 38px;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #ffffff;
}

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

.tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 850;
  background: #ffffff;
  cursor: pointer;
}

.tabs button.active {
  color: #ffffff;
  border-color: var(--pink-500);
  background: var(--pink-500);
}

.store-card {
  display: grid;
  gap: 14px;
}

.store-card:hover img {
  transform: scale(1.035);
}

.price {
  font-size: 2rem;
  font-weight: 950;
}

.store-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--pink-100);
  transition: transform 260ms ease;
}

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

.metric {
  min-height: 98px;
  padding: 16px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(240, 82, 156, 0.22), transparent 42%),
    var(--stone);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.metric:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(35, 24, 36, 0.18);
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
}

.admin-side {
  padding: 18px;
  color: #ffffff;
  background: var(--stone);
}

.admin-side h2 {
  margin-bottom: 8px;
}

.admin-side p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.admin-menu {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.admin-menu button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  cursor: pointer;
}

.admin-menu button.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.admin-main {
  padding: 20px;
}

.table-panel {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease var(--reveal-delay, 0ms), transform 520ms ease var(--reveal-delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--stone);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 160ms ease;
}

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

@media (max-width: 880px) {
  .shell {
    width: min(100% - 20px, 760px);
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

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

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-apex {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    margin: 0 18px 18px;
  }

  .apex-server-card {
    align-self: auto;
    margin: 0 18px 18px;
  }

  .grid,
  .grid.two,
  .action-grid,
  .showcase,
  .account-strip,
  .admin-shell {
    grid-template-columns: 1fr;
  }

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

  .showcase-media {
    min-height: 320px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    max-width: 155px;
    overflow-wrap: anywhere;
  }

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

  .hero-logo {
    width: 100%;
    max-height: 118px;
  }

  .quick-metrics,
  .mini-grid,
  .world-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .solid-button,
  .hero-actions .ghost-button,
  .button-row .solid-button,
  .button-row .ghost-button {
    width: 100%;
  }

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

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

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