/* =========================================================
   KEVIN & NIKI — styles
   ========================================================= */
:root {
  --pink:        #ff5e8a;
  --pink-deep:   #e23b6d;
  --rose:        #ff8fab;
  --blush:       #ffe3ec;
  --cream:       #fff5f7;
  --plum:        #5b2336;
  --ink:         #4a2230;
  --white:       #ffffff;
  --shadow:      0 12px 40px rgba(226, 59, 109, 0.18);
  --shadow-sm:   0 6px 18px rgba(226, 59, 109, 0.14);
  --radius:      24px;
  --radius-sm:   16px;
  --maxw:        1120px;
  --font-script: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:   "Quicksand", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* ---------- Icons ---------- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
  flex-shrink: 0;
  color: inherit;
}
.icon--accent { color: var(--pink); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(160deg, var(--cream) 0%, var(--blush) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Floating hearts background ---------- */
.hearts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.heart-float {
  position: absolute;
  bottom: -40px;
  width: 22px;
  height: 22px;
  opacity: 0;
  animation: floatUp linear forwards;
  will-change: transform, opacity;
}
.heart-float .icon { width: 100%; height: 100%; vertical-align: top; }
@keyframes floatUp {
  0%   { transform: translateY(0) scale(0.6) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(-110vh) scale(1.1) rotate(40deg); opacity: 0; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(255, 245, 247, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s, background .3s;
}
.nav--scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 245, 247, 0.92); }
.nav__brand {
  font-family: var(--font-script);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pink-deep);
  text-decoration: none;
  letter-spacing: 1px;
}
.nav__amp { color: var(--rose); }
.nav__links { display: flex; gap: clamp(8px, 2vw, 26px); }
.nav__links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 2px;
  transition: color .2s;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--pink); border-radius: 2px;
  transition: width .25s;
}
.nav__links a:hover { color: var(--pink-deep); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 3px; border-radius: 3px; background: var(--pink-deep);
  transition: transform .3s, opacity .3s;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.btn .icon { width: 1.05em; height: 1.05em; vertical-align: -0.1em; }
.btn:active { transform: scale(0.96); }
.btn--primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255,255,255,0.7);
  color: var(--pink-deep);
  border: 2px solid var(--rose);
}
.btn--ghost:hover { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 20px 40px;
}
.hero__inner { max-width: 760px; animation: rise .9s ease both; }
.hero__pretext {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pink-deep);
  opacity: 0.8;
}
.hero__title {
  font-family: var(--font-script);
  font-style: italic;
  font-size: clamp(3.2rem, 13vw, 7rem);
  font-weight: 600;
  line-height: 1.02;
  color: var(--plum);
  margin: 8px 0 10px;
}
.hero__title .amp { color: var(--pink); font-style: normal; }
.hero__tagline {
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  color: var(--ink);
  margin-bottom: 28px;
}

/* counter */
.counter {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2.5vw, 18px);
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.counter__box {
  background: rgba(255,255,255,0.75);
  border-radius: var(--radius-sm);
  padding: 14px clamp(10px, 3vw, 22px);
  min-width: 74px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}
.counter__num {
  display: block;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--pink-deep);
  line-height: 1;
}
.counter__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink);
  opacity: 0.7;
}
.counter__sub {
  margin: 14px 0 28px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  opacity: 0.75;
}
.hero__cta { margin-top: 4px; }
.hero__scroll {
  position: absolute;
  bottom: 22px;
  display: flex;
  color: var(--pink-deep);
  animation: bounce 1.8s infinite;
}
.hero__scroll .icon { width: 34px; height: 34px; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }
@keyframes rise { from{opacity:0; transform:translateY(26px)} to{opacity:1; transform:translateY(0)} }

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 100px) clamp(18px, 5vw, 40px);
}
.section--soft {
  max-width: none;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
}
.section--soft > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 6px;
}
.section__title {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  color: var(--plum);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.1;
}
.section__sub {
  text-align: center;
  font-size: 1.02rem;
  opacity: 0.8;
  margin: -18px auto 34px;
  max-width: 520px;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Countdowns ---------- */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.countdown-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--blush);
  transition: transform .2s, box-shadow .2s;
}
.countdown-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.countdown-card__icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), #fff);
  color: var(--pink);
  box-shadow: inset 0 0 0 1px rgba(255,143,171,0.4);
}
.countdown-card__icon .icon { width: 28px; height: 28px; }
.countdown-card__title { font-weight: 700; margin: 6px 0 12px; color: var(--plum); }
.countdown-card__days { font-size: 2.8rem; font-weight: 700; color: var(--pink-deep); line-height: 1; }
.countdown-card__days--today { font-family: var(--font-script); font-style: italic; }
.countdown-card__unit { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.7; }
.countdown-card__date { font-size: 0.85rem; opacity: 0.6; margin-top: 8px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(var(--rose), var(--blush)); border-radius: 3px;
}
.timeline__item { position: relative; padding: 0 0 30px 58px; }
.timeline__item::before {
  content: ""; position: absolute; left: 13px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 0 4px var(--cream);
}
.timeline__date { font-weight: 700; color: var(--pink-deep); font-size: 0.9rem; }
.timeline__card {
  background: #fff; border-radius: var(--radius-sm); padding: 16px 20px;
  box-shadow: var(--shadow-sm); margin-top: 6px;
}
.timeline__card h3 { color: var(--plum); margin-bottom: 4px; }

/* ---------- Gallery ---------- */
.album-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  padding: 4px clamp(2px, 4vw, 4px) 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: flex-start;
}
.album-tabs::-webkit-scrollbar { display: none; }
/* center the row when the tabs fit without scrolling */
@media (min-width: 700px) { .album-tabs { justify-content: center; flex-wrap: wrap; } }
.album-tab {
  flex: 0 0 auto;
  scroll-snap-align: center;
  border: 1.5px solid var(--rose);
  background: rgba(255,255,255,0.7);
  color: var(--pink-deep); font-weight: 700; font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.album-tab:active { transform: scale(0.95); }
.album-tab.is-active {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff; border-color: transparent; box-shadow: var(--shadow-sm);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.gallery-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; box-shadow: var(--shadow-sm); aspect-ratio: 1 / 1;
  background: var(--blush);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(91,35,54,0.18));
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item--ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--rose), var(--pink-deep));
  filter: hue-rotate(var(--ph-rot, 0deg));
}
.gallery-item--ph::after { display: none; }
.gallery-item__phicon { display: flex; }
.gallery-item__phicon .icon { width: 38px; height: 38px; color: rgba(255,255,255,0.85); filter: hue-rotate(calc(-1 * var(--ph-rot, 0deg))); }
.gallery-item--ph:hover { transform: translateY(-3px); }
.gallery__empty {
  grid-column: 1 / -1; text-align: center; opacity: 0.65;
  padding: 30px 10px; font-size: 1rem;
}

/* ---------- Reasons ---------- */
.reason-card {
  max-width: 560px; margin: 0 auto 24px;
  background: #fff; border-radius: var(--radius);
  padding: 40px 30px; box-shadow: var(--shadow);
  border: 3px solid var(--blush); text-align: center;
  min-height: 150px; display: flex; align-items: center; justify-content: center;
}
.reason-card__text { font-size: clamp(1.2rem, 3.5vw, 1.6rem); font-family: var(--font-script); color: var(--plum); }
.reason-card.pop { animation: pop .4s ease; }
@keyframes pop { 0%{transform:scale(.9); opacity:.4} 100%{transform:scale(1); opacity:1} }
#reasonBtn { display: block; margin: 0 auto; }

/* ---------- Bucket list ---------- */
.bucket { max-width: 620px; margin: 0 auto 20px; }
.bucket__item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--radius-sm); padding: 14px 18px;
  margin-bottom: 10px; box-shadow: var(--shadow-sm); transition: opacity .2s;
}
.bucket__item input { width: 22px; height: 22px; accent-color: var(--pink); cursor: pointer; flex-shrink: 0; }
.bucket__item label { flex: 1; cursor: pointer; font-weight: 500; }
.bucket__item.done label { text-decoration: line-through; opacity: 0.55; }
.bucket__del { background:none; border:none; cursor:pointer; font-size:1.1rem; opacity:0.5; transition:opacity .2s; }
.bucket__del:hover { opacity: 1; }
.bucket__add { display: flex; gap: 10px; max-width: 620px; margin: 0 auto 22px; }
.bucket__add input {
  flex: 1; border: 2px solid var(--rose); border-radius: 999px;
  padding: 12px 20px; font-family: var(--font-body); font-size: 1rem; outline: none;
  background: rgba(255,255,255,0.8);
}
.bucket__add input:focus { border-color: var(--pink); }
#dateSpinBtn { display: block; margin: 0 auto; }
.date-idea {
  text-align: center; font-family: var(--font-script);
  font-size: 1.5rem; color: var(--pink-deep); margin-top: 18px; min-height: 30px;
}
.date-idea.show { animation: pop .4s ease; }

/* ---------- Open When letters ---------- */
.letters-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px;
}
.letter {
  background: #fff; border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-sm); cursor: pointer; text-align: center;
  border: 2px dashed var(--rose); transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.letter:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.letter__emoji { font-size: 2.4rem; }
.letter__when { font-weight: 700; color: var(--plum); margin: 8px 0; }
.letter__hint { font-size: 0.82rem; opacity: 0.6; }
.letter__msg {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .45s ease, opacity .35s ease, margin .35s;
  font-style: italic; color: var(--ink); margin: 0;
}
.letter.open { border-style: solid; border-color: var(--pink); }
.letter.open .letter__msg { max-height: 240px; opacity: 1; margin-top: 14px; }
.letter.open .letter__hint { display: none; }

/* ---------- Love notes ---------- */
.notes__form { max-width: 600px; margin: 0 auto 30px; }
.notes__form textarea {
  width: 100%; border: 2px solid var(--rose); border-radius: var(--radius-sm);
  padding: 14px 18px; font-family: var(--font-body); font-size: 1rem; resize: vertical; outline: none;
  background: rgba(255,255,255,0.85);
}
.notes__form textarea:focus { border-color: var(--pink); }
.notes__form-row { display: flex; gap: 10px; margin-top: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.notes__form-row select {
  border: 2px solid var(--rose); border-radius: 999px; padding: 10px 16px;
  font-family: var(--font-body); font-weight: 600; color: var(--pink-deep); background: #fff; cursor: pointer; outline: none;
}
.notes__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.note {
  background: #fff; border-radius: var(--radius-sm); padding: 18px;
  box-shadow: var(--shadow-sm); position: relative;
  border-left: 5px solid var(--pink);
}
.note--niki { border-left-color: var(--rose); }
.note__text { font-size: 1rem; margin-bottom: 10px; word-break: break-word; }
.note__meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; opacity: 0.65; }
.note__author { font-weight: 700; color: var(--pink-deep); }
.note__del { background:none; border:none; cursor:pointer; display:inline-flex; color: var(--pink-deep); opacity:0.45; transition: opacity .2s; }
.note__del .icon { width: 16px; height: 16px; }
.note__del:hover { opacity: 1; }
.notes__empty { text-align:center; opacity:0.6; grid-column: 1/-1; }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 1; text-align: center;
  padding: 50px 20px calc(40px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(255,143,171,0.25), transparent);
}
.footer__hug {
  background: linear-gradient(135deg, var(--rose), var(--pink));
  color: #fff; border: none; border-radius: 999px; padding: 14px 32px;
  font-family: var(--font-body); font-weight: 700; font-size: 1.05rem;
  cursor: pointer; box-shadow: var(--shadow-sm); margin-bottom: 24px;
  transition: transform .15s, box-shadow .2s;
  display: inline-flex; align-items: center; gap: 9px;
}
.footer__hug .icon { width: 1.15em; height: 1.15em; }
.footer__hug:hover { box-shadow: var(--shadow); }
.footer__hug:active { transform: scale(0.94); }
.footer__text {
  font-family: var(--font-script); font-style: italic;
  font-size: 1.7rem; color: var(--plum);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.footer__text .icon { width: 0.95em; height: 0.95em; vertical-align: -0.1em; }
.footer__small { opacity: 0.6; font-size: 0.9rem; margin-top: 4px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(50, 15, 28, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; animation: fade .25s ease; }
@keyframes fade { from{opacity:0} to{opacity:1} }
.lightbox__figure { max-width: 90vw; max-height: 86vh; text-align: center; margin: 0; }
.lightbox__figure img { max-width: 100%; max-height: 78vh; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lightbox__figure figcaption { color: #fff; margin-top: 14px; font-size: 1.1rem; font-family: var(--font-script); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,0.15); color: #fff;
  border: none; cursor: pointer; border-radius: 50%;
  width: 52px; height: 52px; transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close .icon, .lightbox__nav .icon { width: 26px; height: 26px; }
.lightbox__figure figcaption { font-style: italic; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.3); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---------- Manage photos button + modal ---------- */
.footer__manage {
  margin-top: 24px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--rose);
  color: var(--pink-deep);
  font-family: var(--font-body); font-weight: 600; font-size: 0.85rem;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; opacity: 0.75;
  transition: opacity .2s, background .2s;
  display: inline-flex; align-items: center; gap: 7px;
}
.footer__manage .icon { width: 0.95em; height: 0.95em; }
.footer__manage:hover { opacity: 1; background: #fff; }

.admin {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(50, 15, 28, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}
.admin.open { display: block; animation: fade .25s ease; }
.admin__panel {
  position: relative; width: 100%; max-width: 560px;
  margin: 0 auto;
  background: var(--cream); border-radius: var(--radius);
  padding: 30px clamp(18px, 4vw, 34px); box-shadow: var(--shadow);
}
.admin__close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; line-height: 1;
  color: var(--plum); cursor: pointer; opacity: 0.6;
  display: inline-flex;
}
.admin__close .icon { width: 22px; height: 22px; }
.admin__close:hover { opacity: 1; }
.admin__title { font-family: var(--font-script); font-style: italic; font-size: 2.2rem; color: var(--plum); margin-bottom: 16px; text-align: center; }
.admin__sub { color: var(--plum); margin: 22px 0 12px; }
.admin__hint { opacity: 0.8; margin-bottom: 14px; text-align: center; }
.admin__err { color: var(--pink-deep); font-weight: 600; margin-top: 10px; min-height: 20px; text-align: center; }

#adminLogin { text-align: center; }
.admin input[type="password"],
.admin__field input {
  width: 100%; border: 2px solid var(--rose); border-radius: var(--radius-sm);
  padding: 12px 16px; font-family: var(--font-body); font-size: 1rem; outline: none;
  background: #fff; margin-bottom: 12px;
}
.admin input:focus { border-color: var(--pink); }
#adminLogin .btn { width: 100%; }

.admin__field { display: block; font-weight: 600; color: var(--plum); font-size: 0.9rem; margin-bottom: 8px; }
.admin__field input { margin-top: 6px; font-weight: 400; }

.admin__drop {
  display: block; text-align: center; cursor: pointer;
  border: 2px dashed var(--rose); border-radius: var(--radius-sm);
  padding: 26px 16px; color: var(--pink-deep); font-weight: 600;
  background: rgba(255,255,255,0.6); transition: background .2s, border-color .2s;
}
.admin__drop small { font-weight: 400; opacity: 0.7; }
.admin__drop-icon { width: 40px; height: 40px; display: block; margin: 0 auto 8px; color: var(--rose); }
.admin__drop:hover, .admin__drop.drag { background: #fff; border-color: var(--pink); }

.admin__progress { margin-top: 10px; }
.admin__prow { font-size: 0.85rem; padding: 4px 0; opacity: 0.85; }
.admin__prow.ok { color: #2e9c5a; }
.admin__prow.err { color: var(--pink-deep); }

.admin__album-group { margin-bottom: 20px; }
.admin__album-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 8px; }
.admin__album-name { font-weight: 700; color: var(--plum); }
.admin__album-name small { opacity: 0.55; font-weight: 600; }
.admin__album-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin__act {
  background: rgba(255,255,255,0.7); border: 1px solid var(--rose); color: var(--pink-deep);
  border-radius: 999px; padding: 5px 12px; font-family: var(--font-body);
  font-weight: 700; font-size: 0.78rem; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s;
}
.admin__act:hover { background: #fff; }
.admin__act--danger { border-color: #e7a; color: var(--pink-deep); }
.admin__act--danger:hover { background: var(--pink-deep); color: #fff; border-color: var(--pink-deep); }
.admin__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.admin__cap {
  position: absolute; left: 0; right: 0; bottom: 30px;
  background: linear-gradient(transparent, rgba(91,35,54,0.85));
  color: #fff; font-size: 0.72rem; padding: 16px 8px 6px; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin__cap em { opacity: 0.7; }
.admin__edit {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px;
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.9); color: var(--pink-deep); box-shadow: var(--shadow-sm);
}
.admin__edit .icon { width: 15px; height: 15px; }
.admin__edit:hover { background: #fff; }
.admin__empty { opacity: 0.6; grid-column: 1/-1; text-align: center; padding: 14px; }
.admin__cell { position: relative; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 1/1; background: var(--blush); }
.admin__cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin__album {
  position: absolute; top: 6px; left: 6px; font-size: 0.68rem; font-weight: 700;
  background: rgba(255,255,255,0.85); color: var(--pink-deep); padding: 2px 8px; border-radius: 999px;
}
.admin__del {
  position: absolute; bottom: 0; left: 0; right: 0; border: none; cursor: pointer;
  background: rgba(226,59,109,0.9); color: #fff; font-family: var(--font-body);
  font-weight: 700; font-size: 0.8rem; padding: 6px; opacity: 0; transition: opacity .2s;
}
.admin__cell:hover .admin__del { opacity: 1; }
@media (hover: none) { .admin__del { opacity: 1; } }

/* floating hug heart */
.hug-heart {
  position: fixed; z-index: 200; width: 30px; height: 30px; pointer-events: none;
  animation: hugRise 2.2s ease-out forwards;
}
.hug-heart .icon { width: 100%; height: 100%; }
@keyframes hugRise {
  0% { transform: translateY(0) scale(0.5); opacity: 1; }
  100% { transform: translateY(-70vh) scale(1.6); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: center; gap: 0;
    background: rgba(255, 245, 247, 0.98);
    backdrop-filter: blur(12px);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav__links.open { max-height: 420px; box-shadow: var(--shadow-sm); }
  .nav__links a { padding: 16px; width: 100%; text-align: center; border-top: 1px solid var(--blush); }
  .nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* denser, predictable 2-up photo grid on phones */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .section { padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
