:root {
  --bg-start: #070b16;
  --bg-end: #101b2b;
  --card-bg: rgba(15, 23, 42, 0.85);
  --card-accent: rgba(31, 41, 55, 0.9);
  --text-main: #f5f7ff;
  --text-muted: #9fb2d8;
  --accent: #f7a400;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  background-image: radial-gradient(
      circle at 20% 20%,
      #182844 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 0%,
      rgba(65, 92, 178, 0.45) 0%,
      transparent 45%
    ),
    linear-gradient(135deg, var(--bg-start), var(--bg-end));
  color: var(--text-main);
  padding: 48px 24px 96px;
}

main.canvas {
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  margin-bottom: 56px;
  animation: fadeIn 0.75s ease;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin: 0;
}

.hero p {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card.accent {
  background: var(--card-accent);
}

.card-head h2 {
  margin: 8px 0;
  font-size: 1.6rem;
}

.card-head p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.wish-form {
  display: grid;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.focus-group {
  gap: 10px;
}

.focus-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.link-button {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.link-button:hover {
  text-decoration: underline;
}

label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

input,
textarea,
select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(7, 11, 22, 0.6);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(247, 164, 0, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button[type="submit"] {
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #0b0f1d;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(247, 164, 0, 0.35);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.form-status {
  min-height: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-status[data-state="error"] {
  color: #ffb4b4;
}

.focus-new {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px;
  background: rgba(7, 11, 22, 0.4);
  display: grid;
  gap: 10px;
}

.focus-new[hidden] {
  display: none;
}

.focus-new input {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 8, 14, 0.6);
}

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

.focus-new-actions button {
  flex: 1;
  border-radius: 10px;
  border: none;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

.focus-new-actions button:first-child {
  background: var(--accent);
  color: #0b0f1d;
}

.focus-new-actions button:last-child {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.list-grid {
  display: grid;
  gap: 20px;
}

.list-grid.double {
  grid-template-columns: minmax(0, 1fr);
}

.list-section {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.list-title h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: normal;
  color: var(--text-main);
  text-transform: none;
}

.wish-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wish-list li {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wish-list li.done span {
  text-decoration: line-through;
  color: var(--text-muted);
}

.wish-list li.muted {
  justify-content: center;
  color: var(--text-muted);
  font-style: italic;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.checkbox-row span {
  flex: 1;
  font-size: 1rem;
}

.delete-button {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.delete-button:hover {
  background: rgba(255, 0, 0, 0.25);
  color: #ffb4b4;
}

.delete-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.note-block {
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 10px;
}

.note-block small {
  color: var(--text-muted);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
