/* ============================================================
   HERITANCE — Family Gift Registry
   CSS — Dark Luxury Aesthetic
   ============================================================ */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg:           #09090d;
  --bg-elevated:  #0f0f15;
  --bg-card:      #141420;
  --bg-input:     #0a0a10;
  --border:       rgba(201, 168, 76, 0.12);
  --border-hover: rgba(201, 168, 76, 0.28);
  --gold:         #c9a84c;
  --gold-light:   #dfc06e;
  --gold-dim:     rgba(201, 168, 76, 0.45);
  --gold-glow:    rgba(201, 168, 76, 0.08);
  --text:         #e2d9c8;
  --text-sub:     #9a8f7a;
  --text-muted:   #5a5245;
  --red:          #c97060;
  --green:        #7cae90;
  --blue:         #7c90ae;
  --priority-1:   #5a5245;
  --priority-2:   #7c90ae;
  --priority-3:   #c9a84c;
  --radius:       3px;
  --nav-h:        60px;
  --transition:   0.2s ease;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button { cursor: pointer; }
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Loader ─────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.fade-out { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 2rem;
}
.loader-bar {
  width: 160px; height: 1px;
  background: var(--border);
  margin: 0 auto;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: var(--gold);
  animation: loader-fill 1.2s ease forwards;
  width: 0;
}
@keyframes loader-fill { to { width: 100%; } }

/* ─── Nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(9, 9, 13, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  z-index: 100;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 0.5rem; flex: 1; }
.nav-right { justify-content: flex-end; }
.nav-center { flex: 2; text-align: center; }
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 500;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.75; }
.nav-breadcrumb { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase; }
.nav-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub); border-radius: var(--radius);
  position: relative;
  transition: color var(--transition), background var(--transition);
}
.nav-btn:hover { color: var(--gold); background: var(--gold-glow); }
.nav-btn svg { width: 18px; height: 18px; }
.nav-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--gold); color: var(--bg);
  font-size: 0.55rem; font-weight: 500;
  min-width: 14px; height: 14px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.nav-logout:hover { color: var(--red); }

/* ─── Main ───────────────────────────────────────────────────── */
.app { min-height: 100vh; }
.main { padding-top: var(--nav-h); min-height: 100vh; }
.view { padding: 2rem 1.5rem; max-width: 1100px; margin: 0 auto; }

/* ─── Auth Screen ────────────────────────────────────────────── */
.auth-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem; position: relative; overflow: hidden;
}
.auth-bg { position: absolute; inset: 0; pointer-events: none; }
.auth-bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.06;
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.auth-bg-orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #c9a84c, transparent);
  top: -100px; left: -100px;
}
.auth-bg-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #7c90ae, transparent);
  bottom: -80px; right: -80px;
  animation-delay: -6s;
}
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.05); }
}
.auth-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3rem;
  width: 100%; max-width: 460px;
  position: relative;
  animation: panel-in 0.5s ease;
}
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.auth-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem; letter-spacing: 0.25em;
  color: var(--gold); text-align: center;
  margin-bottom: 0.4rem;
}
.auth-tagline {
  font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.12em;
  text-align: center; margin-bottom: 2.5rem; text-transform: uppercase;
}
.auth-step { animation: step-in 0.3s ease; }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.auth-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 2rem;
}
.auth-tab {
  flex: 1; padding: 0.7rem; text-align: center;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all var(--transition);
}
.auth-tab.active { color: var(--gold); border-color: var(--gold); }
.auth-member-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem; margin-bottom: 1.5rem;
}
.auth-member-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 0.75rem;
  text-align: center; cursor: pointer; transition: all var(--transition);
}
.auth-member-card:hover { border-color: var(--gold); background: var(--gold-glow); }
.auth-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600;
  margin: 0 auto 0.6rem; color: var(--bg);
}
.auth-member-name { font-size: 0.72rem; color: var(--text); letter-spacing: 0.05em; }
.auth-back { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.08em; margin-bottom: 1.5rem; display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; transition: color var(--transition); }
.auth-back:hover { color: var(--gold); }

/* ─── Form Elements ──────────────────────────────────────────── */
.field { margin-bottom: 1.25rem; }
.field-label {
  display: block; font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem;
}
.field-input {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.7rem 1rem; font-size: 0.82rem;
  color: var(--text); transition: border-color var(--transition);
}
.field-input:focus { border-color: var(--gold-dim); }
.field-input::placeholder { color: var(--text-muted); }
.field-input[type="number"] { -moz-appearance: textfield; }
.field-input[type="number"]::-webkit-outer-spin-button,
.field-input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost { border: 1px solid var(--border); color: var(--text-sub); }
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--gold); }
.btn-danger { border: 1px solid rgba(201, 112, 96, 0.3); color: var(--red); }
.btn-danger:hover { background: rgba(201, 112, 96, 0.08); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.65rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; pointer-events: none; }

/* ─── Dashboard ──────────────────────────────────────────────── */
.dash-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2.5rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.dash-family-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500; color: var(--text);
  line-height: 1.1;
}
.dash-family-name span { color: var(--gold); }
.dash-meta { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.1em; margin-top: 0.4rem; }
.dash-invite-code {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; letter-spacing: 0.25em; color: var(--gold);
  background: var(--gold-glow); border: 1px solid var(--border);
  padding: 0.5rem 1rem; border-radius: var(--radius);
  cursor: pointer; user-select: all; transition: border-color var(--transition);
}
.dash-invite-code:hover { border-color: var(--gold-dim); }
.dash-invite-label { font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.1em; text-align: right; margin-bottom: 0.2rem; }

.dash-grid { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }
@media (max-width: 768px) { .dash-grid { grid-template-columns: 1fr; } }

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.member-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 4px; padding: 1.5rem 1.25rem;
  cursor: pointer; transition: all 0.25s ease;
  position: relative; overflow: hidden;
}
.member-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--border); transition: background 0.25s;
}
.member-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.member-card:hover::before { background: var(--gold); }
.member-card-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600;
  margin-bottom: 0.9rem; color: var(--bg);
}
.member-card-name { font-size: 0.85rem; color: var(--text); margin-bottom: 0.25rem; }
.member-card-birthday {
  font-size: 0.65rem; color: var(--gold-dim); letter-spacing: 0.06em; margin-bottom: 0.8rem;
}
.member-card-stats { display: flex; gap: 1rem; }
.member-stat { font-size: 0.62rem; color: var(--text-muted); letter-spacing: 0.05em; }
.member-stat strong { display: block; font-size: 1rem; color: var(--text); font-weight: 400; font-family: 'Cormorant Garamond', serif; }
.member-card-you {
  position: absolute; top: 0.7rem; right: 0.7rem;
  font-size: 0.55rem; letter-spacing: 0.1em; color: var(--gold);
  background: var(--gold-glow); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 2px; text-transform: uppercase;
}

/* ─── Sidebar ────────────────────────────────────────────────── */
.sidebar-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 4px; padding: 1.5rem;
}
.sidebar-title {
  font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.25rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.birthday-item {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
}
.birthday-item:last-child { border-bottom: none; }
.birthday-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 0.9rem; color: var(--bg);
}
.birthday-info { flex: 1; min-width: 0; }
.birthday-name { font-size: 0.78rem; color: var(--text); truncate: ellipsis; }
.birthday-date { font-size: 0.62rem; color: var(--text-muted); }
.birthday-days {
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem;
  color: var(--gold); white-space: nowrap;
}
.birthday-days.today { color: var(--green); }
.birthday-days.soon  { color: var(--red); }
.no-birthdays { font-size: 0.72rem; color: var(--text-muted); text-align: center; padding: 1rem 0; }

/* ─── Wishlist View ──────────────────────────────────────────── */
.wishlist-header {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.wishlist-header-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--bg);
}
.wishlist-header-info { flex: 1; }
.wishlist-header-name {
  font-family: 'Cormorant Garamond', serif; font-size: 1.8rem;
  color: var(--text); line-height: 1.1;
}
.wishlist-header-sub { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.08em; margin-top: 0.25rem; }
.wishlist-header-desc { font-size: 0.78rem; color: var(--text-sub); margin-top: 0.4rem; font-style: italic; font-family: 'Cormorant Garamond', serif; }
.wishlist-actions { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.wishlist-filter {
  display: flex; gap: 0.4rem; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.25rem;
}
.filter-btn {
  font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border-radius: 2px; color: var(--text-muted);
  transition: all var(--transition);
}
.filter-btn.active { background: var(--gold-glow); color: var(--gold); }

.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gift-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
  transition: all 0.25s ease; position: relative;
}
.gift-card:hover { border-color: var(--border-hover); box-shadow: 0 6px 24px rgba(0,0,0,0.25); }
.gift-card.claimed { opacity: 0.55; }
.gift-card.claimed-by-me { opacity: 1; border-color: rgba(124, 174, 144, 0.3); }
.gift-image {
  width: 100%; height: 160px; object-fit: cover; display: block;
  background: var(--bg-card);
}
.gift-image-placeholder {
  width: 100%; height: 120px;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.gift-image-placeholder svg { width: 32px; height: 32px; }
.gift-body { padding: 1.1rem; }
.gift-priority {
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.4rem;
}
.priority-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.priority-1 .priority-dot { background: var(--priority-1); }
.priority-2 .priority-dot { background: var(--priority-2); }
.priority-3 .priority-dot { background: var(--priority-3); }
.priority-1 { color: var(--text-muted); }
.priority-2 { color: var(--blue); }
.priority-3 { color: var(--gold); }
.gift-title { font-size: 0.9rem; color: var(--text); line-height: 1.4; margin-bottom: 0.4rem; }
.gift-desc { font-size: 0.72rem; color: var(--text-sub); line-height: 1.5; margin-bottom: 0.75rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gift-price {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--gold);
  margin-bottom: 0.75rem;
}
.gift-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.gift-link {
  font-size: 0.62rem; color: var(--text-muted); letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 0.3rem; transition: color var(--transition);
}
.gift-link:hover { color: var(--gold); }
.gift-link svg { width: 12px; height: 12px; }
.gift-actions { display: flex; gap: 0.4rem; }
.icon-btn {
  width: 30px; height: 30px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border: 1px solid var(--border);
  transition: all var(--transition);
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold-dim); }
.icon-btn.danger:hover { color: var(--red); border-color: rgba(201, 112, 96, 0.3); }
.icon-btn svg { width: 14px; height: 14px; }
.gift-claimed-badge {
  position: absolute; top: 0.6rem; right: 0.6rem;
  background: rgba(124, 174, 144, 0.15); border: 1px solid rgba(124, 174, 144, 0.3);
  color: var(--green); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
}
.gift-empty {
  grid-column: 1 / -1; text-align: center; padding: 4rem 2rem;
  color: var(--text-muted);
}
.gift-empty-icon { margin: 0 auto 1rem; opacity: 0.3; width: 48px; }
.gift-empty-icon svg { width: 48px; height: 48px; }
.gift-empty-text { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; margin-bottom: 0.4rem; color: var(--text-sub); }
.gift-empty-sub { font-size: 0.7rem; }

/* ─── Claims View ────────────────────────────────────────────── */
.claims-header {
  margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.claims-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--text); }
.claim-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 4px; padding: 1.1rem; margin-bottom: 0.75rem;
  transition: border-color var(--transition);
}
.claim-card:hover { border-color: var(--border-hover); }
.claim-thumb {
  width: 60px; height: 60px; object-fit: cover; border-radius: 2px;
  background: var(--bg-card); flex-shrink: 0;
}
.claim-thumb-placeholder {
  width: 60px; height: 60px; border-radius: 2px;
  background: var(--bg-card); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.claim-info { flex: 1; min-width: 0; }
.claim-title { font-size: 0.88rem; color: var(--text); margin-bottom: 0.2rem; }
.claim-owner { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.06em; }
.claim-meta { font-size: 0.62rem; color: var(--text-muted); margin-top: 0.35rem; }
.claim-price { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--gold); }
.claim-right { text-align: right; flex-shrink: 0; }

/* ─── Settings ───────────────────────────────────────────────── */
.settings-section { margin-bottom: 2.5rem; }
.settings-section-title {
  font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.settings-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 4px; padding: 1.5rem;
}
.member-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--border);
}
.member-row:last-child { border-bottom: none; }
.member-row-avatar {
  width: 32px; height: 32px; border-radius: 50; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 0.9rem; color: var(--bg);
  border-radius: 50%;
}
.member-row-name { flex: 1; font-size: 0.82rem; color: var(--text); }
.member-row-birthday { font-size: 0.65rem; color: var(--text-muted); }
.member-row-actions { display: flex; gap: 0.4rem; }

/* ─── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; z-index: 200;
  animation: overlay-in 0.2s ease;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 6px; padding: 2rem;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  animation: modal-in 0.25s ease;
}
@keyframes modal-in { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.75rem;
}
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--text); }
.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border-radius: var(--radius); border: 1px solid var(--border);
  transition: all var(--transition);
}
.modal-close:hover { color: var(--red); border-color: rgba(201, 112, 96, 0.3); }
.modal-close svg { width: 16px; height: 16px; }
.modal-footer { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.75rem; }

/* URL Import bar */
.import-bar {
  display: flex; gap: 0.5rem; align-items: stretch;
  margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.import-bar .field-input { flex: 1; margin: 0; }
.import-preview {
  display: flex; gap: 0.75rem; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem; margin-bottom: 1rem;
}
.import-preview img {
  width: 48px; height: 48px; object-fit: cover; border-radius: 2px; flex-shrink: 0;
}
.import-preview-title { font-size: 0.78rem; color: var(--text); line-height: 1.3; }
.import-preview-price { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--gold); }

/* Priority selector */
.priority-selector { display: flex; gap: 0.5rem; }
.priority-opt {
  flex: 1; padding: 0.5rem; text-align: center; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); transition: all var(--transition);
}
.priority-opt[data-p="1"].selected { border-color: var(--priority-1); color: var(--text-sub); background: rgba(90,82,69,0.1); }
.priority-opt[data-p="2"].selected { border-color: var(--blue); color: var(--blue); background: rgba(124,144,174,0.08); }
.priority-opt[data-p="3"].selected { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }

/* Color picker for avatar */
.color-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: border-color var(--transition);
}
.color-swatch.selected { border-color: var(--text); }

/* ─── Toast ──────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  z-index: 300; pointer-events: none;
}
.toast {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1.1rem;
  font-size: 0.75rem; letter-spacing: 0.04em; color: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.7s forwards;
  pointer-events: auto;
}
.toast.success { border-color: rgba(124, 174, 144, 0.4); }
.toast.error   { border-color: rgba(201, 112, 96, 0.4); }
@keyframes toast-in  { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to   { opacity: 0; transform: translateX(16px); } }

/* ─── Utility ────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.section-label {
  font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1rem;
}

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .auth-panel { padding: 2rem 1.5rem; }
  .view { padding: 1.5rem 1rem; }
  .dash-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .member-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
  .gift-grid { grid-template-columns: 1fr; }
  .nav { padding: 0 1rem; }
  .modal { padding: 1.5rem; }
}

/* ─── Animations ─────────────────────────────────────────────── */
.fade-in { animation: fade-in 0.3s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.slide-up { animation: slide-up 0.35s ease; }
@keyframes slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Staggered card animation */
.member-card, .gift-card, .claim-card {
  animation: card-in 0.3s ease both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.member-card:nth-child(1) { animation-delay: 0.05s; }
.member-card:nth-child(2) { animation-delay: 0.10s; }
.member-card:nth-child(3) { animation-delay: 0.15s; }
.member-card:nth-child(4) { animation-delay: 0.20s; }
.member-card:nth-child(5) { animation-delay: 0.25s; }
.member-card:nth-child(6) { animation-delay: 0.30s; }
.gift-card:nth-child(1) { animation-delay: 0.04s; }
.gift-card:nth-child(2) { animation-delay: 0.08s; }
.gift-card:nth-child(3) { animation-delay: 0.12s; }
.gift-card:nth-child(4) { animation-delay: 0.16s; }
.gift-card:nth-child(5) { animation-delay: 0.20s; }
.gift-card:nth-child(6) { animation-delay: 0.24s; }
