:root {
  --bg: #06101d;
  --panel: rgba(7, 18, 34, 0.84);
  --panel2: rgba(10, 24, 44, 0.82);
  --line: rgba(255,255,255,.10);
  --cyan: #63d6ff;
  --blue: #2f87ff;
  --gold: #f2c86b;
  --green: #41ffb2;
  --ink: #f3f7ff;
  --muted: #aebbd1;
  --field-bg: #ffffff;
  --field-ink: #06101d;
  --shadow: 0 30px 80px rgba(0,0,0,.34);
}

html[data-theme="day"] {
  --bg: #f4f8fd;
  --panel: rgba(255,255,255,.82);
  --panel2: rgba(255,255,255,.72);
  --line: rgba(29,72,120,.16);
  --cyan: #167fc2;
  --blue: #145aa3;
  --gold: #b78b2f;
  --green: #0a8f62;
  --ink: #173052;
  --muted: #60718c;
  --shadow: 0 24px 70px rgba(42,87,134,.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(47,135,255,.24), transparent 34%),
    radial-gradient(circle at left, rgba(99,214,255,.10), transparent 30%),
    var(--bg);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(4,10,18,.72);
  backdrop-filter: blur(24px);
}

html[data-theme="day"] .topbar {
  background: rgba(255,255,255,.72);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.orb {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: radial-gradient(circle at 35% 25%, #fff, #63d6ff 28%, #145aa3 64%, #06101d);
  box-shadow: 0 0 32px rgba(99,214,255,.3);
}

.brand h1 {
  margin: 0;
  color: var(--cyan);
  letter-spacing: -.04em;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

nav a,
nav button {
  padding: 10px 14px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

nav a:hover,
nav button:hover {
  background: rgba(255,255,255,.08);
  color: var(--ink);
}

.wrap {
  width: min(1450px, calc(100% - 40px));
  margin: auto;
  padding: 34px 0 80px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.hero {
  min-height: 290px;
  padding: 38px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  overflow: hidden;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 900;
}

.hero h2 {
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  letter-spacing: -.06em;
  color: #8cc7ff;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
}

.identity-core {
  position: relative;
  width: 250px;
  height: 250px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(99,214,255,.32);
  animation: spin 22s linear infinite;
}

.identity-initials {
  width: 155px;
  height: 155px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 25%, #fff, #63d6ff 25%, #2f87ff 55%, #06101d);
  color: white;
  font-size: 46px;
  font-weight: 950;
  box-shadow: 0 0 80px rgba(99,214,255,.28);
}

.grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: stretch;
}

.profile-card {
  padding: 28px;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 950;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 45px rgba(99,214,255,.24);
}

.profile-card h3 {
  margin: 22px 0 4px;
  font-size: 26px;
}

.profile-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(65,255,178,.10);
  border: 1px solid rgba(65,255,178,.24);
  font-weight: 900;
  font-size: 13px;
}

.mini-list {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.mini-list div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}

.mini-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 6px;
}

.mini-list b {
  color: var(--ink);
}

.form-panel {
  padding: 28px;
}

.form-panel h3 {
  margin-top: 0;
  color: var(--cyan);
  font-size: 24px;
}

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

label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
}

input,
select {
  margin-top: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--field-bg);
  color: var(--field-ink);
  font-size: 15px;
}

.toggle-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.toggle-row label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-row input {
  width: auto;
  margin: 0;
}

#saveProfileBtn {
  width: 100%;
  margin-top: 26px;
  padding: 16px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #2f87ff, #63d6ff);
  color: white;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.status {
  color: var(--muted);
  margin-bottom: 0;
}

.analytics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.metric-card {
  padding: 24px;
}

.metric-card h4 {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.metric-card b {
  font-size: 32px;
  color: var(--ink);
}

.metric-card p {
  color: var(--muted);
  line-height: 1.55;
}

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

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

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

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