/* ============================================================
   MEMORI — style.css   Warm editorial luxury / modern chic
   ============================================================ */

:root {
  /* Backgrounds */
  --bg:           #FDFCF8;
  --surface:      #FFFFFF;
  --surface-2:    #F8F5F0;
  --surface-3:    #F2EDE5;

  /* Borders */
  --border:       #EDE7DC;
  --border-md:    #E0D8CC;
  --border-dk:    #CFC5B4;

  /* Text */
  --text:         #1A1714;
  --text-2:       #6E6560;
  --text-3:       #A89E94;
  --text-inv:     #FFFFFF;

  /* Brand rose — the signature Memori color */
  --rose:         #F0476A;
  --rose-lt:      #FFF0F3;
  --rose-mid:     #FFD6DF;
  --rose-dk:      #C8284A;

  /* Amber — warmth, priority gold */
  --amber:        #F59E0B;
  --amber-lt:     #FFFBEB;
  --amber-mid:    #FDE68A;

  /* Sky — info, secondary */
  --sky:          #3B82F6;
  --sky-lt:       #EFF6FF;
  --sky-mid:      #BFDBFE;

  /* Mint — success */
  --mint:         #10B981;
  --mint-lt:      #ECFDF5;

  /* Priority colors */
  --gold:         #F59E0B;
  --silver:       #F0476A;
  --bronze:       #3B82F6;

  /* Structure */
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --shadow-sm:    0 1px 4px rgba(26,23,20,0.06), 0 0 0 1px rgba(26,23,20,0.04);
  --shadow-md:    0 4px 16px rgba(26,23,20,0.08), 0 0 0 1px rgba(26,23,20,0.04);
  --shadow-lg:    0 8px 32px rgba(26,23,20,0.12);
  --font-display: 'Syne', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --ease:         cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
input, button, select, textarea { font-family: var(--font-body); }
button { cursor: pointer; }
::-webkit-scrollbar { width: 0; height: 0; }
::selection { background: var(--rose-mid); color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--text-3); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp   { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes slideUp  { from{transform:translateY(100%);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes popIn    { from{opacity:0;transform:scale(0.95)} to{opacity:1;transform:scale(1)} }
@keyframes stagger  { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes shimmer  {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes toastAnim {
  0%      { opacity:0; transform:translateX(-50%) translateY(10px); }
  10%,88% { opacity:1; transform:translateX(-50%) translateY(0); }
  100%    { opacity:0; transform:translateX(-50%) translateY(-8px); }
}

.fade-up  { animation: fadeUp  0.35s var(--ease) both; }
.fade-in  { animation: fadeIn  0.25s ease both; }
.pop-in   { animation: popIn   0.3s cubic-bezier(0.34,1.3,0.64,1) both; }

/* ── Header ─────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(253,252,248,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 780px; margin: 0 auto;
  padding: 0 24px; height: 60px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 11px; cursor: pointer; text-decoration: none; }

/* Gift-bow logomark: a rounded square with a ribbon cross */
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #F0476A !important;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(240,71,106,0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  position: relative; overflow: hidden;
}
/* Ribbon vertical bar */
.logo-mark::before {
  content: '';
  position: absolute;
  width: 3px; height: 100%;
  background: rgba(255,255,255,0.55);
  top: 0; left: 50%; transform: translateX(-50%);
  border-radius: 99px;
}
/* Ribbon horizontal bar */
.logo-mark::after {
  content: '';
  position: absolute;
  height: 3px; width: 100%;
  background: rgba(255,255,255,0.55);
  left: 0; top: 42%; transform: translateY(-50%);
  border-radius: 99px;
}
/* Bow loops — rendered as the M letter sitting above the ribbon */
.logo-mark-letter {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 800;
  color: #fff; letter-spacing: -0.03em;
  /* sits in the top half, above the horizontal ribbon */
  margin-top: -7px;
}

.logo:hover .logo-mark {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(240,71,106,0.45);
}

/* Two-line text: "Memori" bold + "Unwrapped" light tag */
.logo-text       { display: flex; flex-direction: column; line-height: 1; gap: 1px; }
.logo-name       { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.logo-tagline    { font-size: 10px; font-weight: 600; color: #F0476A !important; letter-spacing: 0.08em; text-transform: uppercase; }
nav { display: flex; gap: 2px; }
.nav-btn {
  background: transparent; border: none;
  color: var(--text-2); padding: 8px 14px;
  font-size: 13px; font-weight: 600; border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-btn:hover  { color: var(--text); background: var(--surface-2); }
.nav-btn.active { color: var(--rose); background: var(--rose-lt); }
.nav-btn.nav-cta { background: var(--rose); color: #fff; box-shadow: 0 2px 8px rgba(240,71,106,0.25); }
.nav-btn.nav-cta:hover { background: var(--rose-dk); }

/* ── Layout ─────────────────────────────────────────────────── */
main        { padding-bottom: 80px; }
.container  { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 52px 0 44px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.hero-left { }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 16px;
}
.hero-eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }
.hero-title {
  font-family: var(--font-display); font-size: clamp(30px,4.5vw,48px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 14px;
}
.hero-title em { font-style: normal; color: var(--rose); }
.hero-sub {
  font-size: 15px; color: var(--text-2); line-height: 1.75;
  max-width: 420px; margin-bottom: 28px;
}
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-chip {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border-md);
  border-radius: var(--radius-sm); padding: 6px 14px;
  user-select: none; -webkit-user-select: none;
  cursor: default; pointer-events: none;
}
.hero-visual {
  font-size: 88px; line-height: 1;
  width: 200px; height: 200px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  animation: popIn 0.5s cubic-bezier(0.34,1.4,0.64,1) 0.1s both;
}

/* ── Registry strip ─────────────────────────────────────────── */
.strip-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 14px;
}
.reg-strip {
  display: flex; gap: 12px; overflow-x: auto;
  padding-bottom: 4px; margin-bottom: 40px;
}
.reg-strip-card {
  flex-shrink: 0; min-width: 155px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease);
}
.reg-strip-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--rose-mid); }
.reg-strip-emoji { font-size: 26px; margin-bottom: 10px; }
.reg-strip-name  { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.reg-strip-meta  { font-size: 11px; color: var(--text-3); }
.reg-strip-bar   { margin-top: 10px; }
.reg-strip-pct   { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* ── Search ─────────────────────────────────────────────────── */
.search-wrap {
  position: relative; margin-bottom: 14px;
}
.search-icon {
  position: absolute; left: 15px; top: 50%;
  transform: translateY(-50%); font-size: 15px;
  color: var(--text-3); pointer-events: none;
}
.search-input {
  width: 100%; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 13px 14px 13px 42px;
  font-size: 14px; color: var(--text); outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input:focus { border-color: var(--rose-mid); box-shadow: 0 0 0 3px rgba(240,71,106,0.08); }

/* ── Category chips ─────────────────────────────────────────── */
.cat-scroll {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 2px; margin-bottom: 28px;
}
.cat-btn {
  flex-shrink: 0; padding: 8px 18px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 99px; color: var(--text-2);
  font-size: 13px; font-weight: 600;
  transition: all 0.15s; white-space: nowrap;
}
.cat-btn:hover  { border-color: var(--rose-mid); color: var(--rose); background: var(--rose-lt); }
.cat-btn.active { background: var(--rose); border-color: var(--rose); color: #fff; box-shadow: 0 2px 8px rgba(240,71,106,0.25); }

/* ── Experience grid ────────────────────────────────────────── */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.exp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease);
  animation: stagger 0.4s ease both;
}
.exp-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-md); }
.exp-card-hero {
  height: 96px; display: flex; align-items: center; justify-content: center;
  font-size: 44px; position: relative;
}
.exp-card-cat {
  position: absolute; top: 10px; left: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(26,23,20,0.4);
}
.exp-card-body   { padding: 14px 16px 18px; }
.exp-card-title  { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; line-height: 1.35; letter-spacing: -0.01em; }
.exp-card-prov   { font-size: 11px; color: var(--text-3); margin-bottom: 12px; }
.exp-card-footer { display: flex; justify-content: space-between; align-items: center; }
.exp-card-price  { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--rose); }
.exp-card-cta    {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--rose);
  background: var(--rose-lt); border-radius: var(--radius-sm);
  padding: 5px 11px; border: 1px solid var(--rose-mid);
  transition: all 0.15s;
}
.exp-card:hover .exp-card-cta { background: var(--rose); color: #fff; }

/* ── Priority badge ─────────────────────────────────────────── */
.priority-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  border-radius: 99px; padding: 4px 10px;
}
.priority-badge.p1 { background: #FFFBEB; color: #92400E; border: 1.5px solid #FDE68A; }
.priority-badge.p2 { background: var(--rose-lt); color: var(--rose-dk); border: 1.5px solid var(--rose-mid); }
.priority-badge.p3 { background: var(--sky-lt); color: #1D4ED8; border: 1.5px solid var(--sky-mid); }

/* ── Progress bar ───────────────────────────────────────────── */
.progress-track {
  background: var(--surface-3); border-radius: 99px; height: 5px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: block; width: 100%;
  border: none; border-radius: var(--radius-md);
  padding: 14px 0; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.15s var(--ease);
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.985); }
.btn-rose    { background: var(--rose); color: #fff; box-shadow: 0 2px 10px rgba(240,71,106,0.25); }
.btn-rose:hover    { background: var(--rose-dk); box-shadow: 0 4px 16px rgba(240,71,106,0.35); }
.btn-white   { background: var(--text); color: var(--bg); }
.btn-white:hover   { background: #2E2A26; }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border-md); }
.btn-outline:hover { border-color: var(--border-dk); background: var(--surface-2); }
.btn-ghost   { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover   { color: var(--text); background: var(--surface-3); }
.btn.disabled { opacity: 0.4; pointer-events: none; }
.btn-sm  { padding: 9px 18px; font-size: 13px; width: auto; display: inline-block; }
.btn-row { display: flex; gap: 8px; }
.btn-icon {
  background: transparent; border: none;
  color: var(--text-3); padding: 4px; cursor: pointer;
  border-radius: var(--radius-sm); font-size: 16px;
  transition: all 0.15s; display: flex; align-items: center; justify-content: center;
}
.btn-icon:hover { color: var(--text); background: var(--surface-2); }
.back-btn {
  background: none; border: none;
  color: var(--text-3); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
  padding: 0; margin-bottom: 28px; cursor: pointer;
  transition: color 0.15s;
}
.back-btn:hover { color: var(--rose); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; display: block;
}
.form-input, .form-textarea {
  width: 100%; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 14px; font-size: 14px; color: var(--text); outline: none;
  margin-bottom: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--rose-mid);
  box-shadow: 0 0 0 3px rgba(240,71,106,0.08);
}
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
input[type="date"].form-input { color-scheme: light; }

/* ── Page header ────────────────────────────────────────────── */
.page-head {
  padding: 36px 0 28px;
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 1px solid var(--border); margin-bottom: 28px;
}
.page-head .btn { width: auto; padding: 10px 20px; font-size: 13px; }
.page-title { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.page-sub   { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* ── Registry list ──────────────────────────────────────────── */
.new-reg-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
  animation: popIn 0.25s ease;
}
.new-reg-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 18px; color: var(--text); }
.reg-list { display: flex; flex-direction: column; gap: 10px; }
.reg-row {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  display: flex; gap: 16px; align-items: center;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease);
}
.reg-row:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--border-md); }
.reg-avatar { font-size: 32px; }
.reg-info   { flex: 1; min-width: 0; }
.reg-name   { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.reg-meta   { font-size: 12px; color: var(--text-3); margin-top: 2px; margin-bottom: 10px; }
.reg-funded { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.reg-arrow  { color: var(--text-3); font-size: 18px; }

/* ── Registry detail ────────────────────────────────────────── */
.reg-detail-head { padding: 36px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.reg-detail-avatar { font-size: 52px; margin-bottom: 12px; }
.reg-detail-name   { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.reg-detail-sub    { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.reg-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.reg-detail-hint {
  font-size: 12px; color: var(--text-3); margin-top: 12px;
  padding: 10px 14px; background: var(--surface-2);
  border-radius: var(--radius-sm); border-left: 3px solid var(--amber);
  display: flex; gap: 8px; align-items: flex-start;
}

/* ── Registry experience card ───────────────────────────────── */
.reg-exp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: fadeUp 0.3s ease both;
  transition: box-shadow 0.2s;
}
.reg-exp-card:hover { box-shadow: var(--shadow-md); }
.reg-exp-card.is-priority-1 { border-top: 3px solid var(--amber); }
.reg-exp-card.is-priority-2 { border-top: 3px solid var(--rose); }
.reg-exp-card.is-priority-3 { border-top: 3px solid var(--sky); }

.reg-exp-main { padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.reg-exp-hero {
  width: 54px; height: 54px; border-radius: var(--radius-md);
  background: var(--surface-2); display: flex; align-items: center;
  justify-content: center; font-size: 28px; flex-shrink: 0;
  position: relative; cursor: pointer;
}
.reg-exp-info  { flex: 1; min-width: 0; }
.reg-exp-top   { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 2px; flex-wrap: wrap; }
.reg-exp-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.reg-exp-prov  { font-size: 11px; color: var(--text-3); margin-bottom: 10px; }
.reg-exp-progress { }
.reg-exp-status {
  font-size: 11px; font-weight: 600; margin-top: 5px;
  display: flex; justify-content: space-between;
}

/* Parent note ── */
.parent-note {
  margin: 0 18px 14px;
  background: linear-gradient(135deg, #FFF8F0, #FFF3F6);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid var(--rose-mid);
  border-left: 3px solid var(--rose);
  position: relative;
}
.parent-note-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--rose); margin-bottom: 5px;
}
.parent-note-text {
  font-size: 13px; color: var(--text-2); line-height: 1.6; font-style: italic;
}
.parent-note-actions {
  position: absolute; top: 10px; right: 12px;
  display: flex; gap: 4px;
}

/* Note editor ── */
.note-editor {
  margin: 0 18px 14px;
  background: var(--rose-lt);
  border-radius: var(--radius-md);
  padding: 14px; border: 1px solid var(--rose-mid);
  animation: popIn 0.2s ease;
}
.note-editor textarea.form-textarea { margin-bottom: 10px; background: var(--surface); font-style: normal; }
.note-editor-actions { display: flex; gap: 8px; }
.note-editor-actions .btn { padding: 9px 0; font-size: 13px; }

/* Registry actions row ── */
.reg-exp-actions {
  padding: 0 18px 14px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.priority-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2); border: 1.5px solid var(--border-md);
  border-radius: 99px; padding: 5px 12px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: all 0.15s;
}
.priority-toggle:hover { border-color: var(--amber); color: var(--amber); }
.priority-toggle.active-p1 { background: #FFFBEB; border-color: var(--amber); color: #92400E; }
.priority-toggle.active-p2 { background: var(--rose-lt); border-color: var(--rose); color: var(--rose-dk); }
.priority-toggle.active-p3 { background: var(--sky-lt); border-color: var(--sky); color: #1D4ED8; }
.add-note-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: 99px; padding: 5px 12px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: all 0.15s;
}
.add-note-btn:hover { border-color: var(--rose-mid); color: var(--rose); background: var(--rose-lt); }

.gift-btn {
  background: var(--rose-lt); border: 1.5px solid var(--rose-mid);
  border-radius: var(--radius-sm); color: var(--rose);
  padding: 8px 16px; font-size: 12px; font-weight: 700;
  flex-shrink: 0; transition: all 0.15s;
}
.gift-btn:hover { background: var(--rose); color: #fff; }

/* ── Modal ──────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(20,15,10,0.5);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s ease;
  backdrop-filter: blur(4px);
}
.modal-sheet {
  background: var(--surface); border: 1px solid var(--border-md);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.32s cubic-bezier(0.32,1,0.64,1) both;
}
.modal-drag-bar {
  width: 36px; height: 4px; background: var(--border-md);
  border-radius: 99px; margin: 12px auto 0;
}
.modal-close-row { display: flex; justify-content: flex-end; padding: 10px 18px 0; }
.modal-close-btn {
  background: var(--surface-2); border: none; width: 30px; height: 30px;
  border-radius: 50%; font-size: 13px; color: var(--text-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.modal-close-btn:hover { background: var(--surface-3); color: var(--text); }

/* Modal detail */
.modal-hero {
  height: 130px; border-radius: var(--radius-lg); margin: 12px 18px 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 68px; overflow: hidden;
}
.modal-body     { padding: 20px 22px 32px; }
.modal-cat      { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose); margin-bottom: 6px; }
.modal-title    { font-family: var(--font-display); font-size: 23px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin-bottom: 4px; }
.modal-prov     { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.modal-desc     { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-bottom: 20px; }
.tags-row       { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 4px 10px; border: 1px solid var(--border);
}
.modal-price-box {
  background: var(--surface-2); border-radius: var(--radius-md);
  padding: 16px 18px; margin-bottom: 20px; border: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-price       { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--rose); letter-spacing: -0.02em; }
.modal-price-right { text-align: right; }
.modal-price-note  { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.modal-group-hint  { font-size: 12px; color: var(--text-3); margin-top: 6px; display: flex; align-items: center; gap: 5px; }

/* Modal registry picker */
.picker-header { padding: 20px 22px 14px; border-bottom: 1px solid var(--border); }
.picker-title  { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.picker-sub    { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.picker-body   { padding: 18px 22px 28px; }
.picker-opt {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 8px;
  cursor: pointer; transition: all 0.15s;
}
.picker-opt:hover      { border-color: var(--border-md); background: var(--surface-3); }
.picker-opt.selected   { border-color: var(--rose); background: var(--rose-lt); }
.picker-opt-emoji      { font-size: 22px; }
.picker-opt-name       { flex: 1; font-weight: 700; font-size: 14px; color: var(--text); }
.picker-opt-meta       { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.picker-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  transition: all 0.15s;
}
.picker-opt.selected .picker-check { background: var(--rose); border-color: var(--rose); color: #fff; }

/* Modal contribute */
.contrib-mini {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.contrib-mini-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--surface-3); display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0;
}
.contrib-mini-title { font-weight: 700; font-size: 14px; color: var(--text); }
.contrib-mini-sub   { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.contrib-body       { padding: 20px 22px 28px; }
.preset-row         { display: flex; gap: 8px; margin-bottom: 18px; }
.preset-btn {
  flex: 1; padding: 13px 0;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-size: 15px; font-weight: 700;
  color: var(--text-2); transition: all 0.15s;
}
.preset-btn:hover  { border-color: var(--rose-mid); color: var(--rose); background: var(--rose-lt); }
.preset-btn.active { border-color: var(--rose); color: var(--rose); background: var(--rose-lt); box-shadow: 0 0 0 3px rgba(240,71,106,0.08); }
.amount-wrap {
  display: flex; align-items: center;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; margin-bottom: 4px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.amount-wrap:focus-within { border-color: var(--rose-mid); box-shadow: 0 0 0 3px rgba(240,71,106,0.08); }
.amount-prefix { padding: 0 16px; font-size: 20px; color: var(--text-3); font-weight: 700; }
.amount-input  {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 24px; font-weight: 700; font-family: var(--font-display);
  letter-spacing: -0.02em; color: var(--text); padding: 14px 0;
}
.amount-hint   { font-size: 12px; color: var(--text-3); margin-bottom: 20px; margin-top: 4px; }
.secure-note   { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* Modal confirm */
.confirm-body  { padding: 40px 24px; text-align: center; }
.confirm-icon  { font-size: 56px; margin-bottom: 16px; }
.confirm-title { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.confirm-sub   { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-bottom: 24px; }
.cert-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 24px;
  display: flex; gap: 12px; align-items: center; text-align: left;
}
.cert-icon  { font-size: 28px; }
.cert-title { font-weight: 700; font-size: 13px; color: var(--text); }
.cert-sub   { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ── Settings ───────────────────────────────────────────────── */
.profile-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.profile-row { display: flex; gap: 18px; align-items: flex-start; }
.photo-circle {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--rose-lt); border: 2px dashed var(--rose-mid);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; flex-shrink: 0;
  font-size: 11px; font-weight: 700; color: var(--rose); letter-spacing: 0.06em;
  transition: all 0.15s; gap: 3px;
}
.photo-circle:hover { background: var(--rose-mid); }
.photo-circle img   { width: 100%; height: 100%; object-fit: cover; }
.profile-fields { flex: 1; min-width: 0; }

.tab-bar {
  display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.tab-btn {
  flex: 1; padding: 12px 0; background: none; border: none;
  font-size: 13px; font-weight: 600; color: var(--text-3);
  border-bottom: 2px solid transparent; cursor: pointer;
  transition: all 0.15s; margin-bottom: -1px;
}
.tab-btn:hover  { color: var(--text-2); }
.tab-btn.active { color: var(--rose); border-bottom-color: var(--rose); }

.section-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.section-sub   { font-size: 13px; color: var(--text-2); margin-bottom: 22px; }

/* Child cards */
.child-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.child-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  animation: stagger 0.35s ease both;
}
.child-card-accent { height: 3px; }
.child-card-inner  { padding: 18px 20px 20px; display: flex; gap: 16px; align-items: flex-start; }
.child-photo-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--surface-2); border: 2px dashed var(--border-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; flex-shrink: 0; transition: all 0.15s;
}
.child-photo-wrap:hover   { border-color: var(--rose-mid); }
.child-photo-wrap img     { width: 100%; height: 100%; object-fit: cover; }
.child-name    { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin-bottom: 4px; }
.child-unnamed { font-style: italic; font-weight: 400; font-size: 15px; color: var(--text-3); }
.child-bday    { font-size: 13px; color: var(--text-2); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.age-pill { font-size: 11px; font-weight: 700; border: 1px solid var(--border-md); border-radius: 99px; padding: 2px 9px; color: var(--text-2); background: var(--surface-2); }
.bday-soon {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  color: #92400E; background: #FFFBEB; border: 1px solid #FDE68A;
  border-radius: var(--radius-sm); padding: 4px 10px; margin-bottom: 10px; display: inline-block;
}
.child-edit-btn {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-3); padding: 6px 14px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; cursor: pointer; transition: all 0.15s;
}
.child-edit-btn:hover { border-color: var(--rose-mid); color: var(--rose); background: var(--rose-lt); }
.remove-x { background: none; border: none; color: var(--text-3); font-size: 18px; cursor: pointer; padding: 0; transition: color 0.15s; line-height: 1; }
.remove-x:hover { color: var(--rose); }

.add-child-btn {
  width: 100%; background: none; border: 2px dashed var(--border-md);
  border-radius: var(--radius-lg); padding: 16px;
  color: var(--text-3); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: all 0.15s; letter-spacing: 0.04em;
}
.add-child-btn:hover { border-color: var(--rose); color: var(--rose); background: var(--rose-lt); }

/* Family circle */
.invite-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.invite-title { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.mutual-block {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px;
  display: flex; gap: 10px; align-items: flex-start;
}
.friends-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.friend-row {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 8px;
  display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-sm);
}
.friend-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.friend-name  { font-weight: 700; font-size: 13px; color: var(--text); }
.friend-email { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-regs  { font-size: 11px; color: var(--mint); font-weight: 600; margin-top: 2px; }
.status-pill  { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.status-pill.accepted { background: var(--mint-lt); color: #047857; border: 1px solid #A7F3D0; }
.status-pill.pending  { background: var(--amber-lt); color: #92400E; border: 1px solid var(--amber-mid); }
.remove-friend-btn { background: none; border: none; font-size: 11px; color: var(--text-3); cursor: pointer; font-weight: 600; transition: color 0.15s; }
.remove-friend-btn:hover { color: var(--rose); }

/* ── Utility ────────────────────────────────────────────────── */
.empty { text-align: center; padding: 48px 24px; color: var(--text-3); font-size: 14px; line-height: 1.8; }
.empty-icon { font-size: 40px; margin-bottom: 14px; opacity: 0.35; }
.share-btn {
  background: var(--surface-2); border: 1px solid var(--border-md);
  border-radius: var(--radius-sm); color: var(--text-2);
  padding: 8px 18px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer;
  transition: all 0.15s;
}
.share-btn:hover { border-color: var(--border-dk); color: var(--text); background: var(--surface-3); }

@media (max-width: 620px) {
  .hero                  { grid-template-columns: 1fr; }
  .hero-visual           { display: none; }
  .exp-grid              { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .header-inner          { padding: 0 16px; }
  .container             { padding: 0 16px; }
  .nav-btn               { padding: 7px 10px; font-size: 12px; }
}

/* ── ─────────────────────────────────────────────────────────
   REGISTRY INLINE EDIT PANEL
   Shows below the registry header when the parent clicks Edit.
   ──────────────────────────────────────────────────────────── */

.reg-edit-panel {
  background: var(--surface);
  border: 1.5px solid var(--rose-mid);
  border-radius: var(--radius-lg);
  padding: 22px 24px 24px;
  margin-bottom: 24px;
  box-shadow: 0 0 0 4px rgba(240,71,106,0.06);
}

.reg-edit-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--text); margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}

.reg-edit-section {
  margin-bottom: 20px;
}
.reg-edit-section:last-of-type { margin-bottom: 0; }

/* ── Emoji picker grid ── */
.emoji-picker {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

@media (max-width: 480px) {
  .emoji-picker { grid-template-columns: repeat(8, 1fr); }
}

.emoji-opt {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
  font-size: 17px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.14s var(--ease);
  padding: 0; line-height: 1;
}
.emoji-opt:hover {
  border-color: var(--rose-mid);
  background: var(--rose-lt);
  transform: scale(1.12);
}
.emoji-opt.selected {
  border-color: var(--rose);
  background: var(--rose-lt);
  box-shadow: 0 0 0 3px rgba(240,71,106,0.15);
  transform: scale(1.1);
}

/* ── Registry description display ── */
/* Shown in registry detail and list when a description has been saved */
.reg-description {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  font-style: italic;
  margin-top: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--rose-mid);
}

/* Description in the list-view registry row */
.reg-row-desc {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

/* Edit button in registry detail header */
.edit-reg-btn {
  background: transparent;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  padding: 7px 16px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer;
  transition: all 0.15s;
}
.edit-reg-btn:hover        { border-color: var(--rose-mid); color: var(--rose); background: var(--rose-lt); }
.edit-reg-btn.is-editing   { background: var(--rose-lt); border-color: var(--rose); color: var(--rose-dk); }

/* ════════════════════════════════════════════════════════════
   AUTH SCREEN
   ════════════════════════════════════════════════════════════ */

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg);
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 32px; cursor: pointer;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 14px; color: var(--text-2);
  margin-bottom: 28px; line-height: 1.6;
}
.auth-error {
  background: var(--rose-lt); border: 1px solid var(--rose-mid);
  border-radius: var(--radius-sm); padding: 11px 14px;
  font-size: 13px; color: var(--rose-dk); margin-bottom: 16px;
}
.auth-switch {
  text-align: center; font-size: 13px;
  color: var(--text-2); margin-top: 20px;
}
.auth-switch button {
  background: none; border: none;
  color: var(--rose); font-weight: 700;
  font-size: 13px; cursor: pointer;
  text-decoration: underline;
}
.auth-divider {
  text-align: center; font-size: 12px;
  color: var(--text-3); margin: 20px 0;
  position: relative;
}
.auth-divider::before {
  content: '';
  position: absolute; top: 50%; left: 0;
  width: 100%; height: 1px;
  background: var(--border);
}
.auth-divider span {
  background: var(--surface);
  position: relative; z-index: 1;
  padding: 0 12px;
}

/* ════════════════════════════════════════════════════════════
   LOADING SPINNER
   ════════════════════════════════════════════════════════════ */

.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(253,252,248,0.8);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════
   EVENT DATE + UNFUNDED GIFT HANDLING
   ════════════════════════════════════════════════════════════ */

.event-date-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2);
  margin-top: 6px;
}
.event-date-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--amber-lt); border: 1px solid var(--amber-mid);
  border-radius: var(--radius-sm); padding: 4px 10px;
  font-size: 12px; font-weight: 600; color: #92400E;
}
.event-past-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--rose-lt); border: 1px solid var(--rose-mid);
  border-radius: var(--radius-sm); padding: 4px 10px;
  font-size: 12px; font-weight: 600; color: var(--rose-dk);
}

.unfunded-banner {
  background: var(--amber-lt);
  border: 1.5px solid var(--amber-mid);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.unfunded-banner-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: #92400E; margin-bottom: 4px;
}
.unfunded-banner-sub {
  font-size: 13px; color: #78340F;
  line-height: 1.6;
}

.unfunded-actions {
  padding: 0 18px 16px;
  background: var(--amber-lt);
  border-top: 1px solid var(--amber-mid);
}
.unfunded-actions-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #92400E; padding-top: 14px; margin-bottom: 10px;
}
.unfunded-btn-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.btn-topup {
  background: var(--mint-lt); border: 1.5px solid #A7F3D0;
  border-radius: var(--radius-sm); color: #047857;
  padding: 8px 14px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.btn-topup:hover { background: #D1FAE5; }
.btn-rollover {
  background: var(--sky-lt); border: 1.5px solid var(--sky-mid);
  border-radius: var(--radius-sm); color: #1D4ED8;
  padding: 8px 14px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.btn-rollover:hover { background: #DBEAFE; }
.btn-refund {
  background: var(--rose-lt); border: 1.5px solid var(--rose-mid);
  border-radius: var(--radius-sm); color: var(--rose-dk);
  padding: 8px 14px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.btn-refund:hover { background: var(--rose-mid); }

/* Rollover picker */
.rollover-picker {
  padding: 14px 18px;
  background: var(--sky-lt);
  border: 1px solid var(--sky-mid);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  animation: popIn 0.2s ease;
}
.rollover-picker-title {
  font-size: 12px; font-weight: 700;
  color: #1D4ED8; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.rollover-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 6px;
  cursor: pointer; transition: all 0.15s;
}
.rollover-opt:hover { border-color: var(--sky); }
.rollover-opt.selected { border-color: var(--sky); background: var(--sky-lt); }

/* Contributions list on registry detail */
.contribution-list {
  padding: 0 18px 14px;
  border-top: 1px solid var(--border-lt);
}
.contribution-list-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin: 12px 0 8px;
}
.contribution-item {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 6px 0;
  border-bottom: 1px solid var(--border-lt);
}
.contribution-item:last-child { border-bottom: none; }
.contribution-item-name  { color: var(--text-2); }
.contribution-item-amount { font-weight: 700; color: var(--mint); }
.contribution-item-msg {
  font-size: 11px; color: var(--text-3);
  font-style: italic; margin-top: 2px;
}
.contribution-item-status.refunded { color: var(--rose); font-size: 11px; }

/* Registry form event date field */
.form-hint {
  font-size: 11px; color: var(--text-3);
  margin-top: -8px; margin-bottom: 14px;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════
   GIFT CERTIFICATE REQUEST FLOW
   ════════════════════════════════════════════════════════════ */

.cert-request-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 14px 18px;
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 1.5px solid #A7F3D0; border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.15s;
  font-family: var(--font-body); font-size: 14px;
  font-weight: 700; color: #047857;
  margin-top: 4px;
}
.cert-request-btn:hover {
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  border-color: #34D399;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16,185,129,0.2);
}
.cert-request-btn .btn-icon-left { font-size: 20px; }
.cert-request-btn-text { text-align: left; flex: 1; }
.cert-request-btn-title { font-size: 14px; font-weight: 700; color: #047857; }
.cert-request-btn-sub   { font-size: 11px; font-weight: 500; color: #059669; margin-top: 1px; }

/* Pending / fulfilled badge on the card */
.cert-status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 99px;
  font-size: 12px; font-weight: 700;
}
.cert-status-badge.pending   { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.cert-status-badge.fulfilled { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }

/* Certificate request modal */
.cert-modal-header {
  padding: 20px 22px 0;
  border-bottom: 1px solid var(--border-lt);
  margin-bottom: 20px; padding-bottom: 16px;
}
.cert-modal-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800; color: var(--text);
  margin-bottom: 4px;
}
.cert-modal-sub { font-size: 13px; color: var(--text-2); line-height: 1.6; }

.cert-summary-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 16px;
  display: flex; gap: 12px; align-items: center;
  margin: 0 22px 20px;
}
.cert-summary-emoji { font-size: 32px; flex-shrink: 0; }
.cert-summary-title { font-size: 15px; font-weight: 700; color: var(--text); }
.cert-summary-meta  { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.cert-summary-value {
  margin-left: auto; flex-shrink: 0;
  font-size: 20px; font-weight: 800;
  font-family: var(--font-display); color: var(--mint);
}

.cert-form-body { padding: 0 22px 22px; }

.email-confirm-wrap { position: relative; margin-bottom: 6px; }
.email-confirm-check {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px; pointer-events: none;
}

.cert-success-body {
  padding: 32px 22px; text-align: center;
}
.cert-success-icon { font-size: 64px; margin-bottom: 14px; }
.cert-success-title {
  font-family: var(--font-display); font-size: 24px;
  font-weight: 800; color: var(--text); margin-bottom: 10px;
}
.cert-success-sub {
  font-size: 14px; color: var(--text-2); line-height: 1.75;
  margin-bottom: 20px;
}
.cert-timeline {
  background: var(--surface-2); border-radius: var(--radius-md);
  padding: 16px 18px; text-align: left; margin-bottom: 20px;
}
.cert-timeline-item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--text-2); margin-bottom: 10px;
  line-height: 1.5;
}
.cert-timeline-item:last-child { margin-bottom: 0; }
.cert-timeline-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--rose-lt); border: 2px solid var(--rose-mid);
  flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: 10px; margin-top: 1px;
}
.cert-timeline-dot.done { background: var(--mint-lt); border-color: #A7F3D0; }

/* ════════════════════════════════════════════════════════════
   COLOR THEMES
   Applied via data-theme attribute on <body>.
   Each theme overrides the core CSS variables.
   ════════════════════════════════════════════════════════════ */

/* Rose — default (already defined in :root, included here for completeness) */
[data-theme="rose"] {
  --primary:    #F0476A;
  --primary-dk: #C8284A;
  --primary-lt: #FFF0F3;
  --primary-mid:#FFD6DF;
  --rose:       #F0476A;
  --rose-dk:    #C8284A;
  --rose-lt:    #FFF0F3;
  --rose-mid:   #FFD6DF;
}

/* Ocean — deep teal/blue */
[data-theme="ocean"] {
  --primary:    #0EA5E9;
  --primary-dk: #0284C7;
  --primary-lt: #F0F9FF;
  --primary-mid:#BAE6FD;
  --rose:       #0EA5E9;
  --rose-dk:    #0284C7;
  --rose-lt:    #F0F9FF;
  --rose-mid:   #BAE6FD;
}
[data-theme="ocean"] .btn-rose,
[data-theme="ocean"] .btn.btn-rose  { background: #0EA5E9; }
[data-theme="ocean"] .btn-rose:hover{ background: #0284C7; }
[data-theme="ocean"] .hero-eyebrow-dot { background: #0EA5E9; }
[data-theme="ocean"] .progress-fill { background: #0EA5E9; }
[data-theme="ocean"] .nav-btn.active{ color: #0EA5E9; border-bottom-color: #0EA5E9; }

/* Forest — deep green */
[data-theme="forest"] {
  --primary:    #10B981;
  --primary-dk: #059669;
  --primary-lt: #ECFDF5;
  --primary-mid:#A7F3D0;
  --rose:       #10B981;
  --rose-dk:    #059669;
  --rose-lt:    #ECFDF5;
  --rose-mid:   #A7F3D0;
}
[data-theme="forest"] .btn-rose,
[data-theme="forest"] .btn.btn-rose  { background: #10B981; }
[data-theme="forest"] .btn-rose:hover{ background: #059669; }
[data-theme="forest"] .hero-eyebrow-dot { background: #10B981; }
[data-theme="forest"] .progress-fill { background: #10B981; }
[data-theme="forest"] .nav-btn.active{ color: #10B981; border-bottom-color: #10B981; }

/* Sunset — warm amber/orange */
[data-theme="sunset"] {
  --primary:    #F59E0B;
  --primary-dk: #D97706;
  --primary-lt: #FFFBEB;
  --primary-mid:#FDE68A;
  --rose:       #F59E0B;
  --rose-dk:    #D97706;
  --rose-lt:    #FFFBEB;
  --rose-mid:   #FDE68A;
}
[data-theme="sunset"] .btn-rose,
[data-theme="sunset"] .btn.btn-rose  { background: #F59E0B; color: #fff; }
[data-theme="sunset"] .btn-rose:hover{ background: #D97706; }
[data-theme="sunset"] .hero-eyebrow-dot { background: #F59E0B; }
[data-theme="sunset"] .progress-fill { background: #F59E0B; }
[data-theme="sunset"] .nav-btn.active{ color: #D97706; border-bottom-color: #F59E0B; }

/* Midnight — rich purple */
[data-theme="midnight"] {
  --primary:    #8B5CF6;
  --primary-dk: #7C3AED;
  --primary-lt: #F5F3FF;
  --primary-mid:#DDD6FE;
  --rose:       #8B5CF6;
  --rose-dk:    #7C3AED;
  --rose-lt:    #F5F3FF;
  --rose-mid:   #DDD6FE;
}
[data-theme="midnight"] .btn-rose,
[data-theme="midnight"] .btn.btn-rose  { background: #8B5CF6; }
[data-theme="midnight"] .btn-rose:hover{ background: #7C3AED; }
[data-theme="midnight"] .hero-eyebrow-dot { background: #8B5CF6; }
[data-theme="midnight"] .progress-fill { background: #8B5CF6; }
[data-theme="midnight"] .nav-btn.active{ color: #8B5CF6; border-bottom-color: #8B5CF6; }

/* ── Theme picker UI ── */
.theme-picker { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.theme-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; border: 3px solid transparent;
  transition: all 0.2s; position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.theme-swatch:hover    { transform: scale(1.15); }
.theme-swatch.selected { border-color: var(--text); transform: scale(1.1); }
.theme-swatch.selected::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
}

/* ── Add experience form ── */
.add-exp-panel {
  background: var(--surface);
  border: 1.5px solid var(--rose-mid);
  border-radius: var(--radius-lg);
  padding: 22px 24px 24px;
  margin-bottom: 24px;
  box-shadow: 0 0 0 4px rgba(var(--primary), 0.06);
  animation: popIn 0.2s ease;
}
.add-exp-panel-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--text); margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.exp-emoji-row {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px;
  margin-bottom: 16px;
}
@media (max-width: 480px) { .exp-emoji-row { grid-template-columns: repeat(8,1fr); } }
.color-preview {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1.5px solid var(--border); cursor: pointer;
  flex-shrink: 0;
}
.hero-bg-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bg-swatch {
  width: 28px; height: 28px; border-radius: 6px;
  cursor: pointer; border: 2px solid transparent;
  transition: all 0.15s;
}
.bg-swatch:hover   { transform: scale(1.15); }
.bg-swatch.selected{ border-color: var(--text); }