:root {
  --midnight: #0a0e22;
  --midnight2: #12173a;
  --midnight3: #1b2150;
  --panel: rgba(24, 33, 73, 0.55);
  --panel-border: rgba(46, 58, 110, 0.9);
  --cyan: #36e2ff;
  --purple: #7c5cff;
  --text: #eaf0ff;
  --text-muted: #9aa6d4;
  --danger: #ff6b81;
  --success: #57e6b0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(54, 226, 255, 0.10), transparent 55%),
    linear-gradient(160deg, var(--midnight) 0%, var(--midnight2) 55%, var(--midnight3) 100%);
  background-attachment: fixed;
  line-height: 1.65;
}

.wrap { max-width: 780px; margin: 0 auto; padding: 40px 22px 80px; }

header.site { text-align: center; margin-bottom: 28px; }
header.site img.logo { width: min(340px, 78%); height: auto; filter: drop-shadow(0 6px 30px rgba(54, 226, 255, 0.25)); }
header.site .tagline { color: var(--text-muted); margin-top: 6px; letter-spacing: 0.3px; }

nav.top { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 22px 0 10px; }
nav.top a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; padding: 6px 4px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
nav.top a:hover, nav.top a.active { color: var(--cyan); border-color: var(--cyan); }

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 26px 26px;
  margin: 18px 0;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

h1 { font-size: 2rem; margin: 0 0 8px; }
h1.hero { text-align: center; background: linear-gradient(90deg, var(--cyan), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 1.25rem; margin: 26px 0 8px; color: #fff; }
h3 { font-size: 1.05rem; margin: 18px 0 6px; color: var(--cyan); }
p, li { color: #d6ddf5; }
a { color: var(--cyan); }
.muted { color: var(--text-muted); }
.small { font-size: 0.9rem; }
ul { padding-left: 20px; }
hr { border: none; border-top: 1px solid var(--panel-border); margin: 26px 0; }

.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--purple), #4f7bff);
  color: #fff; text-decoration: none;
  padding: 13px 26px; border-radius: 14px; font-weight: 700;
  border: none; cursor: pointer; font-size: 1rem;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(124, 92, 255, 0.5); }
.btn.danger { background: linear-gradient(90deg, #ff6b81, #b5405a); box-shadow: 0 8px 24px rgba(255, 107, 129, 0.3); }
.btn.center { display: block; width: max-content; margin: 22px auto 6px; }

.crystals { text-align: center; font-size: 1.6rem; letter-spacing: 8px; margin: 10px 0 4px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 8px; }
.feature { background: rgba(10, 14, 34, 0.45); border: 1px solid var(--panel-border); border-radius: 14px; padding: 16px 18px; }
.feature .ico { font-size: 1.5rem; }
.feature h3 { margin: 6px 0 4px; }

form.delete-form { margin-top: 14px; }
label { display: block; margin: 12px 0 6px; color: var(--text-muted); font-size: 0.92rem; }
input, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(10, 14, 34, 0.6); border: 1px solid var(--panel-border);
  color: var(--text); font-size: 1rem; font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--cyan); }
textarea { min-height: 90px; resize: vertical; }
.form-status { margin-top: 14px; min-height: 22px; font-weight: 600; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

footer.site { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 40px; }
footer.site a { color: var(--text-muted); }
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; margin: 14px 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--cyan)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
