:root {
  --bg: #fff8f2;
  --ink: #242033;
  --muted: #756f84;
  --primary: #ff5d73;
  --primary-dark: #e73f59;
  --mint: #20bfa9;
  --gold: #ffd166;
  --line: #f0dfd2;
  --card: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(255, 209, 102, .16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(32, 191, 169, .12) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
}
a { color: inherit; }
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(255, 248, 242, .94);
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--primary); font-size: 26px; font-weight: 900; text-decoration: none; }
nav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
nav a, .pill, button, .btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(69,45,72,.08);
  cursor: pointer;
}
.pill, button.primary, .btn.primary { background: var(--primary); color: #fff; box-shadow: 0 10px 20px rgba(255,93,115,.25); }
button.primary:hover, .btn.primary:hover { background: var(--primary-dark); }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 70px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.08; margin: 0 0 18px; }
h2 { margin: 0 0 14px; }
p { color: var(--muted); line-height: 1.55; }
.lead { font-size: 20px; }
.card, .wish, .profile-head, form, table {
  background: var(--card);
  border: 2px solid #fff;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(69,45,72,.09);
}
.card, form { padding: 22px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wish { overflow: hidden; }
.wish img, .hero img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block; }
.wish-body { padding: 16px; }
.badge { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border-radius: 999px; background: #fff0f7; color: #5b315d; font-weight: 800; font-size: 13px; }
.profile-head { display: flex; gap: 20px; align-items: center; padding: 24px; margin-bottom: 18px; }
.avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; background: #e7fbf6; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; margin-bottom: 14px; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid #f1d8cc;
  border-radius: 16px;
  font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.flash { padding: 14px 16px; margin-bottom: 18px; border-radius: 16px; background: #e7fbf6; font-weight: 800; }
table { width: 100%; border-collapse: collapse; overflow: hidden; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.muted { color: var(--muted); }
.danger { background: #d74844; color: #fff; }
@media (max-width: 820px) {
  .topbar, .profile-head { align-items: stretch; flex-direction: column; }
  .hero, .grid { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
  nav a, button, .btn { width: 100%; }
}

