/* Moments page specific overrides */

.moments-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f9fbfb 0%, #f3f7f8 100%);
}

.moments-page .mp-hero {
  position: relative;
  min-height: 62vh;
  background-image: linear-gradient(110deg, rgba(9,30,34,.86) 0%, rgba(22,83,91,.60) 62%, rgba(22,83,91,.42) 100%), url('../images/home.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  padding: 132px 42px 72px;
  overflow: hidden;
}

.moments-page .mp-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(to top, rgba(243,247,248,1) 0%, rgba(243,247,248,0) 100%);
}

.moments-page .mp-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.moments-page .mp-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  width: min(760px, 100%);
  text-align: left;
  margin: 0;
}

.moments-page .mp-hero-pre {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--sand) !important;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-shadow: 0 6px 22px rgba(0,0,0,.30);
  margin: 0 0 8px;
}

/* Override shared section-pre center styling for moments hero */
.moments-page .mp-hero-pre::before {
  display: none;
}

.moments-page .mp-hero-pre::after {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ocean-teal);
}

.moments-page .mp-hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 600;
  color: #fff;
  line-height: .98;
  margin: 14px 0 18px;
  text-shadow: 0 10px 34px rgba(0,0,0,.35);
}

.moments-page .mp-hero-content h1 em {
  color: #39d7ee;
  font-style: italic;
  font-weight: 700;
  text-shadow: 0 12px 28px rgba(0,0,0,.36);
}

.moments-page .mp-hero-content p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,.97);
  max-width: 620px;
  margin: 0 0 30px;
  text-shadow: 0 6px 18px rgba(0,0,0,.30);
}

.moments-page .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.42);
  background: linear-gradient(135deg, #1e6d76 0%, #2f95a0 100%);
  font-weight: 700;
  letter-spacing: .04em;
  padding: 12px 28px;
  box-shadow: 0 10px 26px rgba(10,47,52,.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.moments-page .btn-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,.55);
  background: linear-gradient(135deg, #257f8a 0%, #3aabb8 100%);
  transform: translateY(-1px);
}

.moments-page .btn-ghost i {
  color: #fff;
  margin-right: 2px;
}

.moments-page .btn-ghost:focus-visible {
  outline: 3px solid rgba(255,255,255,.38);
  outline-offset: 2px;
}

.moments-page .mp-gallery-section {
  flex: 1;
  width: 100%;
  padding: 28px 30px 100px;
}

.mp-gallery-head {
  max-width: 1400px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
}

.mp-gallery-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  color: #1a5d66;
  line-height: 1.05;
}

.mp-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mp-filter-btn {
  border: 1.5px solid #d3e1e5;
  border-radius: 999px;
  padding: 8px 15px;
  background: #fff;
  color: #3e5964;
  font-family: 'Jost', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  box-shadow: 0 4px 14px rgba(20,72,80,.08);
}

.mp-filter-btn:hover {
  transform: translateY(-1px);
  border-color: var(--ocean-teal);
  color: var(--deep-teal);
}

.mp-filter-btn.active {
  background: linear-gradient(135deg, #1f6f78 0%, #2d8f98 100%);
  border-color: transparent;
  color: #fff;
}

.mp-result-count {
  grid-column: 1 / -1;
  font-size: .86rem;
  color: #5d7480;
}

.moments-page .mp-gallery-wrap {
  max-width: 1400px;
  margin: 0 auto;
}

.moments-page .mp-masonry {
  columns: 4;
  column-gap: 18px;
}

.moments-page .moments-item {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18,72,79,.14);
  border: 1px solid rgba(255,255,255,.92);
}

.moments-page .moments-item img {
  filter: saturate(1.04) contrast(1.03);
}

.moments-page .moments-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(18,72,79,.22);
}

.moments-page .moments-caption {
  font-size: .8rem;
  padding: 30px 14px 12px;
}

.moments-page .mp-quote-card {
  break-inside: avoid;
  margin: 10px 0 24px;
  border-radius: 18px;
  background: #ffffff;
  padding: 36px 34px;
  box-shadow: 0 12px 30px rgba(16,66,73,.12);
  border: 1px solid rgba(31,111,120,.14);
  column-span: all;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.moments-page .mp-quote-card::before,
.moments-page .mp-quote-card::after {
  content: '';
  position: absolute;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, rgba(31,111,120,0) 0%, rgba(31,111,120,.35) 50%, rgba(31,111,120,0) 100%);
}

.moments-page .mp-quote-card::before { top: 16px; }
.moments-page .mp-quote-card::after  { bottom: 16px; }

.moments-page .mp-quote-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(16,66,73,.16);
}

.moments-page .mp-quote-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.moments-page .mp-quote-icon {
  display: none;
}

.moments-page .mp-quote-card blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.28;
  color: #24313a;
  margin-bottom: 14px;
  margin-top: 2px;
  font-weight: 500;
}

.moments-page .mp-quote-card cite {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ocean-teal);
  opacity: 1;
  font-style: normal;
  font-weight: 700;
}

.moments-page .mp-empty {
  text-align: center;
  padding: 90px 24px;
  color: #8fa1aa;
  font-size: 1rem;
}

.moments-page .mp-empty i {
  font-size: 3rem;
  color: #c1ccd1;
  margin-bottom: 12px;
}

.moments-page .mp-gallery-actions {
  max-width: 1400px;
  margin: 16px auto 0;
  display: flex;
  justify-content: center;
}

.moments-page .mp-load-more {
  border: 1px solid #1f6f78;
  background: #fff;
  color: #1f6f78;
  border-radius: 999px;
  padding: 11px 28px;
  font-family: 'Jost', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  box-shadow: 0 6px 18px rgba(20,72,80,.10);
}

.moments-page .mp-load-more:hover {
  background: #1f6f78;
  color: #fff;
  transform: translateY(-1px);
}

.moments-page #mpScrollSentinel {
  height: 1px;
  width: 100%;
}

.moments-page #footer {
  margin-top: auto;
}

@media (max-width: 1024px) {
  .moments-page .mp-hero { min-height: 58vh; padding: 120px 30px 66px; }
  .moments-page .mp-masonry { columns: 3; }
}

@media (max-width: 768px) {
  .moments-page .mp-hero {
    min-height: 52vh;
    padding: 112px 18px 56px;
    text-align: left;
    align-items: center;
    justify-content: flex-start;
  }

  .moments-page .mp-hero-content p {
    margin-left: 0;
    margin-right: 0;
  }

  .moments-page .mp-gallery-section { padding: 26px 14px 70px; }
  .moments-page .mp-masonry { columns: 2; }
  .mp-gallery-head { grid-template-columns: 1fr; }
  .mp-controls { justify-content: flex-start; }
  .moments-page .mp-quote-card {
    padding: 30px 18px;
  }
  .moments-page .mp-quote-card::before,
  .moments-page .mp-quote-card::after {
    left: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .moments-page .mp-masonry { columns: 1; }
  .moments-page .mp-hero-content h1 { font-size: 2.5rem; }
}

/* --------------------------------------------------------
   v2: Lightbox .open aliases (style.css uses .active)
-------------------------------------------------------- */
.lightbox-backdrop.open { opacity: 1; pointer-events: all; }
.lightbox.open          { opacity: 1; pointer-events: all; }

/* --------------------------------------------------------
   v2: Hero � "Share Your Moments" button + two-button row
-------------------------------------------------------- */
.moments-page .mp-hero-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.moments-page .btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--deep-teal);
  background: rgba(255,255,255,.96);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.moments-page .btn-share:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.26);
}

/* --------------------------------------------------------
   v2: Gallery Section header
-------------------------------------------------------- */
.moments-page .mp-gallery-section {
  flex: 1;
  width: 100%;
  padding: 52px 30px 80px;
}

.mp-gallery-head {
  max-width: 1400px;
  margin: 0 auto 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.mp-gallery-head-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #1a5d66;
  line-height: 1.05;
  margin-bottom: 6px;
}
.mp-gallery-head-text h2 em { color: #2d8f98; font-style: italic; }

.mp-gallery-tagline {
  font-size: .88rem;
  color: #5d7480;
  max-width: 440px;
  line-height: 1.55;
}

.mp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-size: .84rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1f6f78 0%, #2e9199 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(31,111,120,.34);
  transition: transform .22s ease, box-shadow .22s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.mp-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(31,111,120,.44);
}

/* --------------------------------------------------------
   v2: Album Cards Grid
-------------------------------------------------------- */
.mp-albums-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.mp-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: #8fa1aa;
}
.mp-empty i  { font-size: 3rem; color: #c1ccd1; display: block; margin-bottom: 14px; }
.mp-empty p  { font-size: 1rem; line-height: 1.6; }

.mp-album-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: #d8e6e8;
  box-shadow: 0 8px 28px rgba(18,68,74,.16);
  transition: transform .28s ease, box-shadow .28s ease;
}
.mp-album-card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 18px 42px rgba(18,68,74,.28);
}
.mp-album-card:focus-visible {
  outline: 3px solid var(--ocean-teal);
  outline-offset: 3px;
}

.mp-ac-img-wrap {
  position: absolute;
  inset: 0;
}
.mp-ac-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.06) contrast(1.03);
  transition: transform .5s ease;
}
.mp-album-card:hover .mp-ac-img-wrap img { transform: scale(1.05); }

.mp-ac-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 18px 18px;
  background: linear-gradient(to top, rgba(5,22,25,.82) 0%, rgba(5,22,25,0) 100%);
  color: #fff;
}

.mp-ac-author {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-size: .76rem;
  font-weight: 500;
  opacity: .88;
}
.mp-ac-avatar, .mp-ac-initial {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.6);
}
.mp-ac-initial {
  font-size: .72rem;
  font-weight: 700;
  background: var(--ocean-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-ac-title {
  font-family: 'Jost', sans-serif;
  font-size: clamp(.9rem, 1.3vw, 1rem);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
  margin-bottom: 5px;
}

.mp-ac-desc {
  font-size: .72rem;
  opacity: .82;
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.mp-ac-meta {
  font-size: .72rem;
  opacity: .78;
}
.mp-ac-meta i { opacity: .75; }

/* --------------------------------------------------------
   v2: Album Detail Overlay
-------------------------------------------------------- */
.mp-album-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mp-album-overlay-backdrop.open { opacity: 1; pointer-events: all; }

.mp-album-overlay {
  position: fixed;
  inset: 0;
  z-index: 901;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f3f7f8;
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
}
.mp-album-overlay.open { transform: translateY(0); }

.mp-album-overlay-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 28px 80px;
}

.mp-album-overlay-close {
  position: sticky;
  top: 16px;
  float: right;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(30,80,88,.12);
  color: #1a5d66;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .22s ease;
  z-index: 10;
  flex-shrink: 0;
}
.mp-album-overlay-close:hover { background: rgba(30,80,88,.2); }

.mp-album-overlay-header {
  padding-top: 8px;
  margin-bottom: 28px;
}

.mp-album-submitter-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .86rem;
  color: #5d7480;
}
.mp-ao-avatar, .mp-ao-initial {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(31,111,120,.22);
  flex-shrink: 0;
}
.mp-ao-initial {
  background: var(--deep-teal);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-album-overlay-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #1a3f44;
  margin-bottom: 6px;
  line-height: 1.1;
}

.mp-album-overlay-desc {
  font-size: .92rem;
  color: #3a6068;
  line-height: 1.6;
  margin-bottom: 6px;
  font-style: italic;
}
.mp-album-overlay-meta {
  font-size: .84rem;
  color: #7a9099;
}

.mp-album-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.mp-ao-photo {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #d8e6e8;
  box-shadow: 0 4px 14px rgba(18,68,74,.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mp-ao-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 22px rgba(18,68,74,.22);
}
.mp-ao-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04);
}

/* --------------------------------------------------------
   v2: Upload Modal
-------------------------------------------------------- */
.mp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,20,24,.72);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mp-modal-backdrop.open { opacity: 1; pointer-events: all; }

.mp-upload-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.94);
  z-index: 1001;
  width: min(540px, calc(100vw - 32px));
  max-height: min(88vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.mp-upload-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.mp-upload-modal-inner {
  padding: 32px 28px 28px;
  position: relative;
}

.mp-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.06);
  color: #666;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .22s;
}
.mp-modal-close:hover { background: rgba(0,0,0,.12); }

/* Steps */
.mp-step { text-align: center; }
.mp-step h3 {
  font-family: 'Jost', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a3f44;
  margin-bottom: 10px;
}
.mp-step > p {
  color: #5a7480;
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

.mp-step-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(31,111,120,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
  color: var(--deep-teal);
}
.mp-step-icon.success { background: rgba(39,174,96,.12); color: #27ae60; }
.mp-step-icon.error   { background: rgba(231,76,60,.1); color: #e74c3c; }
.mp-step-icon.pulsing { animation: pulse-icon 1.6s ease infinite; }
@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.08); opacity: .7; }
}

/* GSI button centering */
.mp-gsi-btn-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 10px;
}
.mp-signin-note {
  font-size: .76rem;
  color: #9aacb2;
  margin-top: 12px;
}
.mp-gsi-not-configured {
  background: #fff8e5;
  border: 1px solid #f5c842;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .85rem;
  color: #7a5c00;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 8px;
}

/* "or continue with" divider between Google button and manual form */
.mp-or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: #9aacb2;
  font-size: .78rem;
}
.mp-or-divider::before,
.mp-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dce8ea;
}

/* OTP verification step */
.mp-otp-input-row {
  display: flex;
  justify-content: center;
  margin: 20px 0 10px;
}
#mpOtpInput {
  width: 200px;
  padding: 14px 16px;
  font-size: 1.6rem;
  font-family: monospace;
  letter-spacing: 10px;
  text-align: center;
  border: 2px solid #dce8ea;
  border-radius: 12px;
  background: #f8fafc;
  color: #1a1a2e;
  outline: none;
  transition: border-color .2s;
}
#mpOtpInput:focus { border-color: #e8b86d; background: #fff; }
#mpOtpInput.mp-otp-error-state { border-color: #e05252; background: #fff8f8; animation: mpShake .3s; }

@keyframes mpShake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}

.mp-otp-timer-row {
  text-align: center;
  margin: 4px 0 12px;
}
.mp-otp-timer {
  font-size: .8rem;
  color: #9aacb2;
  font-variant-numeric: tabular-nums;
}
.mp-otp-timer.mp-otp-expired {
  color: #e05252;
  font-weight: 600;
}

.mp-otp-error {
  color: #e05252;
  font-size: .83rem;
  background: #fff4f4;
  border: 1px solid #f5baba;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 0 12px;
  text-align: center;
}

.mp-resend-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: transparent;
  border: 1.5px solid #dce8ea;
  border-radius: 10px;
  color: #5a8a9a;
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.mp-resend-btn:hover:not(:disabled) {
  border-color: #e8b86d;
  background: #fffbf3;
  color: #b8860d;
}
.mp-resend-btn:disabled { opacity: .45; cursor: not-allowed; }

.mp-back-link {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  background: transparent;
  border: none;
  color: #9aacb2;
  font-size: .8rem;
  cursor: pointer;
  transition: color .2s;
}
.mp-back-link:hover { color: #5a8a9a; }

/* User bar (signed-in header) */
.mp-user-bar { margin-bottom: 16px; }
.mp-ub-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f3f7f8;
  border-radius: 12px;
  border: 1px solid #dce8ea;
}
.mp-ub-avatar, .mp-ub-initial {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(31,111,120,.2);
}
.mp-ub-initial {
  background: var(--deep-teal);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mp-ub-info { flex: 1; text-align: left; }
.mp-ub-info strong { display: block; font-size: .88rem; color: #1a3f44; line-height: 1.2; }
.mp-ub-info span   { font-size: .76rem; color: #7a9099; }
.mp-signout-btn {
  width: 32px; height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #aab8bc;
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.mp-signout-btn:hover { background: rgba(231,76,60,.1); color: #e74c3c; }

/* Form */
.mp-step.text-left { text-align: left; }
.mp-form-group { margin-bottom: 14px; text-align: left; }
.mp-form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #5a7480;
  margin-bottom: 6px;
}
.mp-form-group label .required { color: #e74c3c; }
.mp-form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d8e6e8;
  border-radius: 10px;
  font-family: 'Jost', sans-serif;
  font-size: .9rem;
  color: #1a3f44;
  background: #fff;
  outline: none;
  transition: border-color .22s;
}
.mp-form-group input:focus { border-color: var(--ocean-teal); box-shadow: 0 0 0 3px rgba(59,174,160,.14); }
.mp-form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d8e6e8;
  border-radius: 10px;
  font-family: 'Jost', sans-serif;
  font-size: .9rem;
  color: #1a3f44;
  background: #fff;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color .22s;
}
.mp-form-group textarea:focus { border-color: var(--ocean-teal); box-shadow: 0 0 0 3px rgba(59,174,160,.14); }
.mp-optional { color: #aab; font-size: .75em; font-weight: 400; text-transform: none; letter-spacing: 0; }
.mp-char-count { display: block; text-align: right; font-size: .74rem; color: #9ab; margin-top: 4px; }

/* Drop zone */
.mp-drop-zone {
  position: relative;
  border: 2px dashed #b8cfd4;
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  background: #f8fbfc;
  transition: border-color .22s, background .22s;
  margin-bottom: 12px;
}
.mp-drop-zone:hover, .mp-drop-zone.dragging {
  border-color: var(--ocean-teal);
  background: rgba(59,174,160,.05);
}
.mp-drop-zone i { font-size: 2rem; color: #b8cfd4; margin-bottom: 8px; display: block; }
.mp-drop-zone p { font-size: .88rem; color: #5a7480; margin-bottom: 4px; }
.mp-drop-zone p strong { color: var(--deep-teal); }
.mp-drop-zone span { font-size: .74rem; color: #9aaeb4; }
.mp-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: none;
}

/* File count row */
.mp-file-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: .82rem;
  color: #5a7480;
}
.mp-clear-files {
  border: none;
  background: none;
  color: #e74c3c;
  font-size: .8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .2s;
}
.mp-clear-files:hover { background: rgba(231,76,60,.08); }

/* File preview thumbnails */
.mp-file-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  max-height: 200px;
  overflow-y: auto;
}
.mp-fp-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #e8f0f2;
}
.mp-fp-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.mp-fp-remove {
  position: absolute;
  top: 3px; right: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: .6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Submit button */
.mp-submit-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1f6f78 0%, #2e9199 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31,111,120,.32);
  transition: opacity .22s, transform .22s, box-shadow .22s;
  margin-top: 6px;
}
.mp-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(31,111,120,.42);
}
.mp-submit-btn:disabled { opacity: .45; cursor: not-allowed; }
.mp-submit-btn.outline {
  background: transparent;
  border: 2px solid var(--deep-teal);
  color: var(--deep-teal);
  box-shadow: none;
}
.mp-submit-btn.outline:hover { background: rgba(31,111,120,.06); }

.mp-disclaimer {
  font-size: .75rem;
  color: #9aaeb4;
  text-align: center;
  margin-top: 8px;
}

/* Progress */
.mp-progress-wrap { margin: 20px 0; }
.mp-progress-bar-bg {
  height: 8px;
  background: #d8e6e8;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.mp-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1f6f78 0%, #2e9199 100%);
  border-radius: 999px;
  transition: width .4s ease;
}
.mp-progress-text {
  font-size: .84rem;
  color: #5a7480;
  text-align: center;
}

/* loading spinner */
.gallery-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: #8fa1aa;
  font-size: .96rem;
}
.gallery-loading i { margin-right: 8px; color: var(--ocean-teal); }

/* --------------------------------------------------------
   v2: Responsive
-------------------------------------------------------- */
@media (max-width: 900px) {
  .mp-albums-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  .mp-gallery-section { padding: 36px 18px 60px; }
  .mp-album-photos-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
}

@media (max-width: 600px) {
  .mp-albums-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mp-album-card  { aspect-ratio: 3 / 4; border-radius: 14px; }
  .mp-gallery-head { flex-direction: column; align-items: flex-start; }
  .mp-upload-modal { border-radius: 20px 20px 0 0; top: auto; bottom: 0; left: 0; right: 0; width: 100%; transform: translateY(100%); max-height: 92vh; }
  .mp-upload-modal.open { transform: translateY(0); }
  .mp-album-photos-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (max-width: 420px) {
  .mp-albums-grid { grid-template-columns: 1fr; }
}
