:root {
  --bg: #060a14;
  --panel: #10192e;
  --text: #edf1ff;
  --muted: #afbddf;
  --line: #233155;
  --accent: #31a0ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 15% -5%, #18396e 0, #060a14 42%);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

.profile-wrap {
  width: min(860px, 92vw);
  margin: 28px auto;
}

.profile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.back-link {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.card {
  border: 1px solid var(--line);
  background: rgba(16, 25, 46, 0.88);
  border-radius: 16px;
  padding: 18px;
}

.avatar-block {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

#avatarPreview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}

#avatarInput {
  display: none;
}

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

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
}

.full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0a1326;
  color: var(--text);
  padding: 11px;
}

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

.btn {
  border: 1px solid var(--accent);
  background: #0f2745;
  color: #dff2ff;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}

.btn-ghost {
  border-color: var(--line);
  background: #0d162b;
  color: var(--text);
}

.muted {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status {
  margin-top: 12px;
  min-height: 22px;
  color: #95ffd3;
  font-weight: 600;
}

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