:root {
  color-scheme: dark;
  --bg: #07090c;
  --surface: #10141b;
  --panel: #151a22;
  --line: #29313d;
  --gold: #a855f7;
  --gold-2: #d0a6ff;
  --text: #f4f1ea;
  --muted: #99a0aa;
  --green: #44c979;
  --gold-glow: rgba(168, 85, 247, 0.55);
}

@font-face {
  font-family: "Chakra Petch";
  src: url("/static/fonts/ChakraPetch-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch";
  src: url("/static/fonts/ChakraPetch-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch";
  src: url("/static/fonts/ChakraPetch-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch";
  src: url("/static/fonts/ChakraPetch-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 16%, rgba(168, 85, 247, 0.16), transparent 28rem),
    linear-gradient(135deg, #07090c 0%, #10141b 55%, #090b0f 100%);
  color: var(--text);
  font-family: "Chakra Petch", "Segoe UI", "Leelawadee UI", Tahoma, Arial, sans-serif;
}

main.full-bleed {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

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

.topbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 28px;
  padding: 18px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(16px);
}

.brand,
nav,
.nav-link {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 64px;
  height: 42px;
  object-fit: contain;
}

nav {
  gap: 14px;
}

.nav-link {
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.nav-primary {
  gap: 26px;
  flex-wrap: wrap;
}

.nav-primary .nav-link {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-secondary {
  margin-left: auto;
  gap: 18px;
  flex-wrap: wrap;
}

.download-nav {
  color: var(--gold-2);
  font-weight: 800;
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch-btn {
  padding: 4px 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lang-switch-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #150a1f;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(36px, 7vw, 86px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.auth-card,
.dashboard,
.table-page,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(21, 26, 34, 0.92), rgba(10, 12, 16, 0.92));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.hero-copy,
.auth-card,
.dashboard,
.table-page {
  padding: clamp(28px, 5vw, 56px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px var(--gold-glow);
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.lead-intro {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.lead-list {
  max-width: 620px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.lead-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.lead-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 8px var(--gold-glow);
}

.lead-outro {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.button svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #150a1f;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.button.primary:hover {
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.55);
  transform: translateY(-1px);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.panel {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 360px;
  padding: 26px;
}

.panel span,
article span {
  color: var(--muted);
  font-size: 13px;
}

.panel strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.panel small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.panel-download {
  margin-top: 22px;
}

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

article {
  min-height: 112px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

article strong {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 8px 0 28px;
  padding: 24px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background:
    radial-gradient(circle at 92% 10%, rgba(168, 85, 247, 0.20), transparent 18rem),
    rgba(255, 255, 255, 0.045);
}

.download-card h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.download-card p:not(.eyebrow) {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 230px;
}

.member-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  margin: 8px 0 28px;
}

.status-panel,
.dino-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(9, 12, 17, 0.86);
}

.status-panel {
  padding: 24px;
}

.status-panel h2,
.table-page h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 20px;
}

.live-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(68, 201, 121, 0.28);
  background: rgba(68, 201, 121, 0.10);
  color: #baf6d1;
  font-size: 13px;
  font-weight: 800;
}

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

.profile-row {
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.profile-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-row strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.status-bars {
  display: grid;
  gap: 13px;
}

.stat-row {
  display: grid;
  grid-template-columns: 90px minmax(120px, 1fr) 46px;
  align-items: center;
  gap: 12px;
  color: #d9dde4;
  font-weight: 700;
}

.stat-row span {
  color: var(--muted);
  font-size: 13px;
}

.stat-row b {
  grid-column: 3;
  grid-row: 1;
  text-align: right;
  font-size: 13px;
}

.stat-meter {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.stat-meter::-webkit-meter-bar {
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.stat-meter::-moz-meter-bar {
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.stat-health { color: #ef4648; }
.stat-stamina { color: #f9bb21; }
.stat-hunger { color: #f07b16; }
.stat-thirst { color: #2daee9; }
.stat-growth { color: #37ce77; }

.dino-card {
  display: grid;
  align-content: center;
  min-height: 280px;
  padding: 20px;
  overflow: hidden;
}

.dino-card p {
  margin: 18px 0 0;
  text-align: center;
  color: var(--gold-2);
  font-weight: 800;
}

.model-shell {
  display: grid;
  place-items: center;
  height: 260px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.24);
  background:
    radial-gradient(circle at 50% 76%, rgba(168, 85, 247, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(19, 25, 33, 0.55), rgba(4, 6, 9, 0.9));
}

.evrima-model {
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
  user-select: none;
}

.model-loader {
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 240px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
}

.model-loader strong {
  color: var(--gold-2);
  font-size: 18px;
}

.model-loader span {
  line-height: 1.5;
}

.model-load-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(168, 85, 247, 0.38);
  background: rgba(168, 85, 247, 0.14);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.model-load-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.model-empty {
  display: grid;
  gap: 10px;
  max-width: 230px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.model-empty strong {
  color: var(--gold-2);
  font-size: 18px;
}

.model-empty span {
  color: var(--muted);
  line-height: 1.5;
}

.online-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 28px 0 12px;
}

.compact-lead {
  margin-top: 16px;
  font-size: 16px;
}

.species-card {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: rgba(255, 255, 255, 0.045);
}

.species-card.total {
  background: rgba(168, 85, 247, 0.12);
}

.species-card strong {
  font-size: 34px;
}

.species-card:not(.total) strong {
  font-size: clamp(24px, 4vw, 34px);
}

.registry-label {
  margin-top: 42px;
}

table {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
}

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

th {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: #d9dde4;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid rgba(244, 163, 59, 0.24);
  background: rgba(255, 255, 255, 0.045);
}

.admin-form-wide {
  grid-template-columns: minmax(190px, .7fr) minmax(280px, 1.4fr) auto auto;
}

.admin-form .span-two {
  grid-column: span 2;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-form input,
.admin-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: #090b10;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  text-transform: none;
}

.admin-result {
  min-height: 20px;
  color: var(--gold-2);
  font-size: 13px;
}

.verify-gate {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 64px 18px;
  background:
    radial-gradient(circle at 72% 72%, rgba(244, 185, 92, 0.12), transparent 28%),
    linear-gradient(135deg, #070b09 0%, #101610 48%, #050706 100%);
}

.verify-card {
  width: min(520px, calc(100vw - 36px));
  padding: 28px 34px 30px;
  border: 1px solid rgba(244, 185, 92, 0.42);
  border-radius: 14px;
  background: rgba(10, 15, 11, 0.94);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.44);
}

.verify-card svg {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex: none;
}

.verify-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.verify-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(244, 185, 92, 0.34);
  border-radius: 999px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.verify-eyebrow svg {
  width: 14px;
  height: 14px;
}

.lang-switch.compact {
  margin: 0;
}

.verify-card h1 {
  margin: 0;
  text-align: center;
  font-size: 30px;
  line-height: 1.15;
}

.verify-lead {
  width: min(440px, 100%);
  margin: 10px auto 22px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.verify-lead code,
.verify-steps code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(244, 185, 92, 0.18);
  color: var(--gold-2);
  font-weight: 900;
}

.verify-steps {
  counter-reset: verify-step;
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.verify-steps li {
  counter-increment: verify-step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.verify-steps li::before {
  content: counter(verify-step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1206;
  font-weight: 900;
}

.verify-steps strong,
.verify-steps span {
  grid-column: 2;
}

.verify-steps strong {
  color: var(--text);
}

.verify-steps span {
  color: var(--muted);
  font-size: 13px;
}

.verify-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
  gap: 12px;
  align-items: end;
  margin-top: 22px;
}

.verify-form label {
  display: grid;
  gap: 9px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.verify-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  border: 1px solid var(--gold-2);
  border-radius: 10px;
  background: #050705;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}

.verify-form button {
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  white-space: nowrap;
}

.verify-form button svg,
.verify-footer svg {
  width: 16px;
  height: 16px;
}

.verify-error {
  margin: 16px 0 0;
  color: #ff8f7e;
  text-align: center;
  font-weight: 800;
}

.verify-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.verify-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .verify-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .verify-card-head,
  .verify-form {
    grid-template-columns: 1fr;
    display: grid;
  }

  .verify-card-head {
    justify-items: start;
  }

  .verify-form button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .verify-card {
    width: min(520px, calc(100vw - 20px));
  }

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

.live-map-shell {
  display: grid;
  grid-template-columns: 310px minmax(680px, 1fr);
  gap: 16px;
  min-height: calc(100vh - 118px);
}

.map-sidebar,
.map-stage {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 16, 0.88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.map-sidebar {
  padding: 20px;
  overflow: auto;
}

.map-sidebar h1 {
  font-size: 34px;
  line-height: 1;
}

.map-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#mapStatusDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px var(--green);
}

#mapStatusDot.offline {
  background: #f25d4f;
  box-shadow: 0 0 20px #f25d4f;
}

.map-search {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-search input,
.map-search select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: #090b10;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  text-transform: none;
}

.map-tools {
  display: grid;
  grid-template-columns: 48px 48px 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}

.map-tools button,
.map-tool-link,
.marker-card button,
.food-toggle {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.map-tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--gold-2);
  font-size: 11px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.food-toggle {
  width: 100%;
  margin-top: 8px;
  border-color: rgba(168, 85, 247, .45);
  background: rgba(168, 85, 247, .14);
  color: var(--gold-2);
}

.food-toggle.is-off {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
}

.layer-list {
  display: grid;
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.layer-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d8dce4;
  font-size: 14px;
}

.layer-toggle span {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--layer);
  box-shadow: 0 0 18px color-mix(in srgb, var(--layer), transparent 35%);
}

.map-stage {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 118px);
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(43, 103, 156, .28), transparent 32%),
    radial-gradient(circle at 76% 72%, rgba(28, 76, 126, .24), transparent 34%),
    linear-gradient(135deg, #09131f 0%, #102b52 48%, #071018 100%);
}

.map-stage:active {
  cursor: grabbing;
}

.map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 1000px;
  height: 1000px;
  transform-origin: 0 0;
  will-change: transform;
}

.map-base,
.map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-base {
  user-select: none;
  pointer-events: none;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
}

.map-overlay {
  overflow: visible;
}

.zone {
  fill-opacity: .035;
  stroke-width: 1.65;
  stroke-opacity: .58;
  stroke-dasharray: 7 10;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, .45));
}

.zone.migration {
  fill-opacity: .028;
  stroke-width: 1.6;
  stroke-dasharray: 8 10;
}

.zone.sanctuary {
  fill-opacity: .045;
  stroke-width: 1.9;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 4px rgba(121, 217, 120, .28));
}

.map-path {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .86;
}

.marker {
  cursor: pointer;
}

.marker circle:first-child {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .24));
}

.marker circle:nth-child(2) {
  stroke-width: 2;
  opacity: .5;
  vector-effect: non-scaling-stroke;
}

.marker text {
  fill: #f4d591;
  stroke: #150a1f;
  stroke-width: 2;
  paint-order: stroke;
  font: 800 13px Georgia, serif;
  letter-spacing: .03em;
  pointer-events: none;
}

.marker-patrol .patrol-core {
  filter: drop-shadow(0 0 5px rgba(242, 169, 59, .62));
}

.marker-patrol .patrol-ring,
.marker-items .item-ring {
  stroke-width: 1.25;
  opacity: .52;
  vector-effect: non-scaling-stroke;
}

.marker-items .item-diamond {
  filter: drop-shadow(0 0 5px rgba(231, 226, 206, .4));
}

.marker .food-icon {
  stroke: rgba(0, 0, 0, .72);
  stroke-width: 4;
  paint-order: stroke;
  font: 700 21px "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  letter-spacing: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .72));
}

.marker-hotspots .hotspot-pulse {
  fill-opacity: .14;
  stroke: #fff1d4;
  stroke-width: 1.4;
  stroke-opacity: .24;
  vector-effect: non-scaling-stroke;
}

.marker-players .player-dot {
  filter: drop-shadow(0 0 9px rgba(68, 201, 121, .82));
}

.compass {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, .45);
  background: rgba(6, 7, 9, .72);
  color: var(--gold-2);
  font: 800 13px Georgia, serif;
}

.compass::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 2px;
  height: 28px;
  background: linear-gradient(var(--gold), transparent);
}

.compass span,
.compass b,
.compass i,
.compass em {
  position: absolute;
  font-style: normal;
}

.compass span { top: -18px; left: 31px; }
.compass b { left: -17px; top: 27px; }
.compass i { right: -16px; top: 27px; }
.compass em { bottom: -18px; left: 32px; }

.coords {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 12px;
  background: rgba(6, 7, 9, .78);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--gold-2);
  font: 800 12px "Segoe UI", Arial, sans-serif;
}

.map-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 180px);
  padding: 8px 12px;
  background: rgba(6, 7, 9, .72);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #b6a47f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-align: center;
}

.marker-card {
  position: absolute;
  right: 18px;
  top: 18px;
  width: min(320px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(168, 85, 247, .35);
  background: rgba(9, 10, 13, .92);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: .18s ease;
}

.marker-card.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.marker-card p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.marker-card h2 {
  margin: 0 0 10px;
}

.marker-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
}

#closeMarker {
  float: right;
  min-height: 30px;
}

@media (max-width: 780px) {
  .topbar,
  .hero,
  .grid,
  .live-map-shell {
    grid-template-columns: 1fr;
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .member-layout {
    grid-template-columns: 1fr;
  }

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

  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-form .span-two {
    grid-column: auto;
  }

  .download-actions {
    min-width: 0;
  }

  .stat-row {
    grid-template-columns: 74px minmax(86px, 1fr) 38px;
  }

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

  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-secondary {
    margin-left: 0;
  }

  .map-stage {
    min-height: min(76vh, 640px);
  }

  .map-hint {
    max-width: calc(100% - 32px);
    white-space: normal;
    line-height: 1.6;
  }
}

.nav-link {
  position: relative;
  padding: 4px 0;
}

.nav-link.active {
  color: var(--gold-2);
  text-shadow: 0 0 10px var(--gold-glow);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.7);
}

.hero-v2 {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(48px, 9vw, 96px) clamp(24px, 6vw, 64px);
  text-align: center;
  border: none;
  background: none;
  box-shadow: none;
}

.hero-v2::before {
  content: "";
  position: absolute;
  inset: -12% -10%;
  z-index: -1;
  background-image: url("/static/last_island_logo.png");
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: min(1400px, 150%);
  opacity: 0.12;
  pointer-events: none;
}

.hero-v2::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.14), transparent 34rem),
    radial-gradient(circle at 50% 100%, rgba(7, 9, 12, 0.85), rgba(7, 9, 12, 0.4) 70%);
  pointer-events: none;
}

.hero-v2 .eyebrow {
  margin: 0;
}

.hero-v2 h1 {
  max-width: 900px;
}

.hero-v2 .lead {
  max-width: 640px;
  text-align: center;
}

.hero-v2 .actions {
  justify-content: center;
  margin-top: 10px;
}

.release-card {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 16px;
  padding: 22px 26px;
  border: 1px solid rgba(168, 85, 247, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.release-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
  color: var(--gold-2);
}

.release-icon svg {
  width: 26px;
  height: 26px;
}

.release-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.release-body {
  flex: 1 1 auto;
  min-width: 0;
}

.release-body span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-body strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
}

.release-badge {
  flex: none;
  padding: 5px 10px;
  border: 1px solid rgba(68, 201, 121, 0.3);
  background: rgba(68, 201, 121, 0.1);
  color: #baf6d1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.release-badge.is-offline {
  border-color: rgba(242, 93, 79, 0.32);
  background: rgba(242, 93, 79, 0.1);
  color: #ffb6ac;
}

.release-actions {
  flex: none;
  display: flex;
  gap: 10px;
}

.release-link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.14);
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.release-link-button svg.arrow {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.15s ease;
}

.release-link-button:hover {
  color: #150a1f;
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.release-link-button:hover svg.arrow {
  transform: translateX(3px);
}

.install-modal {
  width: min(560px, calc(100vw - 48px));
  padding: 0;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.08), 0 30px 80px rgba(0, 0, 0, 0.55);
  text-align: left;
}

.install-modal::backdrop {
  background: rgba(4, 3, 8, 0.72);
  backdrop-filter: blur(2px);
}

.install-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.install-modal-head h3 {
  margin: 0;
  font-size: 18px;
}

.install-modal-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.install-modal-close:hover {
  color: var(--gold-2);
  border-color: rgba(168, 85, 247, 0.4);
}

.install-modal-body {
  padding: 20px 22px 24px;
  color: var(--muted);
  line-height: 1.6;
}

.install-guide-steps {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 14px;
  text-align: left;
}

.install-guide-steps li {
  color: var(--text);
  padding-left: 4px;
}

.install-guide-steps li::marker {
  color: var(--gold-2);
  font-weight: 800;
}

.voice-join-modal {
  width: min(440px, calc(100vw - 48px));
}

.voice-join-step[hidden] {
  display: none;
}

.voice-join-subtitle {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.voice-join-rules {
  margin: 10px 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.voice-join-rules li {
  font-size: 13px;
}

.voice-join-rules-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
}

.voice-join-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.voice-join-agree input {
  margin-top: 2px;
  flex: none;
}

.voice-join-continue {
  width: 100%;
}

.voice-join-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.voice-join-field {
  display: block;
  margin-bottom: 16px;
}

.voice-join-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.voice-join-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  color-scheme: dark;
  font: inherit;
}

.voice-join-field select option {
  background: var(--panel);
  color: var(--text);
}

.voice-join-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.voice-join-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.voice-join-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.voice-join-status-dot.is-connecting {
  background: #e8b34c;
  box-shadow: 0 0 8px rgba(232, 179, 76, 0.6);
}

.voice-join-status-dot.is-connected {
  background: var(--green);
  box-shadow: 0 0 8px rgba(68, 201, 121, 0.6);
}

.voice-join-status strong {
  color: var(--text);
  font-size: 13px;
}

.voice-join-count {
  margin-left: auto;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.voice-ptt-panel {
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.06);
}

.voice-ptt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.voice-ptt-head > strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.voice-ptt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.voice-ptt-toggle input {
  accent-color: var(--gold-2);
}

.voice-ptt-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.voice-ptt-controls .button {
  min-height: 38px;
}

.voice-ptt-controls .button.is-speaking {
  border-color: rgba(68, 201, 121, 0.75);
  color: var(--green);
  box-shadow: 0 0 16px rgba(68, 201, 121, 0.18);
}

.voice-join-controls {
  display: flex;
  gap: 10px;
}

.voice-join-controls .button {
  flex: 1;
}

.voice-join-back {
  display: block;
  margin: 14px auto 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.voice-join-wrap {
  position: relative;
  display: inline-flex;
}

.voice-join-badge {
  position: absolute;
  top: -9px;
  right: -8px;
  padding: 2px 7px;
  border: 1px solid rgba(232, 179, 76, 0.45);
  border-radius: 999px;
  background: rgba(232, 179, 76, 0.16);
  color: #e8b34c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.voice-mini-tab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(168, 85, 247, 0.65);
  border-radius: 8px;
  background: rgba(18, 20, 27, 0.96);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.voice-mini-tab[hidden] {
  display: none;
}

.voice-mini-tab strong {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.voice-mini-tab span:last-child {
  color: var(--gold-2);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.voice-mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(68, 201, 121, 0.7);
}

.discord-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.steam-overlay-body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #05070b;
}

.steam-map-app {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--text);
  background: #05070b;
  font-family: inherit;
}

.steam-map-top,
.steam-map-bottom {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-color: rgba(168, 85, 247, 0.38);
  background: rgba(9, 11, 17, 0.86);
  backdrop-filter: blur(8px);
}

.steam-map-top {
  border-bottom: 1px solid rgba(168, 85, 247, 0.38);
}

.steam-map-bottom {
  border-top: 1px solid rgba(168, 85, 247, 0.38);
}

.steam-map-top p {
  margin: 0 0 2px;
  color: var(--gold-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steam-map-top strong,
.steam-map-bottom span {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.steam-map-actions,
.steam-map-zoom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.steam-map-actions a,
.steam-map-actions button,
.steam-map-zoom button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(168, 85, 247, 0.48);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.steam-map-actions button.is-active {
  border-color: rgba(68, 201, 121, 0.8);
  color: var(--green);
}

.steam-map-stage {
  position: relative;
  overflow: hidden;
  touch-action: none;
  background: #090b11;
}

.steam-map-stage.is-offline {
  filter: saturate(0.65);
}

.steam-map-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 1000px;
  height: 1000px;
  transform-origin: 0 0;
  will-change: transform;
}

.steam-map-canvas img,
.steam-map-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.steam-map-canvas img {
  object-fit: cover;
  opacity: 0.96;
}

.steam-zone {
  opacity: 0.18;
  stroke-width: 2;
  stroke-dasharray: 7 6;
}

.steam-marker text {
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.72);
  stroke-width: 5px;
  fill: #fff1d4;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.steam-marker-labels text {
  fill: rgba(255, 241, 212, 0.72);
  font-size: 24px;
}

.steam-player-pulse {
  opacity: 0.34;
  transform-origin: center;
}

.steam-player-core {
  stroke: #44c979;
  stroke-width: 4;
}

.steam-map-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 241, 212, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.steam-map-crosshair::before,
.steam-map-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255, 241, 212, 0.55);
}

.steam-map-crosshair::before {
  left: 50%;
  top: -9px;
  width: 1px;
  height: 36px;
}

.steam-map-crosshair::after {
  left: -9px;
  top: 50%;
  width: 36px;
  height: 1px;
}

.discord-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.discord-stats strong {
  color: var(--text);
  font-weight: 800;
}

.button.discord {
  border-color: rgba(88, 101, 242, 0.5);
  background: linear-gradient(135deg, #5865f2, #7289da);
  color: #fff;
}

.discord-widget-frame {
  margin-top: -1px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  overflow: hidden;
  background: #313338;
}

.discord-widget-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 64px 0 28px;
  text-align: center;
}

.section-head .eyebrow {
  margin: 0;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.vip-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin: 0 0 24px;
}

.vip-tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.vip-tier-card[data-tier="vip1"] { border-color: rgba(125, 211, 252, 0.35); }
.vip-tier-card[data-tier="vip2"] { border-color: rgba(232, 179, 76, 0.4); }
.vip-tier-card[data-tier="vip3"] {
  border-color: rgba(255, 107, 107, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.1), 0 24px 60px rgba(255, 107, 107, 0.1);
}

.vip-tier-badge {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--surface);
  border: 1px solid var(--line);
}

.vip-tier-card[data-tier="vip1"] .vip-tier-badge { color: #7dd3fc; border-color: rgba(125, 211, 252, 0.5); }
.vip-tier-card[data-tier="vip2"] .vip-tier-badge { color: #e8b34c; border-color: rgba(232, 179, 76, 0.5); }
.vip-tier-card[data-tier="vip3"] .vip-tier-badge { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.55); }

.vip-tier-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.vip-tier-icon svg { width: 24px; height: 24px; }

.vip-tier-card[data-tier="vip1"] .vip-tier-icon { color: #7dd3fc; }
.vip-tier-card[data-tier="vip2"] .vip-tier-icon { color: #e8b34c; }
.vip-tier-card[data-tier="vip3"] .vip-tier-icon { color: #ff6b6b; }

.vip-tier-name {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.vip-tier-price {
  margin: -10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.vip-tier-features {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.vip-tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.vip-tier-features li svg {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 3px;
}

.vip-tier-card[data-tier="vip1"] .vip-tier-features li svg { color: #7dd3fc; }
.vip-tier-card[data-tier="vip2"] .vip-tier-features li svg { color: #e8b34c; }
.vip-tier-card[data-tier="vip3"] .vip-tier-features li svg { color: #ff6b6b; }

.vip-tier-features li.is-sub {
  padding-left: 24px;
  color: var(--muted);
  font-size: 12.5px;
}

.vip-tier-features li.is-future {
  font-weight: 700;
}

.vip-tier-card[data-tier="vip1"] .vip-tier-features li.is-future { color: #7dd3fc; }
.vip-tier-card[data-tier="vip2"] .vip-tier-features li.is-future { color: #e8b34c; }
.vip-tier-card[data-tier="vip3"] .vip-tier-features li.is-future { color: #ff6b6b; }

.vip-tier-cta {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}

.vip-tier-card[data-tier="vip1"] .vip-tier-cta {
  border-color: transparent;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  color: #05161f;
}

.vip-tier-card[data-tier="vip1"] .vip-tier-cta:hover {
  filter: brightness(1.08);
}

.vip-tier-card[data-tier="vip2"] .vip-tier-cta {
  border-color: transparent;
  background: linear-gradient(135deg, #e8b34c, #ffcf6b);
  color: #1f1505;
}

.vip-tier-card[data-tier="vip2"] .vip-tier-cta:hover {
  filter: brightness(1.08);
}

.vip-tier-card[data-tier="vip3"] .vip-tier-cta {
  border-color: transparent;
  background: linear-gradient(135deg, #ff6b6b, #ff9b6b);
  color: #1a0505;
}

.vip-tier-card[data-tier="vip3"] .vip-tier-cta:hover {
  filter: brightness(1.08);
}

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

.offer-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.offer-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.18);
  color: var(--gold-2);
}

.offer-icon svg {
  width: 22px;
  height: 22px;
}

.offer-card h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.offer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.offer-tags span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.voice-hero-card {
  display: grid;
  gap: 14px;
  max-width: 460px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.voice-hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.voice-hero-card h1 {
  margin: 0;
  font-size: 26px;
}

.voice-hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.step-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px 22px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 2px solid rgba(168, 85, 247, 0.5);
  background: rgba(255, 255, 255, 0.03);
}

.step-number {
  color: rgba(168, 85, 247, 0.5);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.step-card .offer-icon {
  margin-top: 2px;
}

.step-card h3 {
  margin: 2px 0 0;
  font-size: 16px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 64px 0 8px;
  padding: 30px 20px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background:
    radial-gradient(circle at 12% 20%, rgba(168, 85, 247, 0.12), transparent 22rem),
    rgba(255, 255, 255, 0.03);
}

.stat-block {
  display: grid;
  gap: 6px;
  text-align: center;
}

.stat-block strong {
  font-size: clamp(24px, 4vw, 36px);
  color: var(--gold-2);
}

.stat-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-block.is-live strong {
  color: #6fe39a;
}

.stat-block.is-offline strong {
  color: #ff8f84;
}

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

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

}

@media (max-width: 780px) {
  .release-card {
    flex-wrap: wrap;
  }

  .release-actions {
    width: 100%;
  }

  .release-actions .button {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  .offer-grid,
  .steps-grid,
  .stats-bar {
    grid-template-columns: 1fr;
  }

}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(68, 201, 121, 0.3);
  background: rgba(68, 201, 121, 0.1);
  color: #baf6d1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.status-pill.is-offline {
  border-color: rgba(242, 93, 79, 0.32);
  background: rgba(242, 93, 79, 0.1);
  color: #ffb6ac;
}

.status-pill.is-offline::before {
  background: #f25d4f;
  box-shadow: 0 0 10px #f25d4f;
}

.hero-substat {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.feature-tile {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.feature-tile .offer-icon {
  width: 36px;
  height: 36px;
}

.feature-tile .offer-icon svg {
  width: 18px;
  height: 18px;
}

.feature-tile strong {
  font-size: 15px;
}

.feature-tile span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 800;
}

.category-card .offer-icon {
  flex: none;
}

.category-card span {
  flex: 1 1 auto;
}

.category-card svg.arrow {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex: none;
}

.tldr-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
  padding: 22px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.tldr-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.tldr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.tldr-item svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.tldr-item.is-do svg {
  color: #6fe39a;
}

.tldr-item.is-dont svg {
  color: #ff8f84;
}

.quote-block {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--gold);
  background: rgba(168, 85, 247, 0.06);
  font-size: 16px;
  font-style: italic;
  color: #e7e2d6;
  line-height: 1.7;
}

.quote-block cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.rule-block {
  margin: 48px 0;
}

.rule-block h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3.4vw, 30px);
}

.rule-block > p {
  margin: 0 0 20px;
  color: var(--muted);
}

.rule-list {
  display: grid;
  gap: 12px;
}

.rule-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.rule-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.08);
  color: var(--gold-2);
  font-weight: 800;
  font-size: 13px;
}

.rule-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.rule-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 56px 0 8px;
  padding: 26px 30px;
  border: 1px solid rgba(168, 85, 247, 0.24);
  background:
    radial-gradient(circle at 15% 30%, rgba(168, 85, 247, 0.14), transparent 22rem),
    rgba(255, 255, 255, 0.03);
}

.cta-band h2 {
  margin: 0 0 4px;
  font-size: clamp(20px, 3vw, 28px);
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.cta-band .actions {
  margin-top: 0;
}

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

  .category-nav {
    grid-template-columns: 1fr;
  }

  .tldr-panel {
    grid-template-columns: 1fr;
  }

  .rule-item {
    grid-template-columns: 36px 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .feature-strip {
    grid-template-columns: 1fr;
  }
}

/* Dashboard */
.dashboard-shell {
  flex: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
}

.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  position: sticky;
  top: 0;
  height: 100vh;
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-user img,
.dash-user .offer-icon {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: cover;
}

.dash-user strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.dash-user span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-nav {
  display: grid;
  gap: 3px;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dash-nav-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.dash-nav-link.active {
  border-left-color: var(--gold);
  background: rgba(168, 85, 247, 0.08);
  color: var(--gold-2);
}

.dash-sidebar-foot {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.dash-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dash-logout svg {
  width: 16px;
  height: 16px;
}

.dash-main {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 52px) 60px;
  min-width: 0;
}

.stat-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

.stat-chip svg {
  width: 16px;
  height: 16px;
  color: var(--gold-2);
  flex: none;
}

.stat-chip span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-chip strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.dash-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.specimen-column {
  display: grid;
  gap: 18px;
}

.specimen-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 60px 24px;
  text-align: center;
}

.specimen-empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.specimen-empty-icon svg {
  width: 26px;
  height: 26px;
}

.specimen-empty strong {
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.specimen-empty span {
  color: var(--muted);
  font-size: 13px;
}

.specimen-empty .button {
  margin-top: 10px;
}

.tactical-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(21, 26, 34, 0.92), rgba(9, 12, 17, 0.92));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.tactical-panel--hud {
  position: relative;
  clip-path: polygon(
    0 18px, 18px 0,
    100% 0, 100% calc(100% - 18px),
    calc(100% - 18px) 100%, 0 100%
  );
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.012) 0px,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(180deg, rgba(21, 26, 34, 0.95), rgba(9, 12, 17, 0.96));
}

.tactical-panel--hud::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-2) 50%, var(--gold) 80%, transparent);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

.tactical-panel--hud::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.35), transparent);
}

.tactical-panel--wide {
  padding: 26px 30px 30px;
}

.tactical-panel--wide .tactical-feature {
  max-width: 600px;
}

.tactical-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: 28px;
  margin-top: 4px;
}

.tactical-column {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.tactical-column:first-child {
  padding-left: 0;
  border-left: none;
}

.tactical-column--status {
  align-content: space-between;
  min-height: 100%;
}

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

@media (max-width: 980px) {
  .tactical-columns {
    grid-template-columns: 1fr;
  }

  .tactical-column {
    padding-left: 0;
    border-left: none;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .tactical-column:first-child {
    padding-top: 0;
    border-top: none;
  }

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

@media (max-width: 560px) {
  .tactical-list--cols2 {
    grid-template-columns: 1fr;
  }
}

.tactical-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.tactical-header svg {
  width: 18px;
  height: 18px;
  color: var(--gold-2);
}

.tactical-header-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.tactical-header-badge svg {
  width: 17px;
  height: 17px;
}

.tactical-header-pulse {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: tactical-pulse 1.8s ease-in-out infinite;
}

@keyframes tactical-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.72); }
}

.tactical-note {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.tactical-label {
  margin: 4px 0 -6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tactical-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 -6px;
}

.tactical-divider::before,
.tactical-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4));
}

.tactical-divider::after {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.4), transparent);
}

.tactical-divider span {
  flex: none;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tactical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tactical-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  border: 1px solid rgba(68, 201, 121, 0.3);
  background: rgba(68, 201, 121, 0.08);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.tactical-feature:hover {
  border-color: rgba(68, 201, 121, 0.5);
  background: rgba(68, 201, 121, 0.13);
}

.tactical-feature svg {
  width: 28px;
  height: 28px;
  flex: none;
  color: #6fe39a;
}

.tactical-feature strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: #baf6d1;
}

.tactical-feature span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.tactical-feature .tag {
  font-size: 12px;
  padding: 5px 12px;
}

.tag {
  flex: none;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag.is-ready {
  border-color: rgba(68, 201, 121, 0.35);
  background: rgba(68, 201, 121, 0.14);
  color: #baf6d1;
}

.tag.is-active {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.14);
  color: var(--gold-2);
}

.tactical-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.tactical-switch-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 9px 6px;
  cursor: pointer;
}

.tactical-switch-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #150a1f;
}

.tactical-panel-view[hidden] {
  display: none;
}

.tactical-action,
.tactical-row {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.tactical-row {
  width: 100%;
  text-align: left;
}

.tactical-action {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
}

.tactical-action svg {
  width: 20px;
  height: 20px;
  color: var(--gold-2);
}

.tactical-action.is-disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.tactical-action.is-disabled svg {
  color: var(--muted);
}

.tactical-list {
  display: grid;
  gap: 6px;
}

.tactical-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
  font-weight: 700;
}

.tactical-row svg {
  width: 16px;
  height: 16px;
  color: var(--gold-2);
  flex: none;
}

.tactical-row .tactical-row-label {
  flex: 1 1 auto;
}

.tactical-row.is-disabled {
  color: var(--muted);
}

.tactical-row.is-disabled svg {
  color: var(--muted);
}

.tactical-connection {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid rgba(68, 201, 121, 0.25);
  background: rgba(68, 201, 121, 0.08);
  color: #baf6d1;
  font-size: 12px;
  font-weight: 800;
}

.tactical-connection .dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: tactical-pulse 1.8s ease-in-out infinite;
}

.tactical-connection.is-offline {
  border-color: rgba(242, 93, 79, 0.28);
  background: rgba(242, 93, 79, 0.1);
  color: #ffb6ac;
}

.tactical-action {
  position: relative;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tactical-action:hover {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.tactical-action.is-disabled:hover {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  transform: none;
  box-shadow: none;
}

.tactical-action.is-loading,
.tactical-row.is-loading {
  opacity: 0.68;
  cursor: wait;
}

.tactical-row {
  position: relative;
  padding-left: 16px;
  border-left: 2px solid rgba(168, 85, 247, 0.35);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.tactical-row:not(.is-disabled):hover {
  border-left-color: var(--gold-2);
  background: rgba(168, 85, 247, 0.07);
  transform: translateX(2px);
}

.tactical-row.is-disabled {
  border-left-color: rgba(255, 255, 255, 0.1);
}

.dashboard-command-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(72, 211, 122, 0.35);
  background: rgba(11, 24, 18, 0.94);
  color: #9af2b7;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.dashboard-command-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-command-toast.is-error {
  border-color: rgba(242, 93, 79, 0.4);
  background: rgba(42, 14, 17, 0.94);
  color: #ffb6ac;
}

@media (max-width: 1080px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dash-nav {
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .dash-sidebar-foot {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
  }

  .dash-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Dashboard tabs */
.dash-nav-link {
  appearance: none;
  width: 100%;
  border: none;
  border-left: 2px solid transparent;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.dash-tab-panel {
  display: grid;
  gap: 18px;
}

.dash-tab-panel[hidden] {
  display: none;
}

.panel-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.panel-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-card-head svg {
  width: 18px;
  height: 18px;
  color: var(--gold-2);
}

.panel-card-head h2 {
  margin: 0;
  font-size: 16px;
}

.empty-note {
  padding: 30px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Profile tab */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-hero-avatar {
  width: 72px;
  height: 72px;
  flex: none;
  border: 1px solid rgba(168, 85, 247, 0.35);
  overflow: hidden;
}

.profile-hero-avatar img,
.profile-hero-avatar svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero-info h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
}

.profile-hero-sub {
  margin: 6px 0 0;
}

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

.tag.is-warn {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.12);
  color: var(--gold-2);
}

.profile-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(168, 85, 247, 0.08);
}

.profile-warning svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--gold-2);
}

.profile-warning strong {
  display: block;
  color: var(--gold-2);
  font-size: 13px;
}

.profile-warning span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.profile-stat-card,
.profile-patreon-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.profile-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.profile-stat-head svg {
  width: 16px;
  height: 16px;
  color: var(--gold-2);
}

.profile-stat-head span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-stat-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.profile-stat-value {
  display: block;
  margin-top: 2px;
  font-size: 26px;
}

.profile-stat-foot {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.profile-stat-foot.up {
  color: #6fe39a;
}

.profile-patreon-card {
  display: grid;
  align-content: start;
  gap: 4px;
}

.profile-patreon-tier {
  font-size: 20px;
  color: var(--gold-2);
}

.profile-patreon-card p {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.profile-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.profile-side-stack {
  display: grid;
  gap: 18px;
}

.combat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.combat-grid div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.combat-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.combat-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.combat-grid strong.is-good {
  color: #6fe39a;
}

.combat-grid strong.is-bad {
  color: #ff8f84;
}

.stat-list {
  display: grid;
  gap: 6px;
}

.stat-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.stat-list-row:last-child {
  border-bottom: none;
}

.stat-list-row svg {
  width: 15px;
  height: 15px;
  color: var(--gold-2);
  flex: none;
}

.stat-list-row span {
  flex: 1 1 auto;
  color: var(--muted);
}

/* Inventory tab */
.inventory-block {
  display: grid;
  gap: 12px;
}

.inventory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.inventory-head h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.inventory-head .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
}

.inventory-head .tag svg {
  width: 14px;
  height: 14px;
}

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

.stable-dino-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(184, 104, 255, 0.22);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(184, 104, 255, 0.08), rgba(12, 16, 22, 0.9));
}

.stable-dino-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stable-dino-code {
  padding: 5px 8px;
  border: 1px solid rgba(184, 104, 255, 0.35);
  color: #d49cff;
  font-weight: 800;
  font-size: 12px;
}

.stable-dino-meta {
  display: grid;
  gap: 6px;
  color: #9db0c9;
  font-size: 12px;
}

.stable-dino-meta span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.stable-dino-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.stable-dino-call {
  min-height: 38px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid rgba(184, 104, 255, 0.45);
  background: rgba(184, 104, 255, 0.14);
  color: #f1d7ff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.stable-dino-call:hover {
  border-color: rgba(230, 187, 255, 0.75);
  background: rgba(184, 104, 255, 0.24);
  transform: translateY(-1px);
}

.community-swatch {
  min-height: 130px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 78% 25%, var(--skin-accent), transparent 20%),
    linear-gradient(135deg, var(--skin-body), var(--skin-stripe) 56%, var(--skin-belly));
}

.admin-dashboard-panel {
  padding-top: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.admin-grid .admin-form-wide {
  grid-column: 1 / -1;
}

.admin-form h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.admin-form input[type="color"] {
  min-height: 46px;
  padding: 4px;
}

@media (max-width: 860px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

/* Skins presets */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.preset-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.preset-swatches {
  height: 56px;
}

.preset-swatches--carbon-fiber { background: linear-gradient(90deg, #d4d4d4 0 25%, #141414 25% 50%, #3a3a3a 50% 75%, #29b6f6 75% 100%); }
.preset-swatches--magma-tiger { background: linear-gradient(90deg, #ff7a1a 0 25%, #8b1a0a 25% 50%, #1a0a05 50% 75%, #ffb020 75% 100%); }
.preset-swatches--aurora-borealis { background: linear-gradient(90deg, #22e07a 0 25%, #8b3fd4 25% 50%, #0a0e2e 50% 75%, #3ff0c0 75% 100%); }
.preset-swatches--royal-peacock { background: linear-gradient(90deg, #f0c419 0 25%, #0e8a7a 25% 50%, #0a3a2a 50% 75%, #1a4fa0 75% 100%); }
.preset-swatches--deep-sea { background: linear-gradient(90deg, #0a4a4a 0 25%, #0a1a3a 25% 50%, #22e0e0 50% 75%, #0e6a6a 75% 100%); }
.preset-swatches--tiger { background: linear-gradient(90deg, #e8820a 0 25%, #1a1005 25% 50%, #f0d8a0 50% 75%, #ffb020 75% 100%); }
.preset-swatches--cherry-blossom { background: linear-gradient(90deg, #f0a0c0 0 25%, #c02050 25% 50%, #f8c8d8 50% 75%, #2a7050 75% 100%); }
.preset-swatches--ocean-wave { background: linear-gradient(90deg, #1a5fa0 0 25%, #f0f4f8 25% 50%, #0a2a4a 50% 75%, #d8c090 75% 100%); }
.preset-swatches--skeleton { background: linear-gradient(90deg, #e8e0d0 0 25%, #2a2a2a 25% 50%, #0a0a0a 50% 75%, #c02020 75% 100%); }
.preset-swatches--cheetah { background: linear-gradient(90deg, #d0a050 0 25%, #1a1a1a 25% 50%, #f0e0c0 50% 75%, #ffb020 75% 100%); }
.preset-swatches--lavender-dream { background: linear-gradient(90deg, #c8a0e8 0 25%, #5a2a8a 25% 50%, #8050c0 50% 75%, #e0c8f0 75% 100%); }
.preset-swatches--peach { background: linear-gradient(90deg, #f0b090 0 25%, #e88060 25% 50%, #f8d0b8 50% 75%, #c86040 75% 100%); }

.preset-card-body {
  display: grid;
  gap: 6px;
  padding: 0 14px 14px;
}

.preset-card-body strong {
  font-size: 14px;
}

.preset-card-body strong .preset-emoji {
  margin-right: 6px;
}

.preset-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  min-height: 36px;
}

.preset-card-body .button {
  width: 100%;
  min-height: 38px;
  font-size: 12px;
}

/* Skin community */
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.community-card {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.community-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(242, 93, 79, 0.4);
  border-radius: 50%;
  background: rgba(20, 6, 6, 0.72);
  color: #ffb6ac;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.community-delete-btn svg {
  width: 12px;
  height: 12px;
}

.community-delete-btn:hover {
  background: rgba(242, 93, 79, 0.25);
  border-color: rgba(242, 93, 79, 0.7);
}

.community-delete-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.community-thumb {
  height: 110px;
}

.community-thumb.thumb-red { background: linear-gradient(160deg, #3a0a0a, #8a1a1a); }
.community-thumb.thumb-teal { background: linear-gradient(160deg, #0a3a3a, #0e8a9a); }
.community-thumb.thumb-crimson { background: linear-gradient(160deg, #4a0a0a, #8a0a0a); }
.community-thumb.thumb-purple { background: linear-gradient(160deg, #1a0a3a, #5a1a8a); }
.community-thumb.thumb-pink { background: linear-gradient(160deg, #3a0a2a, #8a2a6a); }
.community-thumb.thumb-olive { background: linear-gradient(160deg, #1a2a0a, #4a6a1a); }

.community-card-body {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.community-card-body strong {
  font-size: 13px;
}

.community-card-body span {
  color: var(--muted);
  font-size: 11px;
}

.community-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
}

.community-stats {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.community-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.community-stats svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.community-buy-btn {
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(68, 201, 121, 0.4);
  background: rgba(68, 201, 121, 0.14);
  color: #baf6d1;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.community-buy-btn:hover {
  border-color: rgba(68, 201, 121, 0.65);
  background: rgba(68, 201, 121, 0.22);
}

.shop-buy-modal-box {
  max-width: 380px;
}

/* Top Up */
.topup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.topup-form-card,
.topup-history-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.topup-history-card h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.topup-field {
  display: block;
  margin-bottom: 10px;
}

.topup-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topup-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.topup-packages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.topup-package-btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.topup-package-btn:hover {
  border-color: rgba(168, 85, 247, 0.4);
}

.topup-package-btn.active {
  border-color: var(--gold);
  background: rgba(168, 85, 247, 0.16);
  color: var(--gold-2);
}

.topup-rc-preview {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.topup-rc-preview strong {
  color: var(--green);
  font-size: 16px;
}

.topup-channel-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.topup-channel-tab {
  padding: 9px 16px;
  border: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.topup-channel-tab.active {
  color: var(--gold-2);
  background: rgba(168, 85, 247, 0.14);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.topup-channel-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.topup-account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.topup-account-row span {
  color: var(--muted);
  min-width: 90px;
  font-weight: 600;
}

.topup-account-row strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.topup-bank-name {
  color: var(--text) !important;
  font-size: 16px;
  font-weight: 700;
  min-width: 0 !important;
}

.topup-copy-btn {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.topup-slip-upload {
  display: block;
  margin-bottom: 16px;
}

.topup-slip-upload span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topup-slip-upload input {
  width: 100%;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.topup-slip-upload em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

#topupSubmit {
  width: 100%;
}

.topup-history-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.topup-history-row:last-child {
  border-bottom: none;
}

.topup-history-row span:first-child {
  color: var(--muted);
  font-size: 11px;
}

.topup-history-status {
  justify-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.topup-history-status.is-success {
  background: rgba(68, 201, 121, 0.14);
  color: var(--green);
}

.topup-history-status.is-failed {
  background: rgba(242, 93, 79, 0.14);
  color: #ff9fae;
}

.topup-history-status.is-pending {
  background: rgba(232, 179, 76, 0.14);
  color: #e8b34c;
}

.topup-history-empty {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .topup-grid {
    grid-template-columns: 1fr;
  }
}

/* Shop */
.shop-balance-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 16px 20px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.shop-balance-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-balance-item .offer-icon,
.shop-balance-item svg {
  flex: none;
}

.shop-balance-item > svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.08);
  color: var(--gold-2);
}

.shop-balance-item span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-balance-item strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.shop-balance-item strong.is-good {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6fe39a;
}

.shop-balance-item strong.is-good svg {
  width: 15px;
  height: 15px;
}

.shop-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 36px;
  margin: 18px 0;
}

.shop-currency-tabs,
.shop-species-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shop-currency-tab,
.shop-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-currency-tab.active,
.shop-filter-btn.active {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.14);
  color: var(--gold-2);
}

.shop-section {
  margin-top: 26px;
}

.shop-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.shop-section-head h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.shop-section-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.shop-section-price {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.shop-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.shop-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shop-card-top strong {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}

.dot.diet-herbivore {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

.dot.diet-carnivore {
  background: #f87171;
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.6);
}

.dot.diet-omnivore {
  background: #fbbf24;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.6);
}

.shop-card-diet {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-card-diet.diet-herbivore {
  color: #4ade80;
}

.shop-card-diet.diet-carnivore {
  color: #f87171;
}

.shop-card-diet.diet-omnivore {
  color: #fbbf24;
}

.shop-buy-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding: 9px 12px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.08);
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.shop-buy-btn:hover {
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.16);
}

.shop-buy-price {
  color: var(--text);
}

.shop-buy-btn.is-free {
  border-color: rgba(68, 201, 121, 0.4);
  background: rgba(68, 201, 121, 0.14);
  color: #baf6d1;
}

.shop-buy-btn.is-free .shop-buy-price {
  color: #baf6d1;
}

.shop-buy-btn.is-free:hover {
  border-color: rgba(68, 201, 121, 0.6);
  background: rgba(68, 201, 121, 0.2);
}

@media (max-width: 640px) {
  .shop-controls {
    flex-direction: column;
    align-items: flex-start;
  }
}

.shop-perk-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.shop-perk-modal[hidden] {
  display: none;
}

.shop-perk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 8, 0.72);
  backdrop-filter: blur(3px);
}

.shop-perk-modal-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 24px var(--gold-glow);
}

.shop-perk-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.shop-perk-modal-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.shop-perk-modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.shop-perk-modal-x {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.shop-perk-modal-x:hover {
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--gold-2);
}

.shop-perk-modal-x svg {
  width: 14px;
  height: 14px;
}

.shop-perk-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.shop-perk-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.shop-perk-row[hidden] {
  display: none;
}

.shop-perk-row-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-perk-dropdown {
  position: relative;
}

.shop-perk-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.08);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.shop-perk-dropdown-btn:hover,
.shop-perk-dropdown.is-open .shop-perk-dropdown-btn {
  border-color: rgba(168, 85, 247, 0.6);
}

.shop-perk-dropdown-caret {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.shop-perk-dropdown.is-open .shop-perk-dropdown-caret {
  transform: rotate(90deg);
}

.shop-perk-dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: #16101d;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

.shop-perk-dropdown-item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.shop-perk-dropdown-item:last-child {
  border-bottom: none;
}

.shop-perk-dropdown-item:hover,
.shop-perk-dropdown-item.is-selected {
  background: rgba(168, 85, 247, 0.2);
  color: var(--gold-2);
}

.shop-perk-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* Leaderboards */
.leaderboard-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.podium-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid rgba(168, 85, 247, 0.4);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.podium-card.rank-1 {
  border-top-color: var(--gold);
  background: rgba(168, 85, 247, 0.08);
}

.podium-rank {
  color: var(--gold-2);
  font-weight: 800;
  font-size: 13px;
}

.podium-name {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.podium-value {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.podium-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(68, 201, 121, 0.3);
  background: rgba(68, 201, 121, 0.1);
  color: #baf6d1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.podium-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.podium-status.is-offline {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.podium-status.is-offline .dot {
  box-shadow: none;
}

.table-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(68, 201, 121, 0.3);
  background: rgba(68, 201, 121, 0.1);
  color: #baf6d1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.table-status.is-offline {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.table-status.is-offline .dot {
  box-shadow: none;
}

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

.leaderboard-table th {
  padding: 10px 12px;
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.leaderboard-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.leaderboard-empty {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.leaderboard-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leaderboard-player--name-only {
  gap: 0;
}

.leaderboard-avatar {
  width: 28px;
  height: 28px;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-avatar img,
.leaderboard-avatar svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

  .profile-lower-grid {
    grid-template-columns: 1fr;
  }

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

  .leaderboard-podium {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .profile-grid-row,
  .preset-grid,
  .community-grid,
  .combat-grid {
    grid-template-columns: 1fr;
  }
}

/* Skin editor */
.skin-editor-page {
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
}

.skin-hero,
.skin-preview-panel,
.skin-control-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 88% 12%, rgba(168, 85, 247, 0.13), transparent 20rem),
    linear-gradient(180deg, rgba(21, 26, 34, 0.94), rgba(9, 12, 17, 0.94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.skin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: clamp(28px, 5vw, 48px);
}

.skin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.skin-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}

.skin-preview-panel {
  min-height: 680px;
  overflow: hidden;
}

.skin-preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skin-preview-toolbar span,
.skin-control-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.skin-preview-toolbar strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

/* .skin-model-wrap / #skinModel sizing now lives solely in skin-editor.css
   to avoid two stylesheets fighting over the same selector. */

.skin-render-canvas {
  cursor: grab;
  touch-action: none;
}

.skin-render-canvas:active {
  cursor: grabbing;
}

.skin-model-viewer {
  --poster-color: transparent;
  background: transparent;
  cursor: grab;
  pointer-events: auto;
  touch-action: pan-y;
}

.skin-model-viewer:active {
  cursor: grabbing;
}

.skin-model-message {
  position: absolute;
  inset: auto 22px 22px;
  color: var(--muted);
  font-weight: 800;
}

.skin-hidden-code {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.skin-control-panel input,
.skin-control-panel select,
.skin-control-panel textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
}

.skin-control-panel textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.skin-control-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
}

.skin-control-panel input,
.skin-control-panel select {
  min-height: 42px;
  padding: 0 12px;
}

.skin-control-panel input[type="range"] {
  padding: 0;
  accent-color: var(--gold);
}

.skin-control-panel input[type="color"] {
  min-height: 52px;
  padding: 5px;
  cursor: pointer;
}

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

.preset-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(168, 85, 247, 0.20);
  background: rgba(168, 85, 247, 0.055);
}

.preset-tools input,
.preset-tools select {
  grid-column: 1 / -1;
}

.preset-tools .button {
  width: 100%;
}

.skin-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .skin-hero,
  .skin-editor-grid {
    grid-template-columns: 1fr;
  }

  .skin-hero {
    display: grid;
  }

  .skin-actions {
    justify-content: flex-start;
  }

  .skin-preview-panel {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .skin-editor-page {
    width: min(100%, calc(100vw - 24px));
  }

  .color-grid,
  .preset-tools {
    grid-template-columns: 1fr;
  }

  .skin-preview-toolbar {
    display: grid;
  }
}
