:root {
  --gold:    #FFC104;
  --gold-bg: #FFC104;
  --gold-dark: #D9A300;
  --cream:   #FAF7EF;
  --dark:    #1a1a1a;
  --muted:   #555;
  --card-dark: #1A223B;

  /* ── Compat vars for create/edit form (light-theme remapping) ── */
  --white:        #fff;
  --white-dim:    #333;
  --white-faint:  #777;
  --bg-card2:     #fff;
  --bg-deep:      #f8f5ec;
  --border:       #e0ddd3;
  --border-faint: #f0ede3;
  --gold-dim:     #d9a300;
  --error:        #e53e3e;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .sec-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 15px;
  left: 5%;
  right: 5%;
  z-index: 200;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgb(26 34 59 / 52%);
  backdrop-filter: blur(8.1px);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo img {
  height: 44px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: white;
  font-family: Cinzel, serif;
  font-size: 13.5px;
  font-weight: 400;
  position: relative;
  transition: color .2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--gold-bg);
  transform: scaleX(0);
  transition: transform .2s;
  transform-origin: left;
}

.nav-links a:hover {
  color: var(--gold-bg);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-cta {
  display: flex;
  font-family: Cinzel, serif;
  align-items: center;
  gap: 10px;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}

.nav-cta:hover {
  background: var(--gold-bg);
  border-color: var(--gold-bg);
}

.nav-cta .arr {
  width: 26px;
  height: 26px;
  background: #ffc104;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.fa-arrow-up {
    transform: rotate(45deg);
}

.menu-toggle-checkbox { display: none; }
.menu-toggle-label { display: none; font-size: 24px; color: #fff; cursor: pointer; }

/* ─── BUTTONS ─── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-bg);
  color: #1A223B;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,193,4,.35);
}

.btn-gold .arr {
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.btn-outline {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 14px; font-weight: 500;
  transition: color .2s;
}

.btn-outline:hover { color: var(--gold-bg); }

.btn-outline .arr {
  width: 28px; height: 28px; border: 1.5px solid rgba(255,255,255,0.6); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  transition: border-color .2s;
}

.btn-outline:hover .arr { border-color: var(--gold-bg); }

.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--dark);
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 30px;
}

.about-btn .arr {
  width: 30px; height: 30px; background: var(--gold-bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}

.pc-btn-gold {
  width: 100%;
  background: var(--gold-bg);
  color: #1A223B;
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 30px;
  transition: all 0.3s ease;
}

.pc-btn-gold:hover { background: var(--gold-dark); transform: translateY(-3px); }

.pc-btn-white {
  width: 100%;
  background: #fff;
  color: var(--dark);
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 30px;
  transition: all 0.3s ease;
}

.pc-btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.form-submit {
  width: 100%;
  background: var(--gold-bg);
  color: #1A223B;
  padding: 16px;
  border-radius: 10px;
  border: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}

.view-all-btn .arr {
  width: 26px; height: 26px; background: var(--gold-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}

/* ─── SECTION HELPERS ─── */
section { padding: 90px 60px; }

.section-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-bg);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-tag::before { content: '|'; font-size: 16px; }

.sec-title {
  font-size: 40px;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 20px;
}

.sec-title.light { color: #fff; }
.sec-title.center { text-align: center; width: 100%; }
.sec-tag-center { justify-content: center; }

/* ─── GOLD SECTION HELPERS ─── */
#steps .sec-title,
#families .sec-title,
#timeline .sec-title,
#comparison .sec-title,
#faq .sec-title {
  color: #fff !important;
  text-align: center;
}

#steps .section-tag,
#families .section-tag,
#timeline .section-tag,
#comparison .section-tag,
#faq .section-tag {
  color: rgba(255,255,255,0.7) !important;
  justify-content: center;
}

#partner .sec-title {
  color: #fff !important;
  text-align: left;
}

#partner .section-tag {
  color: rgba(255,255,255,0.7) !important;
  justify-content: flex-start;
}

/* ─── COMPARISON TABLE ─── */
.comp-wrap {
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
}

.comp-table th {
  padding: 24px;
  text-align: left;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: #1A223B;
  background: var(--gold-bg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comp-table td {
  padding: 20px 24px;
  font-size: 14px;
  background: #fff;
  border-bottom: 1px solid #eee;
  color: var(--dark);
}

.comp-table .sg-col {
  background: #fdfaf0;
  font-weight: 700;
  color: var(--gold-dark);
  text-align: center;
}

.comp-table td:not(.sg-col) {
  text-align: center;
}

.comp-table td:first-child {
  text-align: left;
  font-weight: 600;
  background: #fff;
}

.chk {\ color: #2e7d32; font-weight: bold; }
.cross-icon { color: #c62828; font-size: 18px; }

/* ─── QR GRID ─── */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-top: 50px;
}

.qr-img {
  aspect-ratio: 1;
  background: #eee;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.qr-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .qr-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .qr-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── CARDS & GRID ─── */
.fam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fam-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fam-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }

.fam-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.fam-avatar {
  width: 58px; height: 58px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--cream); flex-shrink: 0; background: #eee;
}
.fam-avatar img { width: 100%; height: 100%; object-fit: cover; }

.fam-name { font-family: 'Cinzel', serif; font-size: 16px; font-weight: 700; color: var(--dark); }
.fam-years { font-size: 12px; color: var(--muted); margin-top: 2px; }
.fam-desc { font-size: 13px; color: var(--muted); margin-bottom: 20px; line-height: 1.7; flex-grow: 1; }

.fam-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.fam-candles { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dark); }
.candle-icon {
  width: 35px; height: 35px; background: var(--dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 6px; color: #fff;
}

.visit-btn {
  background: var(--gold-bg);
  color: #000;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

/* ─── FOOTER ─── */
footer {
  background: #0a0a0a;
  padding: 60px 60px 0;
  color: #fff;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}

.footer-brand .logo img { height: 40px; margin-bottom: 20px; }
.footer-brand p { color: #555; font-size: 13.5px; line-height: 1.85; max-width: 280px; }

.footer-col h4 { color: var(--gold-bg); font-size: 15px; font-weight: 600; margin-bottom: 22px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 14px; }
.footer-col ul li a { color: #666; font-size: 14px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold-bg); }

.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-bottom { padding: 22px 0; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: #3a3a3a; font-size: 12.5px; }

.footer-legal { display: flex; align-items: center; gap: 16px; }
.footer-legal a { color: #3a3a3a; font-size: 12.5px; }
.footer-legal a:hover { color: var(--gold-bg); }

/* ─── DASHBOARD (Global) ─── */
.dash-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 280px;
  background: var(--dark); color: #fff; padding: 40px 30px;
}
.dash-nav { list-style: none; margin-top: 50px; }
.dash-nav li { margin-bottom: 15px; }
.dash-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  border-radius: 10px; font-size: 14px; transition: all .2s;
}
.dash-nav a:hover, .dash-nav a.active { background: var(--gold-bg); color: #000; }

/* ─── PARTNER SECTION ─── */
.partner-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.partner-left {
  padding-right: 40px;
}

.partner-steps {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pstep {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  position: relative;
}

.pstep-num {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1A223B;
  background-color: var(--gold-bg);
  opacity: 1;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pstep-line {
  position: absolute;
  left: 20px;
  top: 50px;
  bottom: -30px;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.pstep:last-child .pstep-line {
  display: none;
}

.pstep-body h4 {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pstep-body p {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  line-height: 1.6;
}

.partner-form {
  background: var(--gold-bg);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  color: #1A223B;
}

.partner-form h3 {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  color: #1A223B;
  margin-bottom: 35px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.partner-form .form-submit {
  background: #1A223B;
  color: #fff;
}

.partner-form label {
  color: #1A223B;
  font-weight: 600;
}

.qrcta-white-bg {
  background: #fff;
  padding: 100px 60px;
}

.qrcta-subtext {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  display: block;
  margin-top: 15px;
  letter-spacing: 0.5px;
  text-transform: none;
}

/* ─── TOAST NOTIFICATIONS ─── */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-msg {
  background: var(--dark);
  color: #fff;
  padding: 16px 28px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 4px solid var(--gold-bg);
}

.toast-msg.show { transform: translateX(0); }
.toast-msg.error { border-left-color: #ff4444; }
.toast-msg.success { border-left-color: #00c851; }

/* ─── AUTH PAGES (LOGIN/SIGNUP) ─── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 10% 10%, rgba(196, 160, 40, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 90% 90%, rgba(196, 160, 40, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.auth-card-custom {
  background: #fff;
  width: 100%;
  max-width: 450px;
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
  position: relative;
  z-index: 2;
  text-align: center;
}

.auth-logo-custom {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 35px;
  text-decoration: none;
}

.auth-logo-custom img {
  height: 38px;
}

.auth-logo-custom span {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 1px;
}

.auth-title-custom {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 10px;
}

.auth-subtitle-custom {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 35px;
}

.auth-social-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid #eee;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.3s;
  background: #fff;
}

.auth-social-btn:hover {
  border-color: var(--gold-bg);
  background: #fdfaf0;
}

.auth-social-btn img {
  width: 20px;
  height: 20px;
}

.auth-divider-custom {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  color: #bbb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-divider-custom::before,
.auth-divider-custom::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}

.auth-input-group {
  text-align: left;
  margin-bottom: 20px;
}

.auth-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-input-group input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1.5px solid #eee;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.auth-input-group input:focus {
  border-color: var(--gold-bg);
  box-shadow: 0 0 0 4px rgba(196, 160, 40, 0.1);
}

.auth-btn-submit {
  width: 100%;
  background: var(--dark);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.auth-btn-submit:hover {
  background: var(--gold-bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(196, 160, 40, 0.2);
}

.auth-links-custom {
  margin-top: 30px;
  font-size: 14px;
}

.auth-links-custom p {
  margin-bottom: 8px;
}

.auth-links-custom a {
  color: var(--gold-dark);
  font-weight: 700;
}

.auth-links-custom a:hover {
  text-decoration: underline;
}

/* ─── DASHBOARD UI ─── */
.dashboard-body {
  background: #f8f6f0;
  display: flex;
}

.dash-sidebar {
  width: 280px;
  background: var(--dark);
  min-height: 100vh;
  padding: 40px 25px;
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
}

.dash-sidebar h2 {
  color: var(--gold-bg);
  font-family: 'Cinzel', serif;
  font-size: 18px;
  margin-bottom: 40px;
  padding-left: 15px;
  letter-spacing: 1px;
}

.dash-sidebar .nav-item {
  display: block;
  padding: 14px 20px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.3s;
}

.dash-sidebar .nav-item:hover,
.dash-sidebar .nav-item.active {
  background: rgba(196, 160, 40, 0.15);
  color: var(--gold-bg);
}

.dash-sidebar button.nav-item {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
}

.dash-main-content {
  flex: 1;
  margin-left: 280px;
  padding: 40px 60px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.dash-header h1 {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  color: var(--dark);
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

.dash-stat-card {
  background: #fff;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border: 1px solid #f0f0f0;
}

.dash-stat-num {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.dash-stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.dash-section-card {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.dash-section-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  margin-bottom: 35px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 15px;
}

.dash-section-card h3::after {
  content: '';
  height: 1px;
  background: #eee;
  flex: 1;
}

.dash-mem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.dash-mem-card {
  background: #fdfaf0;
  border-radius: 18px;
  padding: 25px;
  border: 1.5px solid #f0eee4;
  transition: all 0.3s;
}

.dash-mem-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-bg);
  box-shadow: 0 15px 35px rgba(196, 160, 40, 0.1);
}

.dash-mem-photo {
  width: 70px;
  height: 70px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--card-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 24px;
  color: var(--gold-bg);
}

.dash-mem-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-mem-name {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.dash-mem-dates {
  font-size: 13px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 15px;
}

.dash-mem-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.dash-btn-sm {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.dash-btn-view {
  background: var(--gold-bg);
  color: #fff;
}

.dash-btn-edit {
  background: var(--dark);
  color: #fff;
}

.dash-btn-sm:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

@media (max-width: 1200px) {
  .dash-mem-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .dash-sidebar { display: none; }
  .dash-main-content { margin-left: 0; padding: 30px 20px; }
  .dash-mem-grid { grid-template-columns: 1fr; }
  .dash-stats-grid { grid-template-columns: 1fr; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  nav { padding: 15px 30px; }
  section { padding: 70px 30px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .fam-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { position: relative; width: 100%; left: 0; right: 0; border-radius: 0; top: 0; flex-direction: column; padding: 16px 20px; background: rgb(0 0 0 / 95%); }
  .menu-toggle-label { display: block; position: absolute; top: 16px; right: 20px; z-index: 101; }
  .nav-links { display: none; flex-direction: column; gap: 20px; position: absolute; top: 100%; left: 0; right: 0; background: rgb(0 0 0 / 95%); padding: 20px; z-index: 100; }
  .menu-toggle-checkbox:checked ~ .nav-links { display: flex; }
  .nav-actions { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .fam-grid { grid-template-columns: 1fr; }
}

/* ─── MEMORIAL PROFILE (VIEW) ─── */
.mem-profile-hero {
  background: var(--dark);
  padding: 140px 60px 80px;
  position: relative;
  overflow: hidden;
}

.mem-profile-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(196, 160, 40, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.mem-profile-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-bottom: 40px;
  transition: color 0.3s;
}

.mem-profile-back:hover { color: var(--gold-bg); }

.mem-profile-header {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.mem-profile-photo-wrap {
  width: 220px;
  height: 220px;
  position: relative;
  flex-shrink: 0;
}

.mem-profile-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: var(--card-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 64px;
  color: var(--gold-bg);
  object-fit: cover;
  border: 1px solid rgba(196, 160, 40, 0.3);
}

.mem-profile-ring {
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  border: 1px solid rgba(196, 160, 40, 0.2);
  border-radius: 15px;
  pointer-events: none;
}

.mem-profile-info {
  flex: 1;
  min-width: 300px;
}

.mem-profile-name {
  font-family: 'Cinzel', serif;
  font-size: 42px;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.1;
}

.mem-profile-dates {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--gold-bg);
  font-weight: 500;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.mem-profile-epitaph {
  font-family: 'Cinzel', serif;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  margin: 20px 0;
  max-width: 600px;
  line-height: 1.6;
}

.mem-profile-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

.mem-profile-candle-count {
  font-size: 13px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mem-profile-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 50px;
  padding: 80px 60px;
  background: var(--cream);
}

.mem-profile-section {
  background: #fff;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  margin-bottom: 35px;
}

.mem-profile-sec-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  letter-spacing: 1px;
}

.mem-profile-bio {
  line-height: 1.8;
  color: #444;
  font-size: 15px;
}

/* ─── CANDLE ANIMATION ─── */
.mem-candles-display {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  height: 120px;
  margin-bottom: 30px;
}

.mem-candle {
  width: 24px;
  background: #f0f0f0;
  position: relative;
  border-radius: 4px 4px 0 0;
}

.mem-candle-flame {
  position: absolute;
  top: -25px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 24px;
  background: radial-gradient(ellipse at bottom, #ffeb3b 0%, #ff9800 100%);
  border-radius: 50% 50% 20% 20%;
  box-shadow: 0 0 15px #ff9800;
  animation: mem-flicker 1.5s infinite ease-in-out;
}

@keyframes mem-flicker {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  50% { transform: translateX(-50%) scale(1.1) rotate(2deg); opacity: 1; }
}

/* ─── STICKER GRID ─── */
.mem-sticker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mem-sticker-item {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.mem-sticker-item:hover, .mem-sticker-item.active {
  border-color: var(--gold-bg);
  background: #fdfaf0;
}

.mem-sticker-emoji { font-size: 20px; display: block; margin-bottom: 4px; }
.mem-sticker-name { font-size: 10px; color: var(--muted); display: block; }
.mem-sticker-price { font-size: 11px; color: var(--gold-dark); font-weight: 700; }

@media (max-width: 1100px) {
  .mem-profile-body { grid-template-columns: 1fr; padding: 60px 20px; }
  .mem-profile-hero { padding: 120px 20px 60px; }
  .mem-profile-header { align-items: center; text-align: center; }
  .mem-profile-photo-wrap { margin: 0 auto; }
}

/* ═══════════════════════════════════════════════════════════════
   CREATE / EDIT MEMORIAL — STEP FORM  (Light Cream Theme)
═══════════════════════════════════════════════════════════════ */

/* Page wrapper */
#page-create {
  background: var(--cream);
  min-height: 100vh;
}

/* Create hero */
.create-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  padding: 0 20px;
}
.create-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 42px;
  color: var(--dark);
  margin-bottom: 14px;
}
.create-hero h1 em { color: var(--gold-bg); font-style: italic; }
.create-hero p { font-size: 16px; color: var(--muted); line-height: 1.7; }

/* Section divider */
.section-divider { display: flex; align-items: center; gap: 12px; }
.divider-line { flex: 1; height: 1px; background: #e5e2d8; }
.divider-line.right { }
.divider-ornament { font-size: 14px; color: var(--gold-bg); flex-shrink: 0; }

/* ── STEPS BAR ── */
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 680px;
  margin: 0 auto 44px;
  padding: 0 20px;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity .2s;
  min-width: 72px;
}
.step-item.active, .step-item.done { opacity: 1; }
.step-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 14px; font-weight: 700;
  color: var(--muted);
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.step-item.active .step-circle {
  border-color: var(--gold-bg);
  background: var(--gold-bg);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,193,4,0.35);
}
.step-item.done .step-circle {
  border-color: var(--gold-dark);
  background: var(--gold-dark);
  color: #fff;
}
.step-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  transition: color .2s;
}
.step-item.active .step-label { color: var(--gold-bg); }
.step-item.done  .step-label { color: var(--gold-dark); }
.step-connector {
  flex: 1;
  height: 2px;
  background: #e5e2d8;
  margin: 0 6px 24px;
  min-width: 30px;
  transition: background .25s;
}
.step-connector.done { background: var(--gold-bg); }

/* ── FORM STEP VISIBILITY ── */
.form-step { display: none; }
.form-step.active { display: block; }

/* ── FORM CONTAINER ── */
.create-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ── FORM CARDS ── */
.form-card {
  background: #fff;
  border-radius: 18px;
  padding: 36px 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  border: 1px solid #f0ede3;
  margin-bottom: 24px;
}
.form-card-title {
  font-family: 'Cinzel', serif;
  font-size: 15px; font-weight: 700;
  color: var(--dark);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

/* ── FORM INPUTS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.form-label {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--dark);
}
.form-label span {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  margin-left: 4px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e8e5dc;
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--dark);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-bg);
  box-shadow: 0 0 0 4px rgba(255,193,4,0.09);
}
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-select { cursor: pointer; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row.single  { grid-template-columns: 1fr; }
.form-row.triple  { grid-template-columns: 1fr 1fr 1fr; }
.char-counter { text-align: right; font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── FORM NAV ── */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 8px;
}
.form-nav-hint {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  flex: 1;
  text-align: center;
}

/* ── CREATE/EDIT FORM BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--gold-bg);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,193,4,0.25);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--dark);
  padding: 13px 24px;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 1.5px solid #ccc;
  transition: all .2s;
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: var(--gold-bg);
  color: var(--gold-bg);
}

/* ── PHOTO UPLOAD ── */
.photo-upload-area {
  border: 2px dashed #e0ddd3;
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #fdfaf4;
  position: relative;
  overflow: hidden;
}
.photo-upload-area:hover {
  border-color: var(--gold-bg);
  background: #fdf8ea;
}
.photo-upload-area input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.upload-icon { font-size: 32px; display: block; margin-bottom: 10px; }
.upload-text { font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.upload-hint { font-size: 12px; color: var(--muted); }
.photo-preview-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ── PLAN CARDS ── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.plan-card {
  background: #fdfaf4;
  border: 2px solid #f0ede3;
  border-radius: 14px;
  padding: 24px 18px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.plan-card:hover { border-color: var(--gold-bg); transform: translateY(-2px); }
.plan-card.selected {
  border-color: var(--gold-bg);
  background: #fdf8ea;
  box-shadow: 0 0 0 3px rgba(255,193,4,0.12);
}
.plan-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.plan-name { font-family: 'Cinzel', serif; font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.plan-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.plan-price { font-family: 'Cinzel', serif; font-size: 22px; font-weight: 700; color: var(--gold-bg); }
.plan-price span { font-size: 12px; font-weight: 400; color: var(--muted); }

/* ── TOGGLE ROWS ── */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
}
.toggle-row:last-of-type { border-bottom: none; }
.toggle-info { flex: 1; }
.toggle-label { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.toggle-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.toggle-switch {
  width: 46px; height: 26px;
  background: #ddd;
  border-radius: 13px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch.on { background: var(--gold-bg); }
.toggle-switch.on::after { transform: translateX(20px); }

/* ── REVIEW ── */
.review-section { }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-item {
  background: #fdfaf4;
  border-radius: 10px;
  padding: 16px 20px;
  border: 1px solid #f0ede3;
}
.review-key {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.review-val {
  font-family: 'Cinzel', serif;
  font-size: 15px; font-weight: 600;
  color: var(--dark);
}

/* Block title */
.block-title {
  font-family: 'Cinzel', serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── SUCCESS SCREEN ── */
.success-screen {
  text-align: center;
  padding: 60px 20px;
  max-width: 620px;
  margin: 0 auto;
}
.success-candles {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 20px; margin-bottom: 30px; height: 110px;
}
.candle { display: flex; flex-direction: column; align-items: center; }
.candle-body {
  width: 16px;
  background: linear-gradient(180deg, #f5e6c8 0%, #e8c87a 100%);
  border-radius: 3px 3px 0 0;
}
.candle-wax { width: 22px; height: 6px; background: #e8d4a0; border-radius: 50%; }
.candle-glow {
  width: 30px; height: 10px;
  background: radial-gradient(ellipse, rgba(255,200,50,0.4), transparent);
  border-radius: 50%; margin-bottom: -4px;
}
.candle-flame {
  width: 12px; height: 28px;
  background: radial-gradient(ellipse at bottom, #ffeb3b 0%, #ff9800 60%, transparent 100%);
  border-radius: 50% 50% 20% 20%;
  animation: flicker 1.5s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%       { transform: scale(1.07) rotate(2deg); opacity: 1; }
}
.success-title { font-family: 'Cinzel', serif; font-size: 38px; color: var(--dark); margin-bottom: 18px; }
.success-title em { color: var(--gold-bg); font-style: italic; }
.success-subtitle { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 30px; }
.success-url {
  background: #fdfaf4; border: 1px solid #f0ede3;
  border-radius: 10px; padding: 14px 20px;
  font-size: 14px; color: var(--dark);
  margin-bottom: 30px; display: inline-block;
}
.success-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}

/* ── LOADER ── */
.loader {
  width: 28px; height: 28px;
  border: 3px solid rgba(255,193,4,0.8);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── AUTH MODAL PANE ── */
.auth-pane { }
.field-error { font-size: 12px; color: var(--error); margin-top: 6px; }

/* ── DASHBOARD EDIT FORM ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.topbar h1 {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  color: var(--dark);
}
.dash-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 36px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.05);
  border: 1px solid #f0ede3;
  margin-bottom: 24px;
}
.dash-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 16px; font-weight: 700;
  color: var(--dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.dash-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark); color: #fff;
  padding: 13px 26px; border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer; border: none;
  transition: all .2s; white-space: nowrap;
}
.dash-primary:hover {
  background: var(--gold-bg);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,193,4,0.25);
}
.dash-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--dark);
  padding: 12px 22px; border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer; border: 1.5px solid #ccc;
  transition: all .2s; white-space: nowrap;
  text-decoration: none;
}
.dash-secondary:hover { border-color: var(--gold-bg); color: var(--gold-bg); }

/* ── RESPONSIVE: FORM ── */
@media (max-width: 768px) {
  .form-card, .dash-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row.triple { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .steps-bar { gap: 0; }
  .step-connector { min-width: 14px; }
  .step-label { display: none; }
  .create-hero h1 { font-size: 28px; }
  .form-nav { flex-wrap: wrap; }
}
