:root {
  --deep-purple: #462966;
  --mauve: #B05AA3;
  --surface: #FBF5FC;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--surface);
  color: var(--deep-purple);
  padding-bottom: 96px; /* room for the pinned thinking-of-you bar */
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

header.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 16px;
}

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

.brand .logo {
  font-size: 22px;
  filter: sepia(1) saturate(6) hue-rotate(240deg) brightness(0.55);
}

.brand .name {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

.profile-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mauve);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  flex: 1;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  font-size: 11px;
  border: 0.5px solid var(--mauve);
  background: var(--surface);
  color: var(--mauve);
  cursor: pointer;
}

.tab.active {
  background: var(--mauve);
  color: var(--surface);
}

.list-card {
  background: var(--surface);
  border-radius: 14px;
  border: 0.5px solid var(--mauve);
  overflow: hidden;
  margin-bottom: 16px;
}

.list-card .list-header {
  padding: 12px 16px;
  background: var(--mauve);
  color: var(--surface);
}

.list-header .list-owner {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

.list-header .list-date {
  font-size: 11px;
  margin: 2px 0 0;
  opacity: 0.9;
}

.list-header .submitted {
  font-size: 11px;
  margin: 2px 0 0;
  opacity: 0.85;
}

.empty-state {
  padding: 20px 16px;
  display: flex;
  justify-content: center;
}

.add-list-btn {
  width: 100%;
  background: var(--mauve);
  color: var(--surface);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.add-list-btn[disabled] { opacity: 0.5; cursor: default; }

.empty-note {
  font-size: 12px;
  color: var(--mauve);
  margin: 0;
  text-align: center;
}

.items { padding: 4px 16px; }

.item {
  padding: 9px 0;
  border-bottom: 0.5px solid var(--mauve);
}
.item:last-child { border-bottom: none; }

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

.item.done { opacity: 0.55; }
.item.done .item-text { text-decoration: line-through; }

.item-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--mauve);
  background: transparent;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
}
.item-check.checked {
  background: var(--mauve);
}

.item-text {
  flex: 1;
  font-size: 13px;
  margin: 0;
  word-break: break-word;
}

.item-timestamp {
  font-size: 10px;
  color: var(--mauve);
  margin: 2px 0 0 28px;
}

.remove-request-btn {
  font-size: 10px;
  color: var(--mauve);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-left: 28px;
}

.add-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 6px;
}
.add-row input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--deep-purple);
  outline: none;
}
.add-row button {
  background: none;
  border: none;
  color: var(--mauve);
  font-size: 13px;
  cursor: pointer;
}
.add-row.full {
  opacity: 0.35;
  pointer-events: none;
}

.submit-row { padding: 10px 16px 14px; }
.submit-btn {
  width: 100%;
  background: var(--mauve);
  color: var(--surface);
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.submit-btn[disabled] { opacity: 0.5; cursor: default; }

/* Thinking-of-you: pinned outside the tab/section flow, always visible. */
.toy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(to top, var(--surface) 60%, transparent);
}

.toy-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--deep-purple);
  color: var(--surface);
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.toy-btn.confirming {
  background: var(--surface);
  color: var(--deep-purple);
  border: 1.5px solid var(--deep-purple);
}

.toy-confirm-actions {
  display: flex;
  gap: 10px;
}
.toy-confirm-actions button {
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13px;
  cursor: pointer;
}
.toy-confirm-actions .send {
  background: var(--deep-purple);
  color: var(--surface);
  border: none;
}
.toy-confirm-actions .cancel {
  background: var(--surface);
  color: var(--deep-purple);
  border: 0.5px solid var(--mauve);
}

.summary-card {
  background: var(--surface);
  border: 0.5px solid var(--mauve);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.summary-card .date { font-size: 11px; color: var(--mauve); margin: 0 0 4px; }
.summary-card .report { font-size: 13px; margin: 0; }

.name-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(70, 41, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.name-modal {
  background: var(--surface);
  border-radius: 14px;
  padding: 20px;
  width: 100%;
  max-width: 320px;
}
.name-modal h3 { margin: 0 0 10px; font-size: 15px; }
.name-modal input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 0.5px solid var(--mauve);
  font-size: 14px;
  margin-bottom: 12px;
}
.name-modal button {
  width: 100%;
  background: var(--mauve);
  color: var(--surface);
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
}
