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

:root {
  --pink:       #c96b8a;
  --pink-light: #fdf0f4;
  --pink-mid:   #d4537e;
  --pink-dark:  #8f3657;
  --teal:       #1d9e75;
  --teal-light: #e8f8f2;
  --teal-dark:  #0f6e56;
  --amber:      #e5990f;
  --amber-light:#fef7e6;
  --sand:       #f7f4ef;
  --stone:      #e8e3da;
  --ink:        #2a2420;
  --muted:      #7a7066;
  --border:     rgba(42,36,32,0.12);
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 2px 12px rgba(42,36,32,0.08);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--sand);
  color: var(--ink);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

h1, h2, h3, .logo {
  font-family: 'Lora', serif;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--pink-mid);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-name { font-size: 14px; color: var(--muted); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--sand); }
.btn-primary { background: var(--pink-mid); border-color: var(--pink-mid); color: #fff; }
.btn-primary:hover { background: var(--pink-dark); border-color: var(--pink-dark); }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--sand); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-danger { background: #fff0f0; border-color: #f5c2c2; color: #b91c1c; }
.btn-danger:hover { background: #fee2e2; }
.btn-full { width: 100%; }

/* FORMS */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.form-group label { font-size: 13px; color: var(--muted); font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 14px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.15s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pink-mid);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* CARDS */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

/* TAGS */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
}
.tag-free     { background: var(--teal-light); color: var(--teal-dark); }
.tag-reserved { background: var(--amber-light); color: #7c5a00; }
.tag-mine     { background: var(--pink-light); color: var(--pink-dark); }

/* ALERT */
.alert { padding: 10px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.alert-error   { background: #fff0f0; color: #b91c1c; border: 1px solid #fca5a5; }
.alert-success { background: var(--teal-light); color: var(--teal-dark); border: 1px solid #99e6cc; }

/* CONTAINER */
.container { max-width: 680px; margin: 0 auto; padding: 32px 20px; }
.container-wide { max-width: 900px; margin: 0 auto; padding: 32px 20px; }

/* PAGE HEADER */
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 26px; font-weight: 600; margin-bottom: 4px; }
.page-header p { color: var(--muted); font-size: 14px; }

/* WISH ITEMS */
.wish-list { display: flex; flex-direction: column; gap: 12px; }
.wish-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  transition: box-shadow 0.15s;
}
.wish-item:hover { box-shadow: var(--shadow); }
.wish-item.is-reserved { opacity: 0.75; }
.wish-emoji {
  font-size: 28px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wish-body { flex: 1; min-width: 0; }
.wish-name { font-size: 15px; font-weight: 500; margin-bottom: 2px; }
.wish-price { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.wish-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wish-link { font-size: 12px; color: var(--teal); text-decoration: none; }
.wish-link:hover { text-decoration: underline; }
.wish-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

/* LIST CARDS on home */
.list-grid { display: flex; flex-direction: column; gap: 10px; }
.list-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.15s, transform 0.12s;
}
.list-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.list-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--pink-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.list-card-body { flex: 1; min-width: 0; }
.list-card-title { font-weight: 500; font-size: 15px; }
.list-card-meta { font-size: 13px; color: var(--muted); }
.list-card-arrow { color: var(--muted); font-size: 20px; margin-left: auto; }

/* SHARE BOX */
.share-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sand);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.share-url {
  flex: 1;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

/* Copy button (clipboard → checkmark animation) */
.btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.btn-copy:hover {
  background: var(--stone);
  color: var(--ink);
}
.btn-copy:active {
  transform: scale(0.9);
}
.btn-copy.copied {
  color: var(--teal);
}
.btn-copy .check-icon {
  animation: checkPop 0.3s ease-out;
}
@keyframes checkPop {
  0%   { transform: scale(0); opacity: 0; }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* EMPTY STATE */
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty h3 { font-family: 'Lora', serif; font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.empty p { font-size: 14px; margin-bottom: 20px; }

/* MODAL */
.modal-bg {
  display: none;
  position: fixed; inset: 0;
  background: rgba(42,36,32,0.45);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}
.modal-bg.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px 24px 32px;
  width: 100%;
  max-width: 520px;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-title { font-family: 'Lora', serif; font-size: 18px; font-weight: 600; margin-bottom: 20px; }

/* PRODUCT DETAIL MODAL */
.product-modal {
  border-radius: 20px;
  padding: 0;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  margin-bottom: 10vh;
}
@media (max-width: 520px) {
  .product-modal {
    border-radius: 20px 20px 0 0;
    margin-bottom: 0;
  }
}
.product-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.product-modal-close:hover { background: rgba(255,255,255,1); }
.product-modal-image {
  width: 100%;
  height: 280px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.product-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.product-modal-emoji {
  width: 100%;
  height: 200px;
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px 20px 0 0;
}
.product-modal-emoji span {
  font-size: 72px;
}
.product-modal-body {
  padding: 24px 24px 32px;
}
.product-modal-name {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-modal-price {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.product-modal-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  font-style: italic;
}
.product-modal-cta {
  display: block;
  text-align: center;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  width: 100%;
}
.product-modal-cta:hover {
  background: var(--pink-dark);
}

/* DIVIDER */
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--stone); }

/* AUTH page */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-logo { font-family: 'Lora', serif; font-size: 28px; font-weight: 600; color: var(--pink-mid); text-align: center; margin-bottom: 4px; }
.auth-tagline { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 28px; }

/* SECTION TITLE */
.section-title { font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .container, .container-wide { padding: 20px 16px; }
  .nav { padding: 0 16px; }
  .wish-actions { flex-direction: column; align-items: flex-end; }
}

/* Landing page */
.landing { max-width: 1000px; margin: 0 auto; padding: 60px 24px; }
.landing-hero { text-align: center; margin-bottom: 60px; }
.landing-hero h1 { font-family: 'Lora', serif; font-size: 42px; font-weight: 600; line-height: 1.25; color: #2a2420; margin-bottom: 20px; }
.landing-hero p { font-size: 16px; color: #7a7066; max-width: 480px; margin: 0 auto 32px; line-height: 1.7; }
.landing-cta { display: flex; gap: 12px; justify-content: center; }
.btn-primary { display: inline-flex; align-items: center; padding: 12px 24px; background: #c9435f; border: none; border-radius: 10px; color: #fff; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background 0.15s; }
.btn-primary:hover { background: #a8344c; }
.btn-secondary { display: inline-flex; align-items: center; padding: 12px 24px; background: #fff; border: 1px solid #e8e3da; border-radius: 10px; color: #2a2420; font-family: 'DM Sans', sans-serif; font-size: 15px; text-decoration: none; transition: background 0.15s; }
.btn-secondary:hover { background: #f7f4ef; }
.landing-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card { background: #fff; border: 1px solid #ece8e2; border-radius: 16px; padding: 28px 24px; text-align: center; }
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-family: 'Lora', serif; font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: #7a7066; line-height: 1.6; }

/* Auth page styles */
.auth-body { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { background: #fff; border-radius: 20px; padding: 28px 32px; width: 100%; max-width: 400px; box-shadow: 0 4px 32px rgba(42,36,32,.10); }
.auth-logo-wrap { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 18px; }
.auth-logo-icon { width: 36px; height: 36px; background: linear-gradient(145deg, #e8607a, #c9435f); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.auth-logo-name { font-family: 'Lora', serif; font-size: 20px; font-weight: 600; color: #2a2420; }
.auth-title { font-size: 16px; font-weight: 500; text-align: center; margin-bottom: 2px; }
.auth-sub { font-size: 13px; color: #7a7066; text-align: center; margin-bottom: 18px; }
.social-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid #e8e3da; background: #fff; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: #2a2420; margin-bottom: 8px; transition: background 0.15s; text-decoration: none; position: relative; box-sizing: border-box; }
.social-btn:hover { background: #f7f4ef; }
.social-btn.disabled { opacity: 0.5; pointer-events: none; }
.social-icon { width: 22px; height: 22px; border-radius: 5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.soon { position: absolute; right: 14px; font-size: 11px; color: #bbb; }
.divider { display: flex; align-items: center; gap: 10px; color: #b0ada8; font-size: 12px; margin: 12px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #e8e3da; }
.auth-card form input { display: block; width: 100%; padding: 10px 12px; border: 1px solid #e8e3da; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 13px; color: #2a2420; background: #fff; margin-bottom: 8px; box-sizing: border-box; transition: border-color 0.15s; }
.auth-card form input:focus { outline: none; border-color: #c9435f; }
.btn-email { width: 100%; padding: 11px; background: #2a2420; color: #fff; border: none; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.15s; margin-top: 2px; }
.btn-email:hover { background: #3d3530; }
.auth-footer { text-align: center; margin-top: 14px; font-size: 13px; color: #7a7066; }
.auth-footer a { color: #c9435f; text-decoration: none; font-weight: 500; }
.alert-error { background: #fff0f0; color: #b91c1c; border: 1px solid #fca5a5; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }
.alert-success { background: #e8f8f2; color: #0f6e56; border: 1px solid #99e6cc; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }

/* Brands page */
.page { max-width: 1100px; margin: 0 auto; padding: 28px 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-btn { padding: 7px 16px; border: 1px solid #d8d3cb; border-radius: 99px; background: #fff; font-family: 'DM Sans', sans-serif; font-size: 13px; color: #5a5550; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.filter-btn:hover { border-color: #c9435f; color: #c9435f; }
.filter-btn.active { background: #c9435f; border-color: #c9435f; color: #fff; font-weight: 500; }
.search-wrap { position: relative; margin-bottom: 24px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
#brand-search { width: 100%; padding: 12px 16px 12px 42px; border: 1px solid #e8e3da; border-radius: 12px; background: #fff; font-family: 'DM Sans', sans-serif; font-size: 14px; color: #2a2420; box-sizing: border-box; }
#brand-search:focus { outline: none; border-color: #c9435f; }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.brand-card { background: #fff; border-radius: 14px; border: 1px solid #ece8e2; padding: 16px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; transition: box-shadow 0.15s, transform 0.12s; text-decoration: none; }
.brand-card:hover { box-shadow: 0 4px 16px rgba(42,36,32,.10); transform: translateY(-2px); }
.brand-logo { width: 68px; height: 68px; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #f0ece6; background: #fff; }
.brand-logo img { width: 90%; height: 90%; object-fit: contain; }
.brand-name { font-size: 12px; color: #5a5550; text-align: center; line-height: 1.3; }
.no-results { text-align: center; padding: 48px; color: #7a7066; font-size: 14px; display: none; }
.results-count { font-size: 13px; color: #7a7066; margin-bottom: 14px; min-height: 20px; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(42,36,32,.10);
  height: 60px;
  display: flex; align-items: center;
  padding: 0 32px;
}
.site-logo {
  font-family: 'Lora', serif;
  font-size: 20px; font-weight: 600;
  color: #c9435f; text-decoration: none;
  letter-spacing: -0.3px; margin-right: auto;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-item {
  position: relative; padding: 8px 14px;
  font-size: 14px; color: #2a2420;
  border-radius: 8px; cursor: pointer;
  transition: background 0.15s;
  display: flex; align-items: center; gap: 4px;
  font-family: 'DM Sans', sans-serif;
  user-select: none;
}
.nav-item:hover, .nav-item.open { background: #f7f4ef; }
.nav-chevron { font-size: 10px; color: #aaa; transition: transform 0.2s; }
.nav-item.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  display: none; position: absolute;
  top: calc(100% + 6px); left: 0;
  background: #fff;
  border: 1px solid rgba(42,36,32,.10);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(42,36,32,.12);
  min-width: 160px; padding: 6px; z-index: 200;
}
.nav-item.open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 9px 14px;
  font-size: 14px; color: #2a2420;
  text-decoration: none; border-radius: 8px;
  transition: background 0.12s;
}
.nav-dropdown a:hover { background: #f7f4ef; }
.nav-divider { width: 1px; height: 20px; background: #e8e3da; margin: 0 6px; }
.btn-nav-login {
  padding: 8px 18px; border: 1px solid #e8e3da;
  border-radius: 8px; font-size: 14px;
  color: #2a2420; background: #fff;
  text-decoration: none; transition: background 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.btn-nav-login:hover { background: #f7f4ef; }
.btn-nav-signup {
  padding: 8px 18px; border: 1px solid #c9435f;
  border-radius: 8px; font-size: 14px; font-weight: 500;
  color: #fff; background: #c9435f;
  text-decoration: none; transition: background 0.15s;
  margin-left: 4px; font-family: 'DM Sans', sans-serif;
}
.btn-nav-signup:hover { background: #a8344c; }
.nav-user { font-size: 14px; color: #7a7066; margin-right: 4px; font-family: 'DM Sans', sans-serif; }

/* Add wish button in header */
.btn-add-wish {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; background: #c9435f; border: none;
  border-radius: 8px; color: #fff; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background 0.15s; margin-right: 8px;
}
.btn-add-wish:hover { background: #a8344c; }

/* Add wish modal overlay */
.addwish-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(42,36,32,0.5); z-index: 300;
  align-items: center; justify-content: center;
  padding: 20px;
}
.addwish-overlay.open { display: flex; }
.addwish-modal {
  background: #fff; border-radius: 20px;
  padding: 24px; width: 100%; max-width: 480px;
  box-shadow: 0 20px 60px rgba(42,36,32,0.2);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.addwish-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.addwish-title { font-family: 'Lora', serif; font-size: 18px; font-weight: 600; }
.addwish-close {
  background: none; border: none; font-size: 18px;
  color: #aaa; cursor: pointer; padding: 4px;
  line-height: 1; transition: color 0.15s;
}
.addwish-close:hover { color: #2a2420; }
.addwish-urlbox {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid #c9435f; border-radius: 12px;
  padding: 10px 14px; background: #fff;
}
.addwish-urlbox input {
  flex: 1; border: none; outline: none;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: #2a2420; background: transparent;
}
.addwish-urlbox input::placeholder { color: #bbb; }
.addwish-paste-btn {
  background: #c9435f; border: none; border-radius: 6px;
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 12px; cursor: pointer; letter-spacing: 0.05em;
  transition: background 0.15s; white-space: nowrap;
}
.addwish-paste-btn:hover { background: #a8344c; }
.addwish-preview {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: #f7f4ef;
  border-radius: 12px;
}

/* ── List card wrapper with 3-dot menu ── */
.list-card-wrap {
  position: relative;
}
.list-menu-btn {
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  z-index: 2;
}
.list-menu-btn:hover {
  background: var(--sand);
  color: var(--ink);
}
.list-menu-dropdown {
  display: none;
  position: absolute;
  right: 52px;
  top: calc(50% + 20px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(42,36,32,0.12);
  min-width: 160px;
  padding: 6px;
  z-index: 10;
}
.list-menu-dropdown.open {
  display: block;
}
.list-menu-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.list-menu-dropdown button:hover {
  background: var(--sand);
}

/* ── Edit / Share modal overlay ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42,36,32,0.5);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal-panel {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(42,36,32,0.2);
  animation: modalIn 0.2s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-panel-header h2 {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 600;
}
.modal-panel-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #aaa;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.modal-panel-close:hover { color: var(--ink); }

/* Date row */
.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.date-row select {
  padding: 10px 10px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}
.date-row select:focus {
  outline: none;
  border-color: var(--pink-mid);
}

/* Form hint */
.form-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Form select styling */
.form-group select {
  padding: 10px 14px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  appearance: auto;
}
.form-group select:focus {
  outline: none;
  border-color: var(--pink-mid);
}
.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

/* ── Share action buttons ── */
.share-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-action-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--stone);
  background: #fff;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.share-action-btn:hover {
  background: var(--sand);
  border-color: var(--pink-mid);
}
