:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --panel: #10192c;
  --line: #243352;
  --line-2: #152038;
  --text: #e8eefc;
  --muted: #9aabc8;
  --gold: #f4c14e;
  --gold-2: #ffe27a;
  --ink: #1c1504;
  --ok: #7dffb2;
  --err: #ff8d97;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Manrope", "Segoe UI", system-ui, sans-serif;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .92em;
  word-break: break-all;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: rgba(5, 8, 18, 0.9);
  border-bottom: 1px solid var(--line-2);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .02em;
}
.brand:hover { color: #fff; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
nav a {
  color: #c5d0e6;
  padding: 8px 12px;
  border-radius: 10px;
}
nav a:hover { background: #121c31; color: #fff; }
nav a.gold, .btn {
  background: linear-gradient(#ffe27a, #e2b340);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
}
nav a.gold:hover { color: var(--ink); filter: brightness(1.05); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #10192c;
  color: var(--text);
  border-radius: 10px;
}

.hero {
  min-height: 560px;
  display: grid;
  align-items: center;
  background: #101826 url("../assets/banner.jpg") center/cover no-repeat;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,11,20,.88) 0%, rgba(7,11,20,.55) 46%, rgba(7,11,20,.22) 100%),
    linear-gradient(180deg, rgba(7,11,20,.2), rgba(7,11,20,.55));
}
.hero-copy, .wrap { position: relative; z-index: 1; }
.hero-copy {
  padding: 64px 28px;
  width: min(1120px, 100%);
  margin: 0 auto;
}
.kicker {
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}
h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
}
h2 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.lead {
  font-size: 18px;
  color: #d7e2f5;
  max-width: 620px;
  margin: 0 0 8px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; }
.ip, .chip, .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #314664;
  background: rgba(0,0,0,.45);
  border-radius: 999px;
  color: #d7e2f5;
  min-height: 38px;
}
.status i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6b7c98;
  box-shadow: 0 0 0 4px rgba(107,124,152,.18);
}
.status.on i { background: #7dffb2; box-shadow: 0 0 0 4px rgba(125,255,178,.16); }
.status.off i { background: #ff8d97; box-shadow: 0 0 0 4px rgba(255,141,151,.16); }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 72px; }
.section { margin-top: 48px; }
.section:first-child { margin-top: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card, .panel, form.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 18px;
}
.card {
  min-height: 160px;
  box-shadow: var(--shadow);
}
.card b, .panel b { display: block; margin-bottom: 8px; font-size: 16px; }
.card .ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: #17233c; color: var(--gold);
  margin-bottom: 14px; font-size: 18px;
}
.muted { color: var(--muted); }
.step-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  min-height: 140px;
}
.num {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: #17233c; color: var(--gold);
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  min-height: 44px;
}
.btn.ghost {
  background: #17233c;
  color: #e7eefc;
  border: 1px solid #31466f;
}
.btn.ghost:hover { color: #fff; background: #1d2c4a; }
.btn.small { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 999px; }

.page-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.page-center form.panel { text-align: left; }
form.panel {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
}
label { color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
input, select {
  width: 100%;
  background: #070b14;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 12px 12px;
  border-radius: 12px;
}
input:focus { outline: 2px solid rgba(244,193,78,.35); border-color: #f4c14e; }
.error { color: var(--err); }
.ok { color: var(--ok); }

.skin-row { display: flex; gap: 18px; align-items: center; }
.skin-face, .skin-row img {
  width: 128px; height: 128px;
  image-rendering: pixelated;
  background: #0c1322;
  border: 1px solid var(--line);
  border-radius: 16px;
  flex: 0 0 128px;
}
.skin-face {
  background-size: 800% 800%;
  background-position: -100% -100%;
  background-repeat: no-repeat;
}

.faq details {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  padding: 4px 18px;
  margin: 0 0 10px;
}
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 28px;
  background: #080d18;
  border-top: 1px solid var(--line-2);
  color: #8ea0c0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #12203a;
  border: 1px solid #31466f;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .2s ease;
  z-index: 40;
}
.toast.show { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .grid, .grid-steps { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
  .hero { min-height: 0; }
  .hero-copy { padding: 48px 20px 32px; }
  .nav-toggle { display: grid; place-items: center; }
  nav {
    display: none;
    position: absolute;
    left: 12px; right: 12px; top: 66px;
    background: #0b1220;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
  }
  .top.open nav { display: flex; }
  .card, .step-card { min-height: 0; }
}

.profile-hero {
  text-align: center;
  padding: 48px 20px 8px;
}
.profile-hero h1 { margin-bottom: 8px; }
.profile-wrap { padding-top: 24px; }
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.profile-card { min-height: 280px; }
.identity {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}
.badge {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(#ffe27a, #e2b340);
  color: #1c1504;
  font-size: 24px;
  font-weight: 800;
}
h2.nick {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -.02em;
}
.skin-card { text-align: center; }
.skin-stage {
  display: grid;
  place-items: center;
  min-height: 360px;
}
.skin-form { margin-top: 8px; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.password-card { margin-bottom: 16px; }
.password-form {
  display: grid;
  gap: 12px;
  max-width: 420px;
  margin-top: 12px;
}
.logout-btn {
  display: flex;
  width: 100%;
  background: linear-gradient(#ffe27a, #e2b340);
}
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
}
