@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #f7f2ea;
  --bg-2: #fdf8f2;
  --panel: #ffffff;
  --text: #2a2623;
  --muted: #6f6a64;
  --accent: #d7906d;
  --border: #eadfd2;
  --radius: 14px;
  --container: 920px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #fff3e6 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 0%, #e7f5f2 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 234, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner { max-width: var(--container); margin: 0 auto; padding: 24px 24px 16px; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profile-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.menu-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, 90vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  padding: 12px;
}

h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.3px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
}

.sub { color: var(--muted); font-size: 13px; }
.sub-spaced { margin-top: 6px; }

.nav-btn, .action-btn, button {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.action-btn.primary, button.primary {
  background: linear-gradient(135deg, var(--accent), #c47d5c);
  color: #fff;
  border-color: transparent;
}

button:disabled { opacity: 0.5; cursor: not-allowed; }
main { max-width: var(--container); margin: 0 auto; padding: 24px; }

.card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h2 {
  font-size: 28px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  margin-bottom: 6px;
}

.progress-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.progress-item {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.progress-title {
  font-size: 18px;
  font-weight: 700;
}

.progress-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.badge.done {
  background: #e7f5f2;
  color: #2e6d5f;
}

.badge.pending {
  background: #fff4dd;
  color: #916200;
}

.status {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hidden { display: none !important; }

.profile-card-email {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  word-break: break-word;
}

.profile-card-nav {
  display: grid;
  gap: 8px;
}

.profile-card-nav .nav-btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 640px) {
  .header-top { display: grid; grid-template-columns: 1fr auto; align-items: start; }
  .profile-wrap { justify-self: end; margin-left: auto; }
  .progress-item { grid-template-columns: 1fr; }
}
