:root {
  --bg-a: #24173d;
  --bg-b: #bf4d68;
  --bg-c: #f4a261;
  --ink: #151421;
  --muted: #696879;
  --card: rgba(255, 255, 255, 0.88);
  --card-solid: #ffffff;
  --line: rgba(21, 20, 33, 0.1);
  --accent: #6c4df6;
  --accent-dark: #5538dc;
  --shadow: 0 30px 80px rgba(32, 20, 54, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,.28), transparent 26rem),
    linear-gradient(135deg, var(--bg-a), var(--bg-b) 55%, var(--bg-c));
  background-attachment: fixed;
}

body.theme-ocean { --bg-a: #09203f; --bg-b: #176b87; --bg-c: #64ccc5; --accent: #087ea4; --accent-dark: #066383; }
body.theme-forest { --bg-a: #10261b; --bg-b: #2d6a4f; --bg-c: #95d5b2; --accent: #2d6a4f; --accent-dark: #1b4332; }
body.theme-midnight { --bg-a: #08090d; --bg-b: #1c2541; --bg-c: #5e60ce; --accent: #5e60ce; --accent-dark: #4548ad; }

button, input, textarea, select { font: inherit; }
a { color: inherit; }

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(14px);
}

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

.hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 54px 0;
}

.profile-card {
  width: min(680px, 100%);
  padding: clamp(30px, 5vw, 56px);
  text-align: center;
  border-radius: 36px;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(22px) saturate(130%);
}

.avatar-wrap { position: relative; display: inline-block; margin-bottom: 24px; }
.avatar {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 40px;
  border: 5px solid white;
  box-shadow: 0 16px 42px rgba(21,20,33,.18);
}

.availability {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #136c43;
  background: #e8fff3;
  border: 1px solid #baf2d5;
  font-size: 12px;
  font-weight: 700;
}
.availability span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #21c070;
  box-shadow: 0 0 0 4px rgba(33,192,112,.14);
}

.eyebrow, .section-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 80px);
  line-height: .94;
  letter-spacing: -.075em;
}

.bio {
  max-width: 550px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

.meta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}
.meta-row a { color: var(--accent); font-weight: 700; text-decoration: none; }

.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-button, .secondary-button, .ghost-button, .icon-button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(108,77,246,.28);
}
.primary-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.primary-button.small { min-height: 38px; padding: 0 16px; box-shadow: none; }
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(21,20,33,.07);
  font-weight: 800;
}
.secondary-button:hover { background: rgba(21,20,33,.11); transform: translateY(-1px); }
.ghost-button {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.24);
  font-weight: 750;
  backdrop-filter: blur(14px);
}
.ghost-button:hover { background: rgba(255,255,255,.24); }
.editor .ghost-button { color: var(--ink); background: rgba(21,20,33,.07); border-color: transparent; }

.social-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(21,20,33,.055);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.social-link:hover { color: var(--accent); background: rgba(108,77,246,.1); }
.social-icon { width: 18px; height: 18px; fill: currentColor; }

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}

.panel {
  padding: 28px;
  border-radius: 28px;
  background: var(--card-solid);
  box-shadow: 0 18px 55px rgba(32,20,54,.16);
}
.panel h2 { margin: 0 0 12px; font-size: 30px; letter-spacing: -.04em; }
.panel p { color: var(--muted); line-height: 1.65; }
.text-link { color: var(--accent); font-weight: 800; text-decoration: none; }
.service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 17px; }
.service-list li { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.service-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.service-list span { color: var(--muted); font-size: 14px; }

.editor {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(430px, 100%);
  padding: 24px;
  overflow-y: auto;
  background: white;
  box-shadow: -24px 0 70px rgba(0,0,0,.25);
  transform: translateX(105%);
  transition: transform .24s ease;
  z-index: 10;
}
.editor.open { transform: translateX(0); }
.editor-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.editor h2 { margin: 0; letter-spacing: -.04em; }
.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  background: rgba(21,20,33,.07);
}

form { display: grid; gap: 14px; }
label, fieldset { display: grid; gap: 7px; color: #3b3a49; font-size: 13px; font-weight: 800; }
input, textarea, select {
  width: 100%;
  border: 1px solid #dddde7;
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfbfe;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(108,77,246,.11); }
textarea { resize: vertical; }
fieldset { border: 1px solid #e7e7ef; border-radius: 18px; padding: 14px; margin: 0; }
legend { padding: 0 6px; }
.editor-actions { display: flex; gap: 10px; position: sticky; bottom: 0; padding-top: 8px; background: white; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 15px;
  border-radius: 999px;
  color: white;
  background: rgba(21,20,33,.9);
  font-weight: 750;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 20;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 22px, 1120px); padding-top: 14px; }
  .brand span:last-child { display: none; }
  .hero { padding: 28px 0; min-height: auto; }
  .profile-card { border-radius: 28px; }
  .content-grid { grid-template-columns: 1fr; }
  .cta-row a { width: 100%; }
}
