:root {
  --bg-world: radial-gradient(circle at 10% 20%, #0f1624, #0c1120 45%, #0a0f1c);
  --hud-bg: rgba(12, 16, 28, 0.82);
  --hud-border: rgba(110, 178, 255, 0.6);
  --glow: #7b9eff;
  --text: #e8f0ff;
  --muted: #9fb3d1;
  --accent: #5bc8ff;
  --accent-blue: #5bc8ff;
  --accent-purple: #a77bff;
  --accent-green: #6af5c4;
  --bar-hp: linear-gradient(90deg, #69ffb7, #0de3a2);
  --bar-mp: linear-gradient(90deg, #6bc4ff, #2a7bff);
  --bar-shield: linear-gradient(90deg, #c7b2ff, #7a5bff);
  --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.35);
  --panel-radius: 14px;
  --hud-radius: 16px;
  --window-radius: 18px;
  --hud-height: 92px;
  --hud-blur: 20px;
  --font-heading: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-world);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(91, 200, 255, 0.06), transparent 28%),
    radial-gradient(circle at 80% 40%, rgba(119, 96, 255, 0.06), transparent 26%),
    linear-gradient(135deg, rgba(91, 200, 255, 0.04), rgba(167, 123, 255, 0.04));
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: -40%;
  background: conic-gradient(
    from 120deg,
    rgba(91, 200, 255, 0.12),
    rgba(167, 123, 255, 0.10),
    rgba(106, 245, 196, 0.08),
    rgba(91, 200, 255, 0.12)
  );
  opacity: 0.22;
  filter: blur(90px);
  transform: translate3d(0, 0, 0);
  animation: world-drift 22s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hidden {
  display: none !important;
}

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

main {
  position: relative;
  z-index: 2;
  padding-bottom: calc(var(--hud-height) + 80px);
}

.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 100vh;
}

.hero-slide-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 20%, rgba(91, 200, 255, 0.1), transparent 40%),
    radial-gradient(circle at 20% 60%, rgba(167, 123, 255, 0.08), transparent 40%);
  opacity: 0.8;
  pointer-events: none;
}

.hero.hero-hub {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(91, 200, 255, 0.18), transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(167, 123, 255, 0.14), transparent 45%),
    linear-gradient(180deg, rgba(4, 6, 12, 0.55), rgba(4, 6, 12, 0.92));
}

.hero.hero-hub::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 20deg, rgba(91, 200, 255, 0.14), rgba(167, 123, 255, 0.12), rgba(106, 245, 196, 0.1), rgba(91, 200, 255, 0.14));
  filter: blur(70px);
  opacity: 0.35;
  animation: spin 46s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.hero-hub-inner {
  width: min(1180px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 130px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 46px;
  align-items: center;
  position: relative;
  z-index: 2;
  animation: slide-up 0.6s ease both;
}

.hero-hub-copy h1 {
  font-size: clamp(44px, 5.2vw, 78px);
  line-height: 1.02;
  letter-spacing: 0.2px;
  margin-top: 6px;
  color: rgba(245, 249, 255, 0.98);
  text-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

@supports (-webkit-background-clip: text) {
  .hero-hub-copy h1 {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(123, 158, 255, 0.95), rgba(106, 245, 196, 0.92));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-hub-lead {
  color: rgba(232, 240, 255, 0.92);
  font-size: 16px;
  max-width: 680px;
}

.hero-hub-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-hub-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hero-kpi {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 6px;
}

.hero-kpi strong {
  font-size: 22px;
  letter-spacing: 0.4px;
}

.hero-kpi span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-hub-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero-offer {
  border: 1px solid rgba(91, 200, 255, 0.25);
  background: radial-gradient(circle at 30% 20%, rgba(91, 200, 255, 0.09), rgba(0, 0, 0, 0.45));
  color: var(--text);
  padding: 14px 14px;
  border-radius: 18px;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-offer:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 200, 255, 0.45);
  box-shadow: 0 0 26px rgba(91, 200, 255, 0.2), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-offer-title {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.hero-offer-sub {
  color: var(--muted);
  font-size: 12px;
}

.hero-hub-portal {
  justify-self: center;
  width: 100%;
}

.portal-frame {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 50%;
  --glow-y: 40%;
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  background:
    radial-gradient(circle at 30% 25%, rgba(91, 200, 255, 0.12), rgba(8, 12, 20, 0.96)),
    radial-gradient(circle at 70% 70%, rgba(167, 123, 255, 0.12), transparent 55%);
  border: 1px solid rgba(91, 200, 255, 0.28);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.6), 0 0 38px rgba(91, 200, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform: perspective(1100px) rotateX(calc(4deg + var(--tilt-y))) rotateY(var(--tilt-x));
  transition: transform 0.18s ease;
}

.portal-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(91, 200, 255, 0.08) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(91, 200, 255, 0.05) 0 1px, transparent 1px 18px);
  opacity: 0.16;
  pointer-events: none;
}

.portal-frame::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(91, 200, 255, 0.22), transparent 45%);
  filter: blur(40px);
  opacity: 0.8;
  pointer-events: none;
  mix-blend-mode: screen;
}

.portal-core {
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 50% 60%, rgba(91, 200, 255, 0.55), rgba(0, 0, 0, 0.1) 58%, rgba(167, 123, 255, 0.35));
  filter: saturate(1.1);
  box-shadow: 0 0 50px rgba(91, 200, 255, 0.35);
  animation: pulse 3.2s ease-in-out infinite;
}

.portal-ring {
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 26px rgba(91, 200, 255, 0.12);
  animation: portal-spin 16s linear infinite;
}

.portal-ring.ring-b {
  inset: 20%;
  border-color: rgba(167, 123, 255, 0.16);
  animation-duration: 22s;
  animation-direction: reverse;
}

.portal-ring.ring-c {
  inset: 30%;
  border-color: rgba(106, 245, 196, 0.14);
  animation-duration: 28s;
}

.portal-ui {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 18px;
}

.portal-chip {
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.portal-meter {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.55));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.portal-meter span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.portal-meter strong {
  letter-spacing: 0.4px;
}

.portal-meter.alt {
  border-color: rgba(106, 245, 196, 0.18);
}

.hero-slider {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: none;
  min-height: 100vh;
}

.hero-slide {
  display: block;
  padding: 120px 10%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.995);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.65));
}

.hero-slide .content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-gridline {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(91, 200, 255, 0.1);
  border-radius: 30px;
  box-shadow: 0 0 40px rgba(91, 200, 255, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  animation: grid-breathe 10s ease-in-out infinite;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  pointer-events: none;
  mix-blend-mode: screen;
  justify-self: center;
}

.hero-visual .holo-sphere,
.hero-visual .holo-ring,
.hero-visual .holo-stat {
  mix-blend-mode: screen;
}

.hero-visual .holo-sphere {
  inset: 20% 10%;
}

.hero-visual .holo-stat {
  right: 10px;
}

.hero-visual .holo-chip {
  bottom: 12px;
}

.hero-visual .beam {
  position: absolute;
  width: 120%;
  height: 4px;
  left: -10%;
  top: 40%;
  background: linear-gradient(90deg, rgba(91, 200, 255, 0.5), rgba(167, 123, 255, 0));
  filter: drop-shadow(0 0 16px rgba(91, 200, 255, 0.5));
  animation: pulse 4s ease-in-out infinite;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.hero-stat-card {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(91, 200, 255, 0.2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.4));
  font-size: 13px;
  letter-spacing: 0.4px;
}

.hero-copy {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.4px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.hero-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(91, 200, 255, 0.25);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.65));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.hero-card p {
  margin: 0;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.modal-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(91, 200, 255, 0.35);
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.85), rgba(6, 8, 14, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.modal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 200, 255, 0.55);
  box-shadow: 0 0 26px rgba(91, 200, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.modal-card .icon {
  font-size: 22px;
  margin-bottom: 6px;
}
.modal-card .fa-icon {
  width: 24px;
  height: 24px;
}

/* Auth */
.auth-hero {
  min-height: 100vh;
}

.auth-shell {
  width: min(1080px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 120px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 2;
  animation: slide-up 0.5s ease both;
}

.auth-side {
  padding: 0 6px;
}

.auth-side h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
}

.auth-side-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(91, 200, 255, 0.35);
  background: radial-gradient(circle at 30% 20%, rgba(91, 200, 255, 0.08), rgba(8, 12, 20, 0.95));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(91, 200, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(91, 200, 255, 0.08) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(91, 200, 255, 0.05) 0 1px, transparent 1px 18px);
  opacity: 0.2;
  mix-blend-mode: screen;
  animation: holo-grid 12s linear infinite;
  pointer-events: none;
}

.auth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 30%, rgba(167, 123, 255, 0.14), transparent 55%);
  opacity: 0.35;
  pointer-events: none;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 90px 0 80px;
  }
  .auth-side {
    text-align: center;
  }
  .auth-side-badges {
    justify-content: center;
  }
}

/* Admin */
.admin-hero {
  min-height: auto;
  padding: 110px 0 80px;
  align-items: start;
  overflow: visible;
}

.admin-hero::before,
.client-hero::before {
  content: "";
  position: absolute;
  inset: -140px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(91, 200, 255, 0.06) 0,
      rgba(91, 200, 255, 0.06) 1px,
      transparent 1px,
      transparent 44px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(167, 123, 255, 0.05) 0,
      rgba(167, 123, 255, 0.05) 1px,
      transparent 1px,
      transparent 44px
    );
  opacity: 0.14;
  mix-blend-mode: screen;
  transform: translate3d(-40px, -40px, 0) rotate(-12deg);
  animation: holo-grid-scroll 30s linear infinite;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle at 35% 30%, #000 0 40%, transparent 72%);
  mask: radial-gradient(circle at 35% 30%, #000 0 40%, transparent 72%);
}

.client-hero::before {
  opacity: 0.16;
  -webkit-mask: radial-gradient(circle at 55% 28%, #000 0 42%, transparent 74%);
  mask: radial-gradient(circle at 55% 28%, #000 0 42%, transparent 74%);
}

.admin-savebar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--hud-height) + 16px);
  z-index: 55;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.admin-savebar-inner {
  pointer-events: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 206, 91, 0.28);
  background: rgba(12, 16, 28, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-savebar-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-savebar-title strong {
  font-size: 13px;
}

.admin-savebar-title small {
  color: var(--muted);
  font-size: 12px;
}

.admin-toolbar {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 16, 28, 0.55);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-search {
  display: grid;
  gap: 6px;
  min-width: 240px;
}

.admin-search-input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

.admin-search-input:focus {
  border-color: rgba(91, 200, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(91, 200, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.package-table tbody tr.admin-row-link {
  cursor: pointer;
}

.admin-shell {
  width: min(1180px, calc(100vw - 24px));
  margin: 0 auto;
  display: grid;
  gap: 18px;
  animation: slide-up 0.5s ease both;
}

.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(91, 200, 255, 0.22);
  background: radial-gradient(circle at 30% 20%, rgba(91, 200, 255, 0.08), rgba(8, 12, 20, 0.92));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-bar-title h1 {
  margin-bottom: 4px;
}

.admin-bar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 16, 28, 0.65);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 16px;
  z-index: 5;
}

.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.admin-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(91, 200, 255, 0.22);
}

.admin-tab.active {
  border-color: rgba(91, 200, 255, 0.55);
  box-shadow: 0 0 22px rgba(91, 200, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-palette-open body {
  overflow: hidden;
}

.admin-palette-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 110px 16px 24px;
}

.admin-palette {
  width: min(760px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(91, 200, 255, 0.22);
  background: rgba(12, 16, 28, 0.78);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 14px;
}

.admin-palette-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-palette-input {
  width: 100%;
  margin-top: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

.admin-palette-input:focus {
  border-color: rgba(91, 200, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(91, 200, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.admin-palette-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  max-height: min(56vh, 520px);
  overflow: auto;
  padding-right: 2px;
}

.admin-palette-item {
  text-align: left;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.admin-palette-item small {
  font-size: 11px;
  color: rgba(159, 179, 209, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42%;
}

.admin-palette-item:hover,
.admin-palette-item.active {
  transform: translateY(-1px);
  border-color: rgba(91, 200, 255, 0.55);
  box-shadow: 0 0 22px rgba(91, 200, 255, 0.2);
}

.admin-palette-empty {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.admin-palette-hint {
  margin-top: 12px;
  font-size: 12px;
}

.admin-draft {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.admin-draft-restore {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
}

@media (max-width: 960px) {
  .admin-hero {
    padding: 90px 0 80px;
  }
  .admin-bar-title {
    width: 100%;
    text-align: center;
  }
  .admin-bar-actions {
    width: 100%;
    justify-content: center;
  }
  .admin-tabs {
    justify-content: center;
  }
}

/* Client */
.client-hero {
  min-height: auto;
  padding: 110px 0 80px;
  align-items: start;
  overflow: visible;
}

.client-shell {
  width: min(1240px, calc(100vw - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 18px;
  animation: slide-up 0.5s ease both;
}

.client-sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
  align-self: start;
}

@media (min-width: 961px) {
  .client-sidebar {
    position: sticky;
    top: 16px;
  }
}

.client-profile-name {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.client-profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.client-nav {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.client-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.client-nav-link:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 200, 255, 0.42);
  box-shadow: 0 0 18px rgba(91, 200, 255, 0.18);
}

.client-nav-link.active {
  border-color: rgba(91, 200, 255, 0.55);
  background: linear-gradient(120deg, rgba(91, 200, 255, 0.18), rgba(167, 123, 255, 0.10));
  box-shadow: 0 0 22px rgba(91, 200, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.client-side-cta strong {
  display: block;
  letter-spacing: 0.5px;
}

.client-main {
  display: grid;
  gap: 14px;
}

.client-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.client-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.client-kpi {
  position: relative;
  overflow: hidden;
}

.client-kpi::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(91, 200, 255, 0.10), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(167, 123, 255, 0.10), transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}

.client-kpi > * {
  position: relative;
  z-index: 1;
}

.client-kpi-value {
  font-size: 30px;
  font-weight: 800;
  margin: 6px 0;
  letter-spacing: 0.5px;
}

.client-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 14px;
}

.client-activity {
  display: grid;
  gap: 10px;
}

.client-activity-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.client-activity-item small {
  color: rgba(159, 179, 209, 0.9);
  font-size: 12px;
  white-space: nowrap;
}

.client-activity-item:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 200, 255, 0.24);
  background: rgba(91, 200, 255, 0.05);
  box-shadow: 0 0 18px rgba(91, 200, 255, 0.18);
}

.client-cards {
  display: grid;
  gap: 14px;
}

.client-service-card .holo-thumb {
  min-height: 150px;
}

.client-orders-tools {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(91, 200, 255, 0.22);
  background: radial-gradient(circle at 30% 20%, rgba(91, 200, 255, 0.08), rgba(8, 12, 20, 0.92));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.client-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.client-order-number {
  font-size: 18px;
  font-weight: 700;
  margin-top: 6px;
}

.client-order-meta {
  margin-top: 6px;
  font-size: 12px;
}

.client-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}

@media (max-width: 960px) {
  .client-hero {
    padding: 90px 0 80px;
  }
  .client-shell {
    grid-template-columns: 1fr;
  }
  .client-split {
    grid-template-columns: 1fr;
  }
}

.modal-card.holo {
  position: relative;
  overflow: hidden;
  border-color: rgba(167, 123, 255, 0.45);
  background: linear-gradient(140deg, rgba(91, 200, 255, 0.12), rgba(6, 8, 14, 0.9));
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(91, 200, 255, 0.18);
  transform: perspective(900px) rotateX(2deg);
}
.modal-card.holo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(91, 200, 255, 0.08) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(91, 200, 255, 0.08) 0 1px, transparent 1px 18px);
  opacity: 0.25;
  mix-blend-mode: screen;
  pointer-events: none;
}
.modal-card .cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

.holo-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.holo-grid {
  background-image: repeating-linear-gradient(90deg, rgba(91, 200, 255, 0.08) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(91, 200, 255, 0.08) 0 1px, transparent 1px 18px);
  opacity: 0.25;
  animation: holo-grid 12s linear infinite;
}

.holo-beam {
  background: radial-gradient(circle at 70% 30%, rgba(91, 200, 255, 0.15), transparent 35%),
    radial-gradient(circle at 30% 60%, rgba(167, 123, 255, 0.12), transparent 40%);
}

.holo-arc {
  background: conic-gradient(from 90deg, rgba(91, 200, 255, 0.12), transparent 30%, rgba(167, 123, 255, 0.12), transparent 60%);
  filter: blur(12px);
  opacity: 0.45;
  animation: spin 24s linear infinite;
}

.holo-orb {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(91, 200, 255, 0.4), rgba(0, 0, 0, 0.8));
  box-shadow: 0 0 30px rgba(91, 200, 255, 0.4);
  top: 20%;
  right: 12%;
  animation: pulse 8s ease-in-out infinite;
}

.holo-cube {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 18px;
  border: 1px solid rgba(167, 123, 255, 0.4);
  top: 18%;
  left: 8%;
  box-shadow: 0 0 22px rgba(167, 123, 255, 0.3);
  animation: spin 14s linear infinite;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.hero-slide.active .content {
  animation: slide-up 0.7s ease both;
}

.hero-slide.active .hero-visual {
  animation: slide-up 0.9s ease both;
}

.hero-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: -40px;
  position: relative;
  z-index: 3;
}

.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(91, 200, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  background: rgba(91, 200, 255, 0.6);
  transform: scale(1.1);
  animation: pulse 2.8s ease-in-out infinite;
}

.holo-sphere {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(91, 200, 255, 0.4), rgba(8, 10, 16, 0.95));
  box-shadow: 0 0 40px rgba(91, 200, 255, 0.5), inset 0 0 60px rgba(0, 0, 0, 0.5);
  animation: pulse 8s ease-in-out infinite;
}

.holo-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(91, 200, 255, 0.35);
  animation: spin 12s linear infinite;
}

.holo-ring.ring-2 { inset: 14%; animation-duration: 18s; border-color: rgba(167, 123, 255, 0.35); }
.holo-ring.ring-3 { inset: 20%; animation-duration: 24s; border-style: dashed; }

.holo-chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(4, 6, 12, 0.7);
  border: 1px solid rgba(91, 200, 255, 0.5);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(91, 200, 255, 0.35);
}

.holo-stat {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(4, 6, 12, 0.6);
  border: 1px solid rgba(91, 200, 255, 0.5);
  padding: 10px 12px;
  border-radius: 12px;
  text-align: right;
  box-shadow: 0 0 14px rgba(91, 200, 255, 0.35);
}

.holo-stat span {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.holo-stat small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.6px;
}

.holo-stat.alt {
  top: auto;
  bottom: 20px;
  right: 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}

p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

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

.button-primary, .button-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--hud-border);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(91, 200, 255, 0.35), rgba(91, 200, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button-primary:hover, .button-ghost:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 22px rgba(91, 200, 255, 0.35), var(--shadow-soft);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.03);
}

.section {
  padding: 100px 8%;
  position: relative;
}

.panel {
  background: var(--hud-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(var(--hud-blur));
  padding: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-title .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--accent-blue);
}

.bestiary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.bestiary-holo {
  --card-accent-rgb: 91, 200, 255;
  border: 1px solid rgba(91, 200, 255, 0.5);
  border-radius: 16px;
  padding: 0;
  background: radial-gradient(circle at 30% 20%, rgba(91, 200, 255, 0.08), rgba(6, 10, 18, 0.92));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(91, 200, 255, 0.15);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 220px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bestiary-holo::after {
  content: "";
  position: absolute;
  inset: -55%;
  background: conic-gradient(
    from 150deg,
    rgba(var(--card-accent-rgb), 0.18),
    rgba(167, 123, 255, 0.12),
    rgba(106, 245, 196, 0.10),
    rgba(var(--card-accent-rgb), 0.18)
  );
  opacity: 0.18;
  mix-blend-mode: screen;
  filter: blur(80px);
  transform: translate3d(0, 0, 0);
  animation: holo-drift 28s ease-in-out infinite;
  pointer-events: none;
}

.bestiary-holo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(91, 200, 255, 0.08) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(0deg, rgba(91, 200, 255, 0.05) 0 1px, transparent 1px 16px);
  opacity: 0.25;
  mix-blend-mode: screen;
  animation: holo-grid 10s linear infinite;
  pointer-events: none;
}

.bestiary-thumb {
  background-size: cover;
  background-position: center;
  filter: saturate(1.15);
  position: relative;
}

.bestiary-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.65));
}

.bestiary-overlay {
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
  backdrop-filter: blur(6px);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: var(--text);
}

.bestiary-overlay .badge {
  width: max-content;
}

.bestiary-overlay strong,
.bestiary-overlay small {
  color: #f8fbff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.75);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge.legendary { color: #ffd27d; border-color: rgba(255, 210, 125, 0.6); box-shadow: 0 0 12px rgba(255, 210, 125, 0.4);} 
.badge.rare { color: var(--accent-blue); border-color: rgba(91, 200, 255, 0.5);} 
.badge.common { color: var(--muted);} 
.badge.success { color: var(--accent-green); border-color: rgba(106, 245, 196, 0.55); box-shadow: 0 0 12px rgba(106, 245, 196, 0.25);} 
.badge.warning { color: #ffd27d; border-color: rgba(255, 210, 125, 0.55); box-shadow: 0 0 12px rgba(255, 210, 125, 0.2);} 
.badge.danger { color: #ff8b8b; border-color: rgba(255, 90, 90, 0.55); box-shadow: 0 0 12px rgba(255, 90, 90, 0.18);} 

.package-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.package-tags span {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--muted);
}

.bestiary-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.performance-card {
  padding: 18px;
  border-radius: var(--panel-radius);
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.9), rgba(10, 14, 22, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.performance-card .title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.performance-card .skills {
  display: grid;
  gap: 6px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.package-card {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(91, 200, 255, 0.35);
  background: linear-gradient(180deg, rgba(12, 16, 28, 0.9), rgba(8, 10, 16, 0.92));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.package-card .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.package-card .features {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.package-card .tag {
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(91, 200, 255, 0.08);
  border: 1px solid rgba(91, 200, 255, 0.2);
  font-size: 12px;
  display: inline-block;
  margin-bottom: 8px;
}

.regions {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.region-map {
  padding: 0;
  border-radius: var(--panel-radius);
  background: rgba(12, 16, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  min-height: 520px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.region-leaflet {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--panel-radius);
  overflow: hidden;
  background: radial-gradient(circle at 40% 30%, rgba(91, 200, 255, 0.16), rgba(6, 10, 18, 0.92));
}

.region-leaflet::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 350;
  background:
    radial-gradient(circle at 40% 30%, rgba(91, 200, 255, 0.16), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(167, 123, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.55));
  mix-blend-mode: screen;
  opacity: 0.75;
}

.region-map .leaflet-tile {
  filter: saturate(1.08) contrast(1.05) brightness(0.84);
}

.region-marker {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: none;
  border: none;
  box-shadow: none;
}

.region-node-dot {
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(91, 200, 255, 0.85));
  box-shadow: 0 0 16px rgba(91, 200, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.region-node-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 1px solid rgba(91, 200, 255, 0.35);
  box-shadow: 0 0 18px rgba(91, 200, 255, 0.22);
  opacity: 0.0;
  animation: node-pulse 2.4s ease-out infinite;
}

.region-marker.active .region-node-dot {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(106, 245, 196, 0.92));
  box-shadow: 0 0 20px rgba(106, 245, 196, 0.65);
  border-color: rgba(106, 245, 196, 0.6);
}
.region-marker.active .region-node-pulse { border-color: rgba(106, 245, 196, 0.45); box-shadow: 0 0 22px rgba(106, 245, 196, 0.25); opacity: 1; }

.region-map .leaflet-control-zoom a {
  border-radius: 12px;
  border: 1px solid rgba(91, 200, 255, 0.25);
  background: rgba(8, 12, 20, 0.82);
  color: rgba(232, 240, 255, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.region-map .leaflet-control-zoom a:hover {
  border-color: rgba(91, 200, 255, 0.45);
}

.region-map .leaflet-control-attribution {
  background: rgba(8, 12, 20, 0.72);
  color: rgba(159, 179, 209, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 10px;
  margin: 10px;
  backdrop-filter: blur(10px);
}

.region-map .leaflet-control-attribution a {
  color: rgba(232, 240, 255, 0.92);
}

.region-map::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(91, 200, 255, 0.08), transparent 50%);
  animation: map-glow 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.region-panel {
  padding: 18px;
  border-radius: var(--panel-radius);
  background: rgba(12, 16, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.region-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.region-panel-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--accent-blue);
  margin: 0 0 6px;
}

.region-panel-badge .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.region-panel-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.region-panel-kv .stat {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.35));
  display: grid;
  gap: 6px;
}

.region-panel-kv .stat span {
  font-size: 12px;
  color: var(--muted);
}

.region-panel-kv .stat strong {
  font-size: 16px;
  letter-spacing: 0.3px;
}

.region-panel-list {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 10px;
}

.region-list {
  display: grid;
  gap: 8px;
}

.region-list-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.region-list-item small {
  color: var(--muted);
  font-size: 12px;
}

.region-list-item:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 200, 255, 0.28);
  box-shadow: 0 0 18px rgba(91, 200, 255, 0.14);
}

.region-list-item.active {
  border-color: rgba(106, 245, 196, 0.35);
  box-shadow: 0 0 22px rgba(106, 245, 196, 0.16);
}

.quest-line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.quest-step {
  padding: 16px;
  border-radius: var(--panel-radius);
  background: rgba(12, 16, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(91, 200, 255, 0.05);
}

.guild {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.activity-feed li {
  list-style: none;
  margin: 8px 0;
  color: var(--muted);
}

.activity-feed a {
  color: inherit;
  text-decoration: none;
}

.activity-feed a:hover {
  color: var(--text);
  text-decoration: underline;
}

.activity-feed .activity-time {
  margin-left: 6px;
  color: rgba(159, 179, 209, 0.85);
  font-size: 12px;
}

.faq-item {
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
  padding: 14px 16px;
  background: rgba(12, 16, 28, 0.8);
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.faq-item.active .faq-question::after { content: "-"; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  padding: 0 16px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 12px 16px 16px;
}

/* HUD */
#hud {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 10px 10px;
  background: transparent;
  border-top: 0;
  backdrop-filter: none;
  z-index: 12;
  pointer-events: none;
}

.hud-rail {
  width: min(920px, calc(100vw - 20px));
  margin: 0 auto;
  background: radial-gradient(circle at 20% 50%, rgba(91, 200, 255, 0.1), transparent 45%),
    radial-gradient(circle at 80% 50%, rgba(167, 123, 255, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(8, 10, 18, 0.92), rgba(3, 6, 12, 0.96));
  border: 1px solid rgba(91, 200, 255, 0.25);
  border-radius: 14px;
  padding: 7px 9px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px rgba(91, 200, 255, 0.18);
  pointer-events: auto;
}

.hud-rail.logged-in {
  border-color: rgba(106, 245, 196, 0.35);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px rgba(106, 245, 196, 0.2);
}

.hud-rail.guest {
  border-color: rgba(91, 200, 255, 0.3);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px rgba(91, 200, 255, 0.22);
}

.hud-compact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.hud-compact-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.hud-actions-mini {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hud-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}
.hud-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.hud-main {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 12px;
  align-items: center;
}

.hud-core {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.hud-core .crest {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 30%, rgba(91, 200, 255, 0.55), rgba(8, 10, 16, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 0 18px rgba(91, 200, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.hud-core .crest::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.08), transparent 60%);
}

.hud-core .meta {
  display: grid;
  gap: 6px;
}

.hud-core .meta .label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.6px;
}

.hud-core .meta .value {
  font-size: 16px;
  font-weight: 700;
}

.hud-ticker {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.hud-ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 16s linear infinite;
}

.hud-nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
  scroll-padding: 6px;
}

.hud-nav::-webkit-scrollbar { display: none; }

.hud-nav .nav-hex {
  flex: 0 0 auto;
  min-width: 70px;
  width: auto;
  scroll-snap-align: start;
}

.hud-nav .nav-hex span {
  display: block;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-hex {
  position: relative;
  height: 36px;
  padding: 0 6px;
  width: auto;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(91, 200, 255, 0.5);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(26, 33, 48, 0.95), rgba(8, 10, 16, 0.9));
  text-transform: uppercase;
  letter-spacing: 0.45px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
}

button:disabled,
.button-primary:disabled,
.button-ghost:disabled,
.hud-pill:disabled,
.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.15);
}

.nav-hex::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(91, 200, 255, 0.18), rgba(167, 123, 255, 0.16));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-hex span { position: relative; z-index: 1; }
.nav-hex:hover { transform: translateY(-3px); box-shadow: 0 0 16px rgba(91, 200, 255, 0.25); }
.nav-hex:hover::before { opacity: 1; }
.nav-hex.active { border-color: var(--glow); box-shadow: 0 0 18px rgba(123, 158, 255, 0.35); }
.hud-rail.guest .nav-hex { border-color: rgba(91, 200, 255, 0.4); }
.hud-rail.logged-in .nav-hex { border-color: rgba(106, 245, 196, 0.45); }

.hud-actions {
  display: flex;
  gap: 8px;
  row-gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: 100%;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(91, 200, 255, 0.35);
  background: linear-gradient(180deg, rgba(26, 33, 48, 0.85), rgba(8, 10, 16, 0.9));
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.35);
  min-width: 150px;
}

.hud-pill-mini {
  min-width: auto;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 11px;
}

.hud-compact-actions #hud-account {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-compact-actions #hud-lang {
  min-width: 46px;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.hud-pill.ghost {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.hud-pill.promo {
  border-color: rgba(106, 245, 196, 0.45);
  background: linear-gradient(120deg, rgba(106, 245, 196, 0.18), rgba(91, 200, 255, 0.12));
}

.fa-icon {
  width: 18px;
  height: 18px;
  stroke: #d9e8ff;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.party-badge, .inventory-badge {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(91, 200, 255, 0.35);
  background: linear-gradient(180deg, rgba(12, 14, 20, 0.9), rgba(6, 8, 14, 0.9));
  color: var(--text);
  cursor: pointer;
  min-width: 180px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.35);
  position: relative;
}

.party-icon, .inventory-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, rgba(91, 200, 255, 0.12), rgba(8, 10, 16, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.hud-cta {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(91, 200, 255, 0.6);
  background: linear-gradient(120deg, rgba(91, 200, 255, 0.2), rgba(167, 123, 255, 0.2));
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.15s ease;
}

.hud-cta:hover { transform: translateY(-2px);} 
.hud-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(91, 200, 255, 0.4);
  background: linear-gradient(160deg, rgba(91, 200, 255, 0.12), rgba(255, 255, 255, 0.03));
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  position: relative;
}
.hud-rail.logged-in .hud-icon-btn { border-color: rgba(106, 245, 196, 0.4); }
.hud-actions .badge-count {
  display: inline-block;
  min-width: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(91, 200, 255, 0.25);
  border: 1px solid rgba(91, 200, 255, 0.6);
}

.hud-compact #hud-cart .badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(91, 200, 255, 0.25);
  border: 1px solid rgba(91, 200, 255, 0.6);
}

/* Windows */
.window-layer {
  position: fixed;
  inset: 0;
  z-index: 13;
  display: none;
  align-items: center;
  justify-content: center;
}

.window-layer.active { display: flex; }

.window {
  --window-base-transform: translateZ(0);
  width: min(780px, 92vw);
  max-height: 80vh;
  overflow: hidden;
  background: rgba(10, 14, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--window-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(var(--hud-blur));
  display: grid;
  grid-template-rows: auto 1fr;
  transform: var(--window-base-transform);
}

.window.holo {
  position: relative;
  background: radial-gradient(circle at 30% 20%, rgba(91, 200, 255, 0.06), rgba(8, 12, 20, 0.96));
  border: 1px solid rgba(91, 200, 255, 0.35);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(91, 200, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --window-base-transform: perspective(900px) rotateX(3deg) scale(1.01);
  transform: var(--window-base-transform);
  overflow: hidden;
}

.window-layer.active .overlay-scrim {
  animation: scrim-in 0.25s ease both;
}

.window-layer.active .window:not(.hidden) {
  animation: window-in 0.36s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.window.holo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 60%);
  opacity: 0.2;
  pointer-events: none;
}

.window.holo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(91, 200, 255, 0.06) 0 1px, transparent 1px 20px), repeating-linear-gradient(0deg, rgba(91, 200, 255, 0.06) 0 1px, transparent 1px 20px);
  opacity: 0.25;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: holo-grid 12s linear infinite;
}

.window.holo .content {
  background: linear-gradient(180deg, rgba(91, 200, 255, 0.03), rgba(0, 0, 0, 0.2));
  box-shadow: inset 0 0 40px rgba(91, 200, 255, 0.06);
}

.window.holo header {
  background: linear-gradient(120deg, rgba(91, 200, 255, 0.18), rgba(167, 123, 255, 0.12));
  border-bottom: 1px solid rgba(91, 200, 255, 0.25);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.window.holo .content::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(91, 200, 255, 0.05), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.window header button {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(91, 200, 255, 0.5);
  background: linear-gradient(120deg, rgba(91, 200, 255, 0.22), rgba(10, 12, 20, 0.8));
  color: var(--text);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 0 12px rgba(91, 200, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.window.holo header button {
  border-color: rgba(123, 158, 255, 0.6);
}

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

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}

.auth-form input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.auth-form textarea,
.auth-form select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.auth-form textarea {
  resize: vertical;
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
  color: rgba(159, 179, 209, 0.75);
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
  outline: none;
  border-color: rgba(91, 200, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(91, 200, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.window .content::-webkit-scrollbar {
  width: 10px;
}

.window .content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(91, 200, 255, 0.4), rgba(167, 123, 255, 0.35));
  border-radius: 999px;
  border: 2px solid rgba(10, 12, 20, 0.8);
}

.window .content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.holo-card {
  position: relative;
  --card-accent-rgb: 91, 200, 255;
  background: linear-gradient(160deg, rgba(10, 12, 20, 0.9), rgba(6, 8, 14, 0.92));
  border: 1px solid rgba(91, 200, 255, 0.4);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 140px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(91, 200, 255, 0.15);
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.holo-card::before {
  content: "";
  position: absolute;
  inset: -55%;
  background: conic-gradient(
    from 140deg,
    rgba(var(--card-accent-rgb), 0.22),
    rgba(167, 123, 255, 0.14),
    rgba(106, 245, 196, 0.10),
    rgba(var(--card-accent-rgb), 0.22)
  );
  opacity: 0.22;
  filter: blur(80px);
  transform: translate3d(0, 0, 0);
  animation: holo-drift 24s ease-in-out infinite;
  pointer-events: none;
}

.holo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(91, 200, 255, 0.08), rgba(167, 123, 255, 0.05));
  mix-blend-mode: screen;
  pointer-events: none;
}

.holo-card:hover {
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.52), 0 0 28px rgba(91, 200, 255, 0.18);
}

.holo-thumb {
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.holo-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.holo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.holo-title {
  font-size: 18px;
  font-weight: 700;
}

.holo-actions {
  display: flex;
  gap: 8px;
}

.window header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, rgba(91, 200, 255, 0.08), rgba(167, 123, 255, 0.08));
}

.window .content {
  padding: 18px;
  overflow-y: auto;
  position: relative;
}

.overlay-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.7);
  backdrop-filter: blur(3px);
}

.toast {
  position: fixed;
  bottom: calc(var(--hud-height) + 16px);
  right: 20px;
  background: rgba(9, 15, 24, 0.95);
  border: 1px solid rgba(91, 200, 255, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  z-index: 40;
  animation: slide-up 0.25s ease;
}

/* Enter overlay */
#enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: radial-gradient(circle at 50% 20%, rgba(91, 200, 255, 0.18), rgba(4, 6, 14, 0.96));
  display: grid;
  place-items: center;
  color: var(--text);
  overflow: hidden;
}

#enter-overlay::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 45deg, rgba(91, 200, 255, 0.08), rgba(167, 123, 255, 0.08), rgba(91, 200, 255, 0.08));
  animation: spin 18s linear infinite;
  filter: blur(40px);
  opacity: 0.7;
}

#enter-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 40%);
}

.enter-card {
  width: min(500px, 90vw);
  padding: 28px;
  border-radius: 16px;
  background: rgba(10, 14, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}

.loading-bar {
  height: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  margin: 14px 0 18px;
  position: relative;
}

.loading-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 30%;
  background: linear-gradient(90deg, rgba(91, 200, 255, 0.4), rgba(167, 123, 255, 0.6));
  animation: loading 2.8s ease-in-out infinite;
}

/* Tooltips */
.tooltip {
  position: absolute;
  background: rgba(8, 10, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  font-size: 12px;
  pointer-events: none;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  z-index: 50;
}

/* Game page */
.game-hero {
  padding: 120px 8% 80px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: center;
}

.game-hero::before {
  content: "";
  position: absolute;
  inset: -140px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(91, 200, 255, 0.06) 0,
      rgba(91, 200, 255, 0.06) 1px,
      transparent 1px,
      transparent 46px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(167, 123, 255, 0.05) 0,
      rgba(167, 123, 255, 0.05) 1px,
      transparent 1px,
      transparent 46px
    );
  opacity: 0.22;
  mix-blend-mode: screen;
  filter: blur(0.2px);
  transform: translate3d(-40px, -40px, 0) rotate(-12deg);
  animation: holo-grid-scroll 26s linear infinite;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle at 30% 20%, #000 0 40%, transparent 72%);
  mask: radial-gradient(circle at 30% 20%, #000 0 40%, transparent 72%);
}

.game-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  top: -220px;
  left: 58%;
  background: radial-gradient(circle at 30% 30%, rgba(91, 200, 255, 0.18), transparent 62%);
  opacity: 0.7;
  filter: blur(0.2px);
  animation: orb-drift 14s ease-in-out infinite;
  pointer-events: none;
}

.game-hero > * {
  position: relative;
  z-index: 1;
}

.game-hero .emblem {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at 30% 30%, var(--accent, var(--accent-blue)), rgba(8, 12, 20, 0.9));
  box-shadow: 0 0 24px rgba(91, 200, 255, 0.3);
  position: relative;
  overflow: visible;
  animation: emblem-float 7s ease-in-out infinite;
}

.game-hero .emblem::before,
.game-hero .emblem::after {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: conic-gradient(
    from 90deg,
    rgba(91, 200, 255, 0.0),
    rgba(91, 200, 255, 0.35),
    rgba(167, 123, 255, 0.0),
    rgba(106, 245, 196, 0.22),
    rgba(91, 200, 255, 0.0)
  );
  opacity: 0.55;
  mix-blend-mode: screen;
  filter: blur(0.2px);
  pointer-events: none;
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
  mask: radial-gradient(circle, transparent 58%, #000 60%);
  animation: portal-spin 12s linear infinite;
}

.game-hero .emblem::after {
  inset: -34px;
  opacity: 0.35;
  filter: blur(0.8px);
  animation-direction: reverse;
  animation-duration: 18s;
}

.game-hero .emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  opacity: 0.95;
}

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

.game-tabs button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.game-tabs button.active {
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(91, 200, 255, 0.25);
}

@keyframes holo-grid-scroll {
  0% {
    transform: translate3d(-40px, -40px, 0) rotate(-12deg);
  }
  100% {
    transform: translate3d(40px, 40px, 0) rotate(-12deg);
  }
}

@keyframes orb-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-30px, 18px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.package-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(12, 16, 28, 0.7);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.package-table th, .package-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-align: left;
}

.package-table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.95), rgba(10, 14, 22, 0.92));
  backdrop-filter: blur(10px);
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(232, 240, 255, 0.92);
}

.package-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.package-table tbody tr:hover {
  background: rgba(91, 200, 255, 0.06);
}

.package-table tr.highlight { background: rgba(91, 200, 255, 0.08); }

.ability-list li { margin: 6px 0; color: var(--muted);} 

.deploy-modal {
  display: grid;
  gap: 10px;
}

/* Animations */
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes holo-grid {
  from { transform: translateY(0); }
  to { transform: translateY(-20px); }
}

@keyframes world-drift {
  0% { transform: translate3d(-1%, -1%, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(2%, 1%, 0) rotate(22deg) scale(1.02); }
  100% { transform: translate3d(-1%, -1%, 0) rotate(0deg) scale(1); }
}

@keyframes holo-drift {
  0% { transform: translate3d(-4%, -3%, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(4%, 3%, 0) rotate(180deg) scale(1.05); }
  100% { transform: translate3d(-4%, -3%, 0) rotate(360deg) scale(1); }
}

@keyframes emblem-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes map-glow {
  0% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
  100% { opacity: 0.3; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes grid-breathe {
  0%, 100% {
    opacity: 0.55;
    box-shadow: 0 0 40px rgba(91, 200, 255, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.3);
  }
  50% {
    opacity: 0.85;
    box-shadow: 0 0 58px rgba(91, 200, 255, 0.22), inset 0 0 26px rgba(0, 0, 0, 0.3);
  }
}

@keyframes scrim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes window-in {
  from {
    opacity: 0;
    transform: var(--window-base-transform) translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: var(--window-base-transform);
  }
}
@keyframes loading {
  0% { transform: translateX(-20%); width: 20%; }
  50% { transform: translateX(50%); width: 40%; }
  100% { transform: translateX(120%); width: 20%; }
}

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

@keyframes slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes node-pulse {
  0% { transform: scale(0.6); opacity: 0.0; }
  20% { opacity: 0.9; }
  100% { transform: scale(1.3); opacity: 0.0; }
}

@keyframes portal-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 960px) {
  .hero { padding-top: 80px; }
  .hero-slide-inner { grid-template-columns: 1fr; }
  .regions, .guild, .game-hero { grid-template-columns: 1fr; }
  #hud { padding-bottom: 24px; }
  .hud-rail { grid-template-columns: 1fr; }
  .hud-main { grid-template-columns: 1fr; }
  .hud-strip { grid-template-columns: 1fr; }
  main { padding-bottom: calc(var(--hud-height) + 80px); }
  .hero-visual { display: none; }
  .hero-slide { padding: 90px 8% 120px; }

  .hero-hub-inner { grid-template-columns: 1fr; padding: 100px 0 70px; }
  .hero-hub-portal { display: none; }
  .hero-hub-offers { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hud-rail { width: min(560px, calc(100vw - 14px)); padding: 6px 7px; border-radius: 12px; }
  .hud-compact-row { gap: 8px; }
  .nav-hex { height: 34px; font-size: 10px; }
  .hud-icon-btn { width: 34px; height: 34px; border-radius: 10px; }
  .hud-nav { gap: 4px; }
  .hud-nav .nav-hex { min-width: 66px; }
  .hud-compact-actions #hud-account { max-width: 120px; }
}

@media (max-width: 420px) {
  #hud-register { display: none; }
  .hud-compact-actions #hud-account { max-width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  #particle-layer { display: none; }
  body::after { animation: none !important; }
  .game-hero .emblem { animation: none !important; }
  .game-hero .emblem::before,
  .game-hero .emblem::after { animation: none !important; }
}
