:root {
  --olive: #67734f;
  --olive-dark: #525d3c;
  --olive-deep: #5d6d40;
  --olive-text: #4c5736;
  --olive-muted: #76825d;
  --paper-bg: #fafaf7;
  --paper-card: #f6f6f2;
  --white: #ffffff;
  --ink: #343d24;
  --border-olive: rgba(103, 115, 79, 0.55);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Ephesis', cursive;
  --font-sans: 'Comfortaa', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: var(--olive-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

body.guest-mode .studio-bar,
body.guest-mode .editor-drawer {
  display: none !important;
}

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

button,
input,
textarea,
select {
  font-family: inherit;
}

/* Studio Top Bar */
.studio-bar {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 90;
  display: flex;
  gap: 8px;
}

.studio-toggle-btn,
.studio-guest-btn,
.guest-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(103, 115, 79, 0.3);
  box-shadow: 0 8px 24px rgba(40, 48, 28, 0.14);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.studio-toggle-btn {
  background: var(--olive);
  color: #ffffff;
}

.studio-toggle-btn:hover {
  background: var(--olive-dark);
  transform: translateY(-1px);
}

.studio-guest-btn,
.guest-exit-btn {
  background: rgba(255, 255, 255, 0.94);
  color: var(--olive-dark);
  backdrop-filter: blur(8px);
}

.studio-guest-btn:hover,
.guest-exit-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.guest-exit-btn {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 95;
  opacity: 0.72;
}

.guest-exit-btn:hover {
  opacity: 1;
}

/* Workspace Layout */
.workspace-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  transition: padding-right 0.25s ease;
}

.workspace-layout.editor-open {
  padding-right: 410px;
}

/* 420px Mobile-First Wedding Card */
.invitation-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.invitation-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--paper-bg);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Paper Texture Surface */
.sec-paper {
  position: relative;
  background-color: var(--paper-bg);
  background-image:
    radial-gradient(rgba(103, 115, 79, 0.045) 0.75px, transparent 0.75px),
    radial-gradient(rgba(103, 115, 79, 0.03) 0.75px, var(--paper-bg) 0.75px);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
}

/* SECTION 1: HERO */
.sec-hero {
  position: relative;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  height: 515px;
  overflow: hidden;
  background: #dde0d4;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 22, 14, 0) 48%,
    rgba(18, 22, 14, 0.35) 78%,
    rgba(18, 22, 14, 0.68) 100%
  );
}

.hero-names {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  color: #ffffff;
  font-family: var(--font-serif);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.hero-name-top {
  font-size: 46px;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-name-bottom {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 46px;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding-left: 16px;
}

.hero-amp {
  font-family: var(--font-script);
  font-size: 42px;
  font-weight: 400;
  text-transform: none;
  margin-right: 4px;
}

/* SECTION 2: COUNTDOWN & CALENDAR */
.sec-countdown {
  padding: 36px 26px 38px;
  text-align: center;
}

.script-title {
  font-family: var(--font-script);
  font-size: 42px;
  color: var(--olive);
  line-height: 1.15;
  margin-bottom: 6px;
}

.script-title--lg {
  font-size: 46px;
  margin-bottom: 14px;
}

.serif-subtitle {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--olive-text);
  text-transform: uppercase;
}

.serif-caption {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--olive-text);
  margin-top: 2px;
  margin-bottom: 20px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 310px;
  margin: 0 auto 28px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: var(--olive);
  margin-bottom: 4px;
}

.countdown-label {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--olive-text);
}

.framed-photo-box {
  width: 288px;
  height: 310px;
  margin: 0 auto 28px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 10px 26px rgba(45, 52, 32, 0.12);
}

.framed-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Calendar Widget */
.calendar-widget {
  max-width: 320px;
  margin: 0 auto;
  padding: 16px 14px 18px;
  border-top: 1px solid rgba(103, 115, 79, 0.22);
  border-bottom: 1px solid rgba(103, 115, 79, 0.22);
}

.calendar-header {
  margin-bottom: 12px;
}

.calendar-month {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--olive);
  text-transform: uppercase;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.calendar-weekdays span {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--olive);
  padding-bottom: 6px;
}

.calendar-day {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--olive-text);
  position: relative;
}

.calendar-day.is-highlight {
  color: #ffffff;
  font-weight: 700;
}

.calendar-day.is-highlight::before {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--olive);
  z-index: 0;
  box-shadow: 0 0 0 3px rgba(103, 115, 79, 0.22);
}

.calendar-day.is-highlight span {
  position: relative;
  z-index: 1;
}

/* SECTION 3 & 7: EVENT */
.sec-event {
  padding: 46px 28px 46px;
  text-align: center;
  overflow: hidden;
}

.sec-event--with-banner {
  padding-top: 0;
}

.event-banner-photo-wrap {
  width: 100%;
  height: 235px;
  overflow: hidden;
  margin-bottom: 32px;
}

.event-banner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.floral-corner {
  position: absolute;
  width: 96px;
  height: 96px;
  pointer-events: none;
}

.floral-corner--right {
  top: 12px;
  right: -6px;
}

.event-couple-line {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  color: var(--olive-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.event-invite-upper {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--olive);
}

.event-invite-sub {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: var(--olive-muted);
  margin-bottom: 24px;
}

.event-heading-block {
  margin-bottom: 18px;
}

.event-heading {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--olive-text);
  text-transform: uppercase;
}

.event-time {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--olive-text);
  margin-top: 2px;
}

.event-time strong {
  color: var(--olive-dark);
  font-weight: 700;
}

.date-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 310px;
  margin: 0 auto 14px;
}

.date-split__side {
  flex: 1;
  border-top: 1px solid rgba(103, 115, 79, 0.45);
  border-bottom: 1px solid rgba(103, 115, 79, 0.45);
  padding: 6px 0;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--olive-text);
  text-transform: uppercase;
}

.date-split__day {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 0.9;
  color: var(--olive);
  min-width: 68px;
}

.lunar-date {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-style: italic;
  color: var(--olive-muted);
  margin-bottom: 22px;
}

.venue-label {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--olive-muted);
  margin-bottom: 6px;
}

.venue-address {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--olive-text);
  max-width: 320px;
  margin: 0 auto 6px;
}

.venue-tag {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 18px;
}

.olive-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--olive);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.olive-pill-btn:hover {
  background: var(--olive-dark);
  transform: translateY(-1px);
}

.olive-pill-btn--sm {
  padding: 9px 28px;
}

.olive-pill-btn--full {
  width: 100%;
  height: 44px;
  font-size: 13px;
}

.lily-divider {
  display: block;
  width: 84px;
  height: 30px;
  margin: 26px auto 0;
}

/* SECTION 4: QUOTE INTERLUDE 1 */
.sec-quote-1 {
  padding-bottom: 24px;
}

.floral-banner svg {
  width: 100%;
  height: 48px;
  display: block;
}

.quote-photo-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.quote-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.quote-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(24, 30, 18, 0.55));
  text-align: center;
  color: #ffffff;
}

.quote-upper {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.22em;
  font-weight: 500;
}

.quote-script {
  font-family: var(--font-script);
  font-size: 30px;
  line-height: 1.1;
}

/* SECTION 5: LOVE STORY & POLAROIDS */
.sec-story {
  padding: 28px 26px 40px;
  text-align: center;
}

.story-paragraph {
  font-size: 12px;
  line-height: 1.75;
  color: var(--olive-text);
  text-align: justify;
  text-aling-last: center;
  margin-bottom: 34px;
}

.polaroid-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.polaroid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.polaroid-card {
  position: relative;
  width: 185px;
  background: #ffffff;
  padding: 10px 10px 24px;
  box-shadow: 0 12px 26px rgba(32, 38, 22, 0.14);
  flex-shrink: 0;
}

.polaroid-card--tilt-left {
  transform: rotate(-3.5deg);
}

.polaroid-card--tilt-right {
  transform: rotate(3.5deg);
}

.polaroid-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 15%;
}

.wax-seal {
  position: absolute;
  right: -14px;
  bottom: -10px;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.wax-seal--left {
  right: auto;
  left: -14px;
}

.polaroid-meta {
  flex: 1;
  text-align: left;
  padding-left: 4px;
}

.polaroid-meta--right {
  text-align: right;
  padding-left: 0;
  padding-right: 4px;
}

.polaroid-role {
  display: block;
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--olive);
  line-height: 1;
}

.polaroid-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--olive-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* SECTION 6: FAMILY INFO */
.sec-family {
  padding: 16px 24px 36px;
  text-align: center;
}

.family-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.family-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(103, 115, 79, 0.22);
  border-radius: 14px;
  padding: 16px 16px 14px;
  text-align: left;
}

.family-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.family-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(103, 115, 79, 0.14);
  color: var(--olive-dark);
}

.family-couple-full {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--olive-dark);
}

.family-parents,
.family-addr,
.family-schedule {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--olive-text);
  margin-bottom: 4px;
}

.family-map-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* SECTION 8 & 9: OLIVE QUOTE & GALLERY */
.sec-olive {
  background-color: var(--olive-deep);
  padding: 34px 16px 28px;
  color: #ffffff;
}

.olive-quote-block {
  text-align: center;
  padding: 0 12px 24px;
}

.olive-quote-text {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 16px;
}

.forever-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.forever-upper {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.forever-script {
  font-family: var(--font-script);
  font-size: 28px;
  color: #e6ecd9;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.gallery-item {
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  height: 225px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* SECTION 10: RSVP */
.sec-rsvp {
  padding: 36px 26px 40px;
  text-align: center;
}

.rsvp-intro {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--olive-text);
  margin-bottom: 22px;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rsvp-input,
.rsvp-textarea,
.rsvp-select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-olive);
  border-radius: 24px;
  padding: 11px 18px;
  font-size: 12.5px;
  color: var(--olive-dark);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rsvp-textarea {
  border-radius: 18px;
  resize: vertical;
  min-height: 92px;
}

.rsvp-input::placeholder,
.rsvp-textarea::placeholder {
  color: rgba(82, 93, 60, 0.65);
}

.rsvp-input:focus,
.rsvp-textarea:focus,
.rsvp-select:focus {
  border-color: var(--olive-dark);
  background: rgba(255, 255, 255, 0.55);
}

.rsvp-select-wrap {
  position: relative;
}

.rsvp-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23525d3c'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.rsvp-select::picker-icon {
  display: none;
}

.rsvp-status {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(103, 115, 79, 0.12);
  border: 1px solid rgba(103, 115, 79, 0.35);
  font-size: 12px;
  color: var(--olive-dark);
}

.wishes-wall {
  margin-top: 18px;
  text-align: left;
}

.wishes-wall__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 8px;
}

.wishes-wall__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.wish-item {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(103, 115, 79, 0.2);
  font-size: 11.5px;
}

.wish-item strong {
  color: var(--olive-dark);
}

/* SECTION 12: THANK YOU & FOOTER */
.sec-thankyou {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #445032;
}

.thankyou-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.thankyou-overlay {
  position: absolute;
  inset: 0;
  padding: 28px 24px 20px;
  background: linear-gradient(180deg, rgba(16, 22, 12, 0.42) 0%, rgba(16, 22, 12, 0.18) 55%, rgba(16, 22, 12, 0.48) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.thankyou-text {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  white-space: pre-line;
}

.thankyou-script {
  font-family: var(--font-script);
  font-size: 46px;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.card-footer {
  background: var(--paper-bg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(103, 115, 79, 0.14);
}

.card-footer__brand {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--olive-text);
  text-transform: uppercase;
}

.card-footer__socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-sq {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--olive);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-sq--text {
  font-size: 8.5px;
}

/* Floating Music Button */
.music-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 50px;
  height: 50px;
  border-radius: 9999px;
  border: none;
  background: #fbf3e4;
  color: #2f3524;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.music-fab:hover {
  transform: scale(1.06);
}

.music-fab.is-playing .music-fab__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid rgba(103, 115, 79, 0.45);
  animation: pulse-ring 1.8s infinite ease-out;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Modals */
.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 18, 12, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.gift-modal {
  position: relative;
  width: 100%;
  max-width: 390px;
  background: var(--olive-deep);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.gift-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
}

.gift-modal__photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 22%;
}

.gift-modal__body {
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
}

.gift-modal__qr-wrap {
  width: 128px;
  height: 128px;
  background: #ffffff;
  padding: 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.gift-modal__qr {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gift-modal__info {
  flex: 1;
  min-width: 0;
}

.gift-modal__role {
  font-family: var(--font-script);
  font-size: 26px;
  line-height: 1;
  margin-bottom: 4px;
}

.gift-modal__name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  word-break: break-word;
}

.gift-modal__bank {
  font-family: var(--font-serif);
  font-size: 16px;
  text-transform: uppercase;
  margin-top: 2px;
}

.gift-modal__acc {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.copy-acc-btn {
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.copy-acc-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Lightbox */
.lightbox {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 85vw;
  max-height: 84vh;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close {
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.lightbox__nav {
  width: 38px;
  height: 38px;
  font-size: 24px;
}

.lightbox__nav--prev {
  left: -48px;
}

.lightbox__nav--next {
  right: -48px;
}

/* CUSTOMIZATION STUDIO DRAWER */
.editor-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 410px;
  max-width: 100vw;
  z-index: 100;
  background: #ffffff;
  border-left: 1px solid #e4e7dc;
  box-shadow: -12px 0 36px rgba(32, 38, 22, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.editor-drawer.is-open {
  transform: translateX(0);
}

.editor-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid #ecefe5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fbfcf9;
}

.editor-head__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--olive-dark);
}

.editor-head__sub {
  font-size: 11px;
  color: var(--olive-muted);
  margin-top: 2px;
}

.editor-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e0e4d6;
  background: #ffffff;
  color: var(--olive-dark);
  cursor: pointer;
}

.editor-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 12px;
  background: #f5f7f0;
  border-bottom: 1px solid #e8ece0;
}

.editor-tab {
  padding: 8px 4px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--olive-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.editor-tab.is-active {
  background: var(--olive);
  color: #ffffff;
}

.editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.editor-pane {
  display: none;
}

.editor-pane.is-active {
  display: block;
}

.editor-hint {
  font-size: 11.5px;
  color: var(--olive-muted);
  background: #f6f8f1;
  border: 1px solid #e3e8d8;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.field-group {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef1e7;
}

.field-group:last-child {
  border-bottom: none;
}

.field-group__title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.field span {
  font-size: 11px;
  font-weight: 600;
  color: #556042;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d5dcc7;
  border-radius: 8px;
  font-size: 12px;
  color: #2c331f;
  background: #ffffff;
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--olive);
}

.field-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.field-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.field-divider {
  border: none;
  border-top: 1px dashed #dce1d1;
  margin: 12px 0;
}

/* Photo Editor Items */
.photo-editor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-editor-item {
  border: 1px solid #e3e8d8;
  border-radius: 10px;
  padding: 10px;
  background: #fafbf8;
}

.photo-editor-item__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.photo-editor-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #e5e8dd;
  flex-shrink: 0;
}

.photo-editor-meta {
  flex: 1;
  min-width: 0;
}

.photo-editor-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 4px;
}

.photo-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drive-select {
  margin-top: 6px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d5dcc7;
  border-radius: 7px;
  font-size: 11px;
  color: #2c331f;
  background: #ffffff;
}

.upload-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.upload-btn,
.preview-audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.upload-btn {
  background: rgba(103, 115, 79, 0.14);
  color: var(--olive-dark);
  border: 1px solid rgba(103, 115, 79, 0.3);
}

.upload-btn:hover {
  background: rgba(103, 115, 79, 0.22);
}

.preview-audio-btn {
  background: #ffffff;
  color: var(--olive-dark);
  border: 1px solid #d5dcc7;
}

.audio-current-name {
  font-size: 11px;
  color: var(--olive-muted);
}

.editor-footer {
  padding: 12px 16px;
  border-top: 1px solid #e8ece0;
  background: #fbfcf9;
  display: flex;
  gap: 8px;
}

.editor-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.editor-btn--secondary {
  background: #eef1e7;
  color: var(--olive-dark);
}

.editor-btn--primary {
  background: var(--olive);
  color: #ffffff;
}

.editor-btn--primary:hover {
  background: var(--olive-dark);
}

@media (max-width: 860px) {
  .workspace-layout.editor-open {
    padding-right: 0;
  }

  .studio-bar {
    top: 10px;
    left: 10px;
  }

  .studio-toggle-btn,
  .studio-guest-btn {
    padding: 7px 11px;
    font-size: 11px;
  }

  .lightbox__nav--prev {
    left: 8px;
  }

  .lightbox__nav--next {
    right: 8px;
  }
}


/* Personalized Guest Greeting Elements */
.guest-hero-pill {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  max-width: calc(100% - 32px);
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(34, 42, 22, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.guest-invite-plaque {
  margin: 10px auto 12px;
  padding: 12px 18px;
  max-width: 320px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(103, 115, 79, 0.35);
  box-shadow: 0 6px 18px rgba(62, 73, 44, 0.08);
}

.guest-invite-plaque__name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--olive-dark);
  line-height: 1.25;
}

.guest-invite-plaque__note {
  margin-top: 6px;
  font-size: 11.5px;
  font-style: italic;
  color: var(--olive-muted);
}

/* 5-tab Editor & Invites UI */
.editor-tabs--5 {
  grid-template-columns: repeat(5, 1fr);
}

.editor-tabs--5 .editor-tab {
  font-size: 10.5px;
  padding: 7px 2px;
}

.editor-btn--full {
  width: 100%;
  flex: none;
}

.editor-footer--3 {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.2fr;
  gap: 6px;
}

.generated-link-box {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: #f4f7ee;
  border: 1px solid rgba(103, 115, 79, 0.35);
}

.generated-link-box__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 6px;
}

.generated-link-box__input {
  width: 100%;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid #ced6be;
  font-size: 11px;
  color: #2d351f;
  background: #ffffff;
  margin-bottom: 8px;
}

.generated-link-box__actions {
  display: flex;
  gap: 8px;
}

.invite-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.invite-row {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #e3e8d8;
  background: #fafbf8;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.invite-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.invite-row__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--olive-dark);
}

.invite-row__side {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(103, 115, 79, 0.14);
  color: var(--olive-dark);
}

.invite-row__url {
  font-size: 10.5px;
  color: var(--olive-muted);
  word-break: break-all;
}

.invite-row__actions {
  display: flex;
  gap: 6px;
}

.empty-mini {
  font-size: 11.5px;
  color: var(--olive-muted);
  font-style: italic;
}

.admin-url-row {
  display: flex;
  gap: 6px;
}

.admin-url-row input {
  flex: 1;
}

.admin-sec-msg,
.cloud-save-toast {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  background: rgba(103, 115, 79, 0.12);
  color: var(--olive-dark);
  border: 1px solid rgba(103, 115, 79, 0.3);
}

.cloud-save-toast {
  margin: 0 16px 12px;
  text-align: center;
}

/* Admin Login Modal */
.admin-login-card {
  width: 100%;
  max-width: 370px;
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(103, 115, 79, 0.25);
}

.admin-login-card__icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.admin-login-card__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 6px;
}

.admin-login-card__sub {
  font-size: 12px;
  color: var(--olive-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-login-input {
  width: 100%;
  padding: 11px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border-olive);
  font-size: 13px;
  outline: none;
  text-align: center;
}

.admin-login-input:focus {
  border-color: var(--olive-dark);
}

.admin-login-error {
  font-size: 11.5px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 7px 10px;
}

.admin-login-back {
  display: inline-block;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}
