/* ============================================================================
   Momently Stage 1 — style.css
   Design tokens and component styles reproduced from the reference Next.js
   project (Tailwind config + globals.css): same colors, same Playfair
   Display / Inter pairing, same radii and shadows. Nothing redesigned.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Core palette */
  --color-paper: #FDFBF9;
  --color-ink: #12100F;
  --color-ink-soft: #1C1918;

  --color-love: #7A1E2B;
  --color-love-dark: #5C1620;
  --color-love-light: #94303F;

  --color-blush: #F1D6D9;
  --color-blush-dark: #E4B9BE;

  /* Template accent colors */
  --accent-birthday: #3E6D9C;
  --accent-anniversary: #C97B92;
  --accent-proposal: #8C1D2B;
  --accent-wedding: #B8964F;

  /* Fonts */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-card: 0 20px 60px -15px rgba(122, 30, 43, 0.25);
  --shadow-soft: 0 8px 30px -10px rgba(18, 16, 15, 0.12);

  /* Layout */
  --container-width: 1180px;
  --nav-height: 76px;
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------ Layout ----------------------------------- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-love);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); }
.section-subtitle { margin-top: 14px; color: rgba(18, 16, 15, 0.65); font-size: 17px; }
.italic { font-style: italic; color: var(--color-love-light); }

/* ------------------------------ Buttons ----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--color-love); color: var(--color-paper); box-shadow: var(--shadow-card); }
.btn-primary:hover:not(:disabled) { background: var(--color-love-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--color-love); border-color: var(--color-blush-dark); }
.btn-outline:hover:not(:disabled) { background: var(--color-blush); }
.btn-ghost { background: transparent; color: var(--color-ink); }
.btn-ghost:hover:not(:disabled) { background: rgba(18, 16, 15, 0.05); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-google {
  background: #fff; color: #1C1918; border: 1px solid rgba(18,16,15,0.14);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.btn-google:hover:not(:disabled) { background: #FAFAFA; }

/* ------------------------------- Forms ------------------------------------ */
.field { margin-bottom: 18px; text-align: left; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: rgba(18,16,15,0.75); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(18, 16, 15, 0.15);
  background: #fff;
  color: var(--color-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--color-love); box-shadow: 0 0 0 3px rgba(122, 30, 43, 0.12);
}
.field-hint { font-size: 12px; color: rgba(18,16,15,0.5); margin-top: 6px; }
.field-error { font-size: 12px; color: #B3261E; margin-top: 6px; }
.form-banner {
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 18px;
}
.form-banner.error { background: #FBEAEA; color: #8C1D2B; border: 1px solid #F1C6C6; }
.form-banner.success { background: #EAF6EE; color: #1E7B3C; border: 1px solid #C6E9D1; }

/* ------------------------------- Navbar ------------------------------------ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  display: flex; align-items: center;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.navbar.scrolled {
  background: rgba(253, 251, 249, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(18,16,15,0.06);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.wordmark { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--color-love); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--color-ink); opacity: 0.8; transition: opacity 0.15s ease; }
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-ink); margin: 5px 0; transition: transform 0.2s ease, opacity 0.2s ease; }

.mobile-menu {
  position: fixed; inset: var(--nav-height) 0 0 0; background: var(--color-paper); z-index: 99;
  padding: 32px 24px; display: none; flex-direction: column; gap: 22px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 18px; font-weight: 500; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: block; }
}

/* -------------------------------- Footer ------------------------------------ */
.footer { border-top: 1px solid rgba(18,16,15,0.08); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-tagline { margin-top: 14px; color: rgba(18,16,15,0.6); font-size: 14.5px; max-width: 320px; }
.footer-col h5 { font-family: var(--font-body); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; color: rgba(18,16,15,0.5); }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 14.5px; color: rgba(18,16,15,0.75); }
.footer-col a:hover { color: var(--color-love); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid rgba(18,16,15,0.08); font-size: 13px; color: rgba(18,16,15,0.5); }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* -------------------------------- Hero ------------------------------------ */
.hero { position: relative; padding: calc(var(--nav-height) + 64px) 0 80px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-title { font-size: clamp(36px, 5.2vw, 58px); letter-spacing: -0.01em; }
.hero-subtitle { margin-top: 22px; font-size: 18px; color: rgba(18,16,15,0.68); max-width: 480px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stack { position: relative; height: 420px; }
.hero-card {
  position: absolute; width: 230px; border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow-card); padding: 16px; opacity: 0; transform: translateY(24px) scale(0.94);
  animation: card-pop-in 0.7s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-card img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; }
.hero-card-caption { margin-top: 10px; font-family: var(--font-display); font-size: 14px; }
.hero-card:nth-child(1) { top: 0; left: 10%; animation-delay: 0.1s; z-index: 3; }
.hero-card:nth-child(2) { top: 60px; right: 0; animation-delay: 0.25s; z-index: 2; }
.hero-card:nth-child(3) { bottom: 40px; left: 0; animation-delay: 0.4s; z-index: 2; }
.hero-card:nth-child(4) { bottom: 0; right: 12%; animation-delay: 0.55s; z-index: 1; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stack { height: 320px; margin-top: 24px; }
  .hero-card { width: 170px; }
}

/* -------------------------------- Cards ------------------------------------ */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { padding: 30px 26px; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); }
.feature-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--color-blush); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--color-love); }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: rgba(18,16,15,0.65); }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step-card { position: relative; padding: 30px 24px 26px; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); }
.step-card::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-size: 30px; color: var(--color-blush-dark); display: block; margin-bottom: 14px; }
.step-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: rgba(18,16,15,0.62); }

@media (max-width: 980px) { .card-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid, .steps-grid { grid-template-columns: 1fr; } }

/* --------------------------- Template card --------------------------------- */
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.template-card {
  border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease; position: relative;
}
.template-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.template-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--color-blush); }
.template-card-media img { width: 100%; height: 100%; object-fit: cover; }
.template-badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: var(--radius-full);
  font-size: 11.5px; font-weight: 600; background: rgba(253,251,249,0.92); backdrop-filter: blur(4px); color: var(--color-ink);
}
.template-price { position: absolute; top: 12px; right: 12px; padding: 5px 12px; border-radius: var(--radius-full); font-size: 11.5px; font-weight: 700; background: var(--color-love); color: #fff; }
.template-card-body { padding: 18px 18px 20px; }
.template-card-body h3 { font-size: 17px; margin-bottom: 4px; }
.template-card-meta { font-size: 12.5px; color: rgba(18,16,15,0.5); margin-bottom: 14px; }
.template-card-actions { display: flex; gap: 8px; }
@media (max-width: 980px) { .template-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .template-grid { grid-template-columns: 1fr; } }

/* --------------------------- Marketplace layout ----------------------------- */
.marketplace-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.filters-sidebar { background: #fff; border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-soft); position: sticky; top: calc(var(--nav-height) + 20px); }
.filter-group { margin-bottom: 22px; }
.filter-group h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(18,16,15,0.5); margin-bottom: 10px; }
.filter-chip { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: var(--radius-full); font-size: 13px; border: 1px solid rgba(18,16,15,0.12); margin: 0 6px 6px 0; background: #fff; }
.filter-chip.active { background: var(--color-love); color: #fff; border-color: var(--color-love); }
.search-bar { display: flex; gap: 10px; margin-bottom: 28px; }
.search-bar input { flex: 1; padding: 13px 18px; border-radius: var(--radius-full); border: 1px solid rgba(18,16,15,0.14); }
.empty-state { text-align: center; padding: 60px 20px; color: rgba(18,16,15,0.55); }
@media (max-width: 860px) { .marketplace-layout { grid-template-columns: 1fr; } .filters-sidebar { position: static; } }

/* ------------------------------ Testimonials -------------------------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { padding: 28px 24px; border-radius: var(--radius-md); background: var(--color-blush); }
.testimonial-quote { font-family: var(--font-display); font-style: italic; font-size: 16.5px; line-height: 1.5; margin-bottom: 18px; }
.testimonial-name { font-weight: 600; font-size: 14px; }
.testimonial-role { font-size: 12.5px; color: rgba(18,16,15,0.55); }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* -------------------------------- Pricing ------------------------------------ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card { padding: 32px 26px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); border: 1px solid rgba(18,16,15,0.06); }
.pricing-card.featured { background: var(--color-love); color: #fff; box-shadow: var(--shadow-card); transform: scale(1.03); }
.pricing-card.featured .pricing-note { color: rgba(255,255,255,0.7); }
.pricing-name { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.75; }
.pricing-amount { font-family: var(--font-display); font-size: 40px; margin: 14px 0 4px; }
.pricing-note { font-size: 13px; color: rgba(18,16,15,0.5); margin-bottom: 24px; }
.pricing-features { margin: 24px 0 28px; }
.pricing-features li { font-size: 14px; padding: 7px 0; display: flex; gap: 10px; align-items: flex-start; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } .pricing-card.featured { transform: none; } }

/* ---------------------------------- FAQ --------------------------------------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(18,16,15,0.1); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 22px 4px; display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 500; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; font-size: 14.5px; color: rgba(18,16,15,0.65); padding: 0 4px; }
.faq-item.open .faq-answer { max-height: 200px; padding: 0 4px 22px; }
.faq-item.open .faq-question .chev { transform: rotate(180deg); }
.chev { transition: transform 0.25s ease; }

/* ------------------------------- Auth pages ------------------------------------ */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 20px 40px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 40px 36px; text-align: center; }
.auth-card .wordmark { display: inline-block; margin-bottom: 22px; }
.auth-card h1 { font-size: 24px; margin-bottom: 8px; }
.auth-card .subtitle { font-size: 14.5px; color: rgba(18,16,15,0.6); margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-size: 12.5px; color: rgba(18,16,15,0.4); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(18,16,15,0.12); }
.auth-switch { margin-top: 22px; font-size: 14px; color: rgba(18,16,15,0.65); }
.auth-switch a { color: var(--color-love); font-weight: 600; }

/* --------------------------- Create memory (multi-step) ------------------------- */
.step-shell { max-width: 720px; margin: 0 auto; padding: calc(var(--nav-height) + 40px) 20px 80px; }
.step-progress { display: flex; gap: 8px; margin-bottom: 36px; }
.step-progress span { flex: 1; height: 4px; border-radius: 999px; background: rgba(18,16,15,0.1); }
.step-progress span.done, .step-progress span.active { background: var(--color-love); }
.step-panel { display: none; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 36px; }
.step-panel.active { display: block; }
.step-panel h2 { font-size: 22px; margin-bottom: 6px; }
.step-panel .step-desc { font-size: 14px; color: rgba(18,16,15,0.6); margin-bottom: 26px; }
.step-nav { display: flex; justify-content: space-between; margin-top: 28px; }

.upload-zone {
  border: 2px dashed rgba(122,30,43,0.3); border-radius: var(--radius-md); padding: 40px 20px;
  text-align: center; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease;
}
.upload-zone:hover, .upload-zone.dragover { background: var(--color-blush); border-color: var(--color-love); }
.upload-zone p { font-size: 14px; color: rgba(18,16,15,0.6); margin-top: 8px; }
.upload-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 22px; }
.upload-thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-blush); }
.upload-thumb img, .upload-thumb video { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb .remove-thumb {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(18,16,15,0.65); color: #fff; border: none; display: flex; align-items: center; justify-content: center; font-size: 14px;
}

.summary-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(18,16,15,0.08); font-size: 14.5px; }
.summary-row:last-of-type { border-bottom: none; }
.summary-row .label { color: rgba(18,16,15,0.55); }
.summary-total { display: flex; justify-content: space-between; padding-top: 18px; margin-top: 6px; border-top: 2px solid rgba(18,16,15,0.1); font-size: 18px; font-weight: 600; }

/* ------------------------------- Payment page ----------------------------------- */
.pay-shell { max-width: 480px; margin: 0 auto; padding: calc(var(--nav-height) + 60px) 20px 80px; text-align: center; }
.pay-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 40px 32px; }
.pay-amount { font-family: var(--font-display); font-size: 42px; margin: 12px 0 4px; }
.pay-status { margin-top: 18px; font-size: 13.5px; }

/* -------------------------------- Success page ----------------------------------- */
.success-shell { max-width: 520px; margin: 0 auto; padding: calc(var(--nav-height) + 80px) 20px 100px; text-align: center; }
.success-icon { font-size: 52px; margin-bottom: 18px; }
.success-shell h1 { font-size: 28px; margin-bottom: 12px; }
.success-shell p { color: rgba(18,16,15,0.65); font-size: 15px; margin-bottom: 8px; }
.order-ref { display: inline-block; margin-top: 18px; padding: 8px 16px; border-radius: var(--radius-full); background: var(--color-blush); font-size: 12.5px; font-family: monospace; }

/* -------------------------------- Public memory ----------------------------------- */
.memory-page { --memory-accent: var(--color-love); }
.memory-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; background: var(--color-ink); }
.memory-hero-media { position: absolute; inset: 0; }
.memory-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.memory-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.1) 60%); }
.memory-hero-content { position: relative; padding: 60px 24px; max-width: 760px; margin: 0 auto; text-align: center; width: 100%; }
.memory-hero-content h1 { font-size: clamp(32px, 6vw, 56px); }
.memory-hero-content .subtitle { margin-top: 16px; font-size: 17px; opacity: 0.85; }
.memory-hero-date { display: inline-block; margin-bottom: 16px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }

.music-bar { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px; background: var(--color-ink); color: #fff; font-size: 13.5px; }
.music-bar .note { color: var(--memory-accent); }

.memory-section { padding: 80px 0; }
.memory-section-title { text-align: center; font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 48px; }

.timeline { max-width: 680px; margin: 0 auto; position: relative; padding-left: 28px; border-left: 2px solid var(--color-blush); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -33px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--memory-accent); }
.timeline-date { font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--memory-accent); }
.timeline-item h3 { font-size: 19px; margin: 6px 0 8px; }
.timeline-item p { font-size: 14.5px; color: rgba(18,16,15,0.65); }

.gallery { columns: 3 220px; column-gap: 14px; }
.gallery img, .gallery video { width: 100%; border-radius: var(--radius-sm); margin-bottom: 14px; break-inside: avoid; }

.memory-closing { padding: 90px 24px; text-align: center; color: #fff; background: var(--memory-accent); }
.memory-closing .heart-icon { font-size: 34px; margin-bottom: 18px; }
.memory-closing p { max-width: 560px; margin: 0 auto; font-size: 19px; font-family: var(--font-display); font-style: italic; line-height: 1.5; }
.memory-closing .btn { margin-top: 32px; background: #fff; color: var(--memory-accent); box-shadow: none; }

.memory-footer { text-align: center; padding: 32px; font-size: 12.5px; color: rgba(18,16,15,0.45); }

/* -------------------------------- Admin ----------------------------------------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; flex-shrink: 0; background: var(--color-ink); color: #fff; padding: 26px 18px; display: flex; flex-direction: column; }
.admin-sidebar .wordmark { color: #fff; font-size: 19px; }
.admin-sidebar .tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.5; margin: 2px 0 30px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; opacity: 0.75; margin-bottom: 4px; }
.admin-nav a.active, .admin-nav a:hover { background: rgba(255,255,255,0.1); opacity: 1; }
.admin-sidebar .signout { margin-top: auto; }
.admin-main { flex: 1; background: #F7F3F1; min-height: 100vh; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; padding: 22px 32px; border-bottom: 1px solid rgba(18,16,15,0.08); background: #fff; }
.admin-content { padding: 32px; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.admin-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(18,16,15,0.45); padding: 14px 18px; border-bottom: 1px solid rgba(18,16,15,0.08); }
.admin-table td { padding: 14px 18px; font-size: 14px; border-bottom: 1px solid rgba(18,16,15,0.06); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr.clickable { cursor: pointer; }
.admin-table tr.clickable:hover { background: rgba(122,30,43,0.03); }

.status-badge { display: inline-flex; padding: 5px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; text-transform: capitalize; }
.status-badge.tone-neutral { background: #EDEAE7; color: #4A4542; }
.status-badge.tone-warning { background: #FBF0D9; color: #8A6116; }
.status-badge.tone-accent { background: #E4DFF7; color: #4B3B9E; }
.status-badge.tone-success { background: #DCF3E4; color: #1E7B3C; }
.status-badge.tone-danger { background: #FBEAEA; color: #8C1D2B; }

.admin-login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--color-ink); padding: 20px; }
.admin-detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.admin-panel { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); padding: 26px; margin-bottom: 24px; }
.admin-panel h3 { font-size: 15.5px; margin-bottom: 16px; }
.detail-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13.5px; border-bottom: 1px solid rgba(18,16,15,0.06); }
.detail-row .label { color: rgba(18,16,15,0.5); }
.media-thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.media-thumb-grid img, .media-thumb-grid video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.timeline-editor-row { display: grid; grid-template-columns: 100px 1fr 1fr auto; gap: 8px; margin-bottom: 10px; align-items: start; }
@media (max-width: 980px) { .admin-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .admin-sidebar { position: fixed; left: -240px; top: 0; bottom: 0; z-index: 50; transition: left 0.2s ease; }
  .admin-sidebar.open { left: 0; }
}

/* -------------------------------- Modal ----------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(18,16,15,0.55); z-index: 150;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius-lg); max-width: 480px; width: 100%; overflow: hidden; box-shadow: var(--shadow-card); position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.92); border: none; font-size: 16px; z-index: 2; }
.modal-box img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.modal-box-body { padding: 24px; }
.modal-box-body h3 { font-size: 20px; margin-bottom: 6px; }
.modal-box-body .meta { font-size: 13px; color: rgba(18,16,15,0.55); margin-bottom: 16px; }
.modal-box-body .price { font-size: 22px; font-family: var(--font-display); margin-bottom: 18px; }

/* -------------------------------- Misc ----------------------------------------- */
.skeleton { background: linear-gradient(90deg, #EDE7E4 25%, #F5F0EE 37%, #EDE7E4 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; border-radius: var(--radius-sm); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
/* -------------------------------- Profile ----------------------------------- */
.profile-header { display:flex; align-items:center; gap:18px; }
.profile-avatar {
  width:64px; height:64px; border-radius:50%; background:var(--color-love); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:22px; flex-shrink:0;
}
.profile-order-card { display:flex; gap:16px; background:#fff; border-radius:var(--radius-md); box-shadow:var(--shadow-soft); padding:18px; margin-bottom:14px; }
.profile-order-media { width:64px; height:64px; border-radius:var(--radius-sm); flex-shrink:0; opacity:0.85; }
.profile-order-body { flex:1; }
.profile-order-body h3 { font-size:16px; margin-bottom:2px; }
.profile-order-meta { font-size:12.5px; color:rgba(18,16,15,0.5); }
.profile-order-actions { margin-top:12px; display:flex; gap:8px; }

/* Nav profile avatar — top navbar + mobile slide-out menu */
.nav-avatar {
  width:34px; height:34px; border-radius:50%; background:var(--color-love); color:#fff;
  display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight:600; font-family:var(--font-body);
}
.nav-profile-link { display:inline-flex; align-items:center; gap:8px; }
.mobile-menu .nav-profile-link { font-size:16px; }