:root {
  --mj-olive: #86895d;
  --mj-olive-dark: #6f734d;
  --mj-olive-soft: rgba(134, 137, 93, 0.12);
  --mj-card-shadow: 0 14px 35px rgba(10, 15, 20, 0.08);
  --mj-radius: 16px;
}

html {
  scroll-behavior: smooth;
}

#inicio, #story, #rsvp, #event, #agenda, #faq, #album {
  scroll-margin-top: 90px;
}

/* ===============================
   Countdown premium card
   =============================== */
.mj-countdown-wrap {
  margin-top: 18px;
  text-align: center;
}

.mj-countdown-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(134,137,93,.15);
  border-radius: 18px;
  box-shadow: var(--mj-card-shadow);
  padding: 14px;
}

.mj-countdown-item {
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(134,137,93,.07));
  border: 1px solid rgba(134,137,93,.10);
  border-radius: 14px;
  padding: 10px 8px;
}

.mj-countdown-value {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1;
  font-weight: 800;
  color: #2b2c23;
}

.mj-countdown-label {
  display: block;
  margin-top: 6px;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6e6f63;
}

.mj-countdown-note {
  color: #666;
  margin-top: 10px;
  font-size: .9rem;
}

/* ===============================
   RSVP skeleton + post-actions
   =============================== */
.rsvp-skeleton-card {
  border: 1px solid rgba(0,0,0,.06);
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

.rsvp-skeleton-row,
.rsvp-skeleton-chip {
  background: linear-gradient(90deg, rgba(0,0,0,.06) 25%, rgba(0,0,0,.10) 37%, rgba(0,0,0,.06) 63%);
  background-size: 400% 100%;
  animation: mj-shimmer 1.25s ease infinite;
  border-radius: 10px;
}

.rsvp-skeleton-row { height: 14px; margin-bottom: 10px; }
.rsvp-skeleton-row--lg { height: 20px; width: 65%; }
.rsvp-skeleton-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.rsvp-skeleton-chip { height: 52px; }

@keyframes mj-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.mj-post-confirm-actions {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid rgba(134,137,93,.18);
  background: linear-gradient(180deg, rgba(255,255,255, .96), rgba(134,137,93,.08));
  box-shadow: 0 10px 28px rgba(134,137,93,.12);
  padding: 14px;
}

.mj-post-confirm-actions__head h6 {
  font-weight: 800;
  color: #2b2c23;
}

.mj-post-confirm-actions__head p {
  color: #67695c;
  font-size: .95rem;
}

.mj-post-confirm-actions__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.mj-post-confirm-actions__buttons .btn {
  border-radius: 12px;
  font-weight: 700;
}

/* ===============================
   Event actions in cards
   =============================== */
.mj-event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.mj-event-links .btn {
  border-radius: 999px;
  font-size: .82rem;
  padding: .35rem .7rem;
  line-height: 1.2;
}

/* ===============================
   Timeline section
   =============================== */
.mj-timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding-left: 26px;
}

.mj-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 9px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(134,137,93,.2), rgba(134,137,93,.65), rgba(134,137,93,.2));
}

.mj-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.mj-timeline-item::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  left: -22px;
  top: 14px;
  background: var(--mj-olive);
  border: 3px solid rgba(255,255,255,.95);
  box-shadow: 0 0 0 4px rgba(134,137,93,.14);
}

.mj-timeline-time {
  font-weight: 800;
  color: var(--mj-olive-dark);
  padding-top: 8px;
  text-align: right;
}

.mj-timeline-card {
  background: #fff;
  border-radius: var(--mj-radius);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--mj-card-shadow);
  padding: 14px 16px;
}

.mj-timeline-card h5 {
  margin: 0 0 4px;
  font-weight: 800;
  color: #2c2d23;
  font-size: 1rem;
}

.mj-timeline-card p {
  margin: 0;
  color: #6f7067;
}

/* ===============================
   FAQ accordion
   =============================== */
.mj-faq-accordion .accordion-item {
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,.04);
}

.mj-faq-accordion .accordion-button {
  font-weight: 700;
  padding: 1rem 1.05rem;
  color: #2f3027;
  background: #fff;
}

.mj-faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(134,137,93,.10);
  color: #2d2f22;
  box-shadow: none;
}

.mj-faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 .2rem rgba(134,137,93,.16);
  border-color: rgba(134,137,93,.20);
}

.mj-faq-accordion .accordion-body {
  color: #66685d;
  line-height: 1.65;
}

/* ===============================
   Album / QR
   =============================== */
.mj-album-card,
.mj-qr-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--mj-card-shadow);
  padding: 18px;
}

.mj-album-card h5 {
  font-weight: 800;
  color: #2d2e24;
}

.mj-album-card p,
.mj-album-note {
  color: #6a6c60;
}

.mj-album-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mj-album-actions .btn {
  border-radius: 12px;
  font-weight: 700;
}

.mj-album-actions .btn.disabled,
.mj-album-actions .btn[aria-disabled="true"] {
  opacity: .55;
  pointer-events: none;
}

.mj-qr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.mj-qr-card__badge {
  display: inline-flex;
  align-self: center;
  background: rgba(134,137,93,.13);
  color: #4b4d38;
  border: 1px solid rgba(134,137,93,.18);
  border-radius: 999px;
  padding: .25rem .75rem;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 12px;
}

.mj-qr-frame {
  position: relative;
  margin: 0 auto 12px;
  width: min(260px, 80vw);
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px dashed rgba(134,137,93,.35);
  background: linear-gradient(180deg, #fff, rgba(134,137,93,.04));
  display: grid;
  place-items: center;
  overflow: hidden;
}

#albumQrImage {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: none;
}

.mj-qr-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78%;
  height: 78%;
  border-radius: 16px;
  background: rgba(134,137,93,.08);
  color: #636651;
  font-weight: 700;
  border: 1px solid rgba(134,137,93,.14);
}

/* ===============================
   Action modals (calendar + location)
   =============================== */
.mj-action-modal .modal-content {
  border-radius: 18px;
  overflow: hidden;
}

.mj-action-modal .modal-header {
  background: linear-gradient(135deg, rgba(134,137,93,.98), rgba(111,115,77,.95));
  color: #fff;
  border: 0;
}

.mj-action-modal .modal-header .btn-close {
  filter: invert(1);
  opacity: .95;
}

.mj-calendar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mj-calendar-card {
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.03);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.mj-calendar-card--wide {
  grid-column: 1 / -1;
}

.mj-calendar-card h6 {
  font-weight: 800;
  color: #2e2f24;
}

.mj-calendar-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mj-calendar-card__actions .btn {
  border-radius: 10px;
  font-weight: 700;
}

.mj-location-summary {
  border: 1px solid rgba(134,137,93,.16);
  background: rgba(134,137,93,.06);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.mj-location-summary h6 {
  font-weight: 800;
  color: #303126;
}

.mj-location-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.mj-location-actions .btn {
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
}

/* ===============================
   Copy button state
   =============================== */
.mj-copy-btn {
  transition: all .18s ease;
}

.mj-copy-btn.is-copied {
  border-color: rgba(25,135,84,.4) !important;
  color: #198754 !important;
  background: rgba(25,135,84,.08) !important;
}

.mj-copy-btn.is-copy-error {
  border-color: rgba(220,53,69,.35) !important;
  color: #dc3545 !important;
  background: rgba(220,53,69,.08) !important;
}

/* ===============================
   Gentle reveal animations
   =============================== */
.mj-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}

.mj-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   Responsive polish
   =============================== */
@media (max-width: 991.98px) {
  .mj-countdown-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mj-calendar-grid {
    grid-template-columns: 1fr;
  }

  .mj-timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mj-timeline-time {
    text-align: left;
    padding-top: 0;
    padding-left: 2px;
    font-size: .95rem;
  }

  .mj-timeline {
    padding-left: 20px;
  }

  .mj-timeline-item::before {
    left: -16px;
    top: 7px;
  }

  .mj-timeline::before {
    left: 7px;
  }
}

@media (max-width: 575.98px) {
  .mj-countdown-card {
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .mj-countdown-item {
    border-radius: 10px;
    padding: 8px 6px;
  }

  .mj-post-confirm-actions {
    padding: 12px;
  }

  .mj-post-confirm-actions__buttons .btn,
  .mj-album-actions .btn {
    width: 100%;
  }

  .mj-event-links .btn {
    width: 100%;
  }

  .mj-calendar-card__actions .btn {
    width: 100%;
  }

  .mj-qr-card,
  .mj-album-card {
    padding: 14px;
    border-radius: 14px;
  }
}
