:root {
  --maroon-deep: #2b030e;
  --maroon-darker: #1a0208;
  --maroon: #7a0c2e;
  --maroon-card: #320412;
  --gold: #d4af37;
  --gold-soft: #e6ca65;
  --cream: #fdfbf7;
  --cream-muted: rgba(253, 251, 247, 0.72);
  --desk-bg: #fbf7f0;
  --desk-card: #ffffff;
  --desk-text: #2b030e;
  --desk-muted: #7b666b;
  --desk-border: #eadfce;
  --max-w: 70rem;
}

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

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--maroon-darker);
  color: var(--cream);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

.font-display { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-handwritten { font-family: 'Caveat', cursive; }

.container {
  width: min(var(--max-w), calc(100vw - 6rem));
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .container {
    width: calc(100vw - 3.5rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.gold-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.text-gold-gradient {
  background: linear-gradient(135deg, #fff3d1 0%, #e6ca65 45%, #b88c28 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(26, 2, 8, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  width: 100%;
}
.nav-bar {
  width: min(var(--max-w), calc(100vw - 6rem));
  margin: 0 auto;
  padding: 0.95rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.75rem;
}
@media (max-width: 768px) {
  .nav-bar { width: calc(100vw - 3.5rem); padding: 0.9rem 0; }
}
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--cream);
  font-size: 1.65rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-logo svg { width: 14px; height: 14px; fill: var(--gold); stroke: var(--gold); transform: translateY(-2px); transition: transform 0.25s; }
.brand-logo:hover svg { transform: translateY(-2px) scale(1.25); }

.nav-actions-desktop {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.55rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-dropdown-drawer {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem 1.2rem;
  background: rgba(22, 2, 7, 0.98);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}
.mobile-dropdown-drawer.open { display: flex; }

@media (max-width: 767px) {
  .nav-actions-desktop { display: none !important; }
  .mobile-menu-toggle { display: inline-flex; }
}
@media (min-width: 768px) {
  .mobile-dropdown-drawer { display: none !important; }
}

.nav-link {
  color: var(--cream);
  text-decoration: none;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.1); }
.nav-btn-outline { border-color: rgba(212, 175, 55, 0.6); color: var(--gold); }
.nav-btn-outline:hover { background: var(--gold); color: var(--maroon-deep); }
.nav-btn-active { background: var(--gold); color: var(--maroon-deep); font-weight: 700; }

/* Sticky Breadcrumb Bar */
.breadcrumb-bar {
  position: sticky;
  top: 57px;
  z-index: 95;
  background: rgba(43, 3, 14, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  padding: 0.65rem 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  display: none;
}
.breadcrumb-bar.active { display: block; }
.breadcrumb-inner {
  width: min(var(--max-w), calc(100vw - 6rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
@media (max-width: 768px) {
  .breadcrumb-inner { width: calc(100vw - 3.5rem); }
}
.crumb-trail { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; color: rgba(230, 202, 101, 0.7); }
.crumb-link { color: rgba(230, 202, 101, 0.85); cursor: pointer; text-decoration: none; background: none; border: none; font: inherit; }
.crumb-link:hover { color: var(--gold); text-decoration: underline; }
.crumb-current { color: var(--cream); font-style: italic; font-weight: 600; }

.admin-only { display: none !important; }
body.is-admin .admin-only { display: inline-flex !important; }
.admin-only-block { display: none !important; }
body.is-admin .admin-only-block { display: block !important; }

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6.5rem 2rem 5.5rem;
  overflow: hidden;
  background-color: var(--maroon-deep);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  opacity: 0.68;
  z-index: 1;
  pointer-events: none;
}
.hero-overlay-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(74, 5, 25, 0.25), rgba(26, 2, 8, 0.93) 76%);
  z-index: 2;
}
.hero-overlay-bottom {
  position: absolute;
  inset: auto 0 0 0;
  height: 14rem;
  background: linear-gradient(to top, var(--maroon-darker), transparent);
  z-index: 2;
}
.hero-content { position: relative; z-index: 10; max-width: 54rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.42em; color: var(--gold-soft); text-transform: uppercase; }
.hero-heading { margin-top: 1.25rem; font-size: clamp(3.5rem, 11.5vw, 9rem); line-height: 0.88; font-weight: 600; }
.hero-subtitle { margin-top: 1.65rem; max-width: 36rem; font-size: clamp(1.15rem, 2.5vw, 1.5rem); color: rgba(253, 251, 247, 0.88); font-style: italic; line-height: 1.5; }

.timer-wrapper {
  margin-top: 2.75rem;
  background: rgba(26, 2, 8, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 1.15rem;
  padding: 1.35rem 2.25rem;
  backdrop-filter: blur(6px);
  max-width: 100%;
}
.timer-label { font-size: 10px; letter-spacing: 0.35em; color: var(--gold-soft); text-transform: uppercase; font-weight: 600; }
.timer-grid { display: flex; align-items: flex-end; justify-content: center; gap: 1.75rem; margin-top: 0.75rem; }
.timer-num {
  font-size: clamp(2.1rem, 4.8vw, 3.25rem);
  line-height: 1;
  color: var(--gold);
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.timer-unit { margin-top: 0.4rem; font-size: 9px; letter-spacing: 0.28em; color: rgba(253, 251, 247, 0.65); text-transform: uppercase; }

.milestone-pill {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.42);
  color: var(--gold-soft);
  padding: 0.42rem 1.15rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.scroll-cue { margin-top: 2.75rem; font-size: 10px; letter-spacing: 0.35em; color: var(--gold); text-transform: uppercase; text-decoration: none; }

/* Vertical Breathing Space */
.section-block {
  padding-top: 7.5rem;
  padding-bottom: 3.5rem;
}
@media (max-width: 768px) {
  .section-block {
    padding-top: 4.75rem;
    padding-bottom: 2.75rem;
  }
}
.inner-page-view {
  padding-top: 3.5rem !important;
  padding-bottom: 4.5rem !important;
}

.section-head { text-align: center; padding: 0 1.5rem; margin-bottom: 1.5rem; }
.section-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.35em; color: rgba(230, 202, 101, 0.75); text-transform: uppercase; }
.section-title { margin-top: 0.5rem; font-size: clamp(2.25rem, 5vw, 3.35rem); font-weight: 600; color: var(--cream); }

/* Section 3: Khubsoorat Yaadein */
.highlights-reel {
  display: flex;
  gap: 2.25rem;
  overflow-x: auto;
  padding: 2.75rem max(3rem, calc((100vw - var(--max-w)) / 2)) 4.25rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.highlights-reel::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
  .highlights-reel {
    padding: 2.25rem calc((100vw - 264px) / 2) 3.5rem;
    gap: 1.5rem;
  }
}

/* Polaroid Card UI */
.polaroid-card {
  background: #ffffff;
  color: #1e1b18;
  padding: 12px 12px 22px 12px;
  border-radius: 3px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.52), 0 3px 8px rgba(0, 0, 0, 0.25);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
  cursor: pointer;
  flex-shrink: 0;
  scroll-snap-align: center;
  position: relative;
  width: 264px;
  max-width: calc(100vw - 4.5rem);
}
.polaroid-card.is-stack::after {
  content: "";
  position: absolute;
  inset: 5px -5px -5px 5px;
  background: #f5f0e6;
  border: 1px solid #dcd5c7;
  border-radius: 3px;
  z-index: -1;
  transform: rotate(2.1deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.polaroid-card:hover {
  transform: scale(1.04) rotate(0deg) !important;
  z-index: 30;
  box-shadow: 0 24px 44px rgba(212, 175, 55, 0.32), 0 12px 22px rgba(0, 0, 0, 0.65);
}
.polaroid-img-wrap { position: relative; width: 100%; height: 295px; background: #2b030e; overflow: hidden; }
.polaroid-img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 22%); display: block; }
.stack-count-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(26, 2, 8, 0.86);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.polaroid-caption {
  margin-top: 0.85rem;
  width: 100%;
  font-size: 1.32rem;
  line-height: 1.25;
  color: #2b030e;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4rem;
}
.polaroid-tag {
  display: block;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #777;
  margin-top: 4px;
}

.admin-card-toolbar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: none;
  justify-content: space-between;
  gap: 4px;
  z-index: 35;
}
body.is-admin .admin-card-toolbar { display: flex; }
.adm-mini-btn {
  background: rgba(26, 2, 8, 0.92);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.6);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.adm-mini-btn:hover { background: var(--gold); color: var(--maroon-darker); }
.adm-mini-btn.danger { background: rgba(153, 27, 27, 0.92); color: #fff; border-color: #ef4444; }

/* 7 Chapters Bento Grid */
.bento-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.75rem;
}
@media (min-width: 640px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); auto-rows: 18rem; gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(6, 1fr); auto-rows: 16.5rem; gap: 1.5rem; }
  .col-span-4 { grid-column: span 4 / span 4; }
  .col-span-2 { grid-column: span 2 / span 2; }
  .row-span-2 { grid-row: span 2 / span 2; }
}
.chapter-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 1.25rem;
  background-color: var(--maroon-deep);
  padding: 1.65rem 1.5rem;
  color: var(--cream);
  border: 1px solid rgba(212, 175, 55, 0.28);
  cursor: pointer;
  min-height: 18rem;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.65);
}
@media (max-width: 639px) {
  .chapter-tile {
    width: 100%;
    aspect-ratio: 1 / 0.96;
  }
}
.chapter-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-pos, 50% 22%);
  opacity: 0.78;
  transition: transform 1.1s ease;
}
.chapter-tile:hover .chapter-tile-img { transform: scale(1.05); }
.chapter-tile-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26, 2, 8, 0.95) 14%, rgba(43, 3, 14, 0.35) 58%, transparent); }
.chapter-tile-body { position: relative; z-index: 5; }
.chapter-meta { font-size: 10px; font-weight: 600; letter-spacing: 0.28em; color: var(--gold); text-transform: uppercase; }
.chapter-name { margin-top: 0.3rem; font-size: clamp(1.75rem, 3.5vw, 2.3rem); line-height: 1.12; font-weight: 600; }
.chapter-blurb { margin-top: 0.45rem; max-width: 28rem; font-size: 0.86rem; color: rgba(253, 251, 247, 0.78); line-height: 1.5; }
.vault-bento-tile {
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.32), transparent 62%), var(--maroon-card);
}

/* Spread Visual Image Tiles */
.spreads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.6rem;
  margin: 1.5rem 0 3.25rem;
}
.spread-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 1.15rem;
  background-color: var(--maroon-deep);
  padding: 1.5rem 1.35rem;
  color: var(--cream);
  border: 1px solid rgba(212, 175, 55, 0.32);
  cursor: pointer;
  min-height: 16.5rem;
  aspect-ratio: 4 / 3.6;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.65);
  transition: transform 0.28s ease, border-color 0.28s ease;
}
.spread-tile:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.spread-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-pos, 50% 22%);
  opacity: 0.78;
  transition: transform 1s ease;
}
.spread-tile:hover .spread-tile-img {
  transform: scale(1.06);
}
.spread-tile-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 2, 8, 0.95) 14%, rgba(43, 3, 14, 0.38) 60%, transparent);
}
.spread-tile-body {
  position: relative;
  z-index: 5;
}

.polaroid-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2.75rem 2.25rem;
  justify-items: center;
  margin-top: 2rem;
  padding: 0.75rem 0.25rem 1.5rem;
}
.polaroid-masonry .polaroid-card { width: 100%; max-width: 268px; }
.polaroid-masonry .polaroid-img-wrap { width: 100%; height: 298px; }

/* Monthly Note & Vault Promo */
.note-vault-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; margin-top: 6rem; }
@media (min-width: 1024px) { .note-vault-grid { grid-template-columns: 3fr 2fr; } }
.monthly-note-card {
  background: linear-gradient(145deg, #2b030e, #1f020a);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 1.25rem;
  padding: 2.5rem 1.85rem;
  position: relative;
}
.monthly-quote { margin-top: 1.2rem; font-size: clamp(1.4rem, 2.7vw, 2.05rem); line-height: 1.42; color: var(--cream); font-style: italic; }
.vault-promo-card {
  background: var(--maroon-deep);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 1.25rem;
  padding: 2.5rem 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.vault-promo-card:hover { border-color: var(--gold); transform: translateY(-3px); }

/* Cream Album Desk */
.album-desk-section {
  background-color: var(--desk-bg);
  color: var(--desk-text);
  min-height: 92vh;
  padding: 3.5rem 0 6rem;
  display: none;
}
.desk-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.28em; color: #9c7a54; text-transform: uppercase; }
.desk-title { font-size: clamp(2.2rem, 4.5vw, 3.25rem); color: var(--maroon); font-weight: 600; margin-top: 0.25rem; }
.desk-stats { font-size: 0.86rem; color: var(--desk-muted); margin-top: 0.35rem; }

.desk-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  background: #f2eae0;
  padding: 0.4rem;
  border-radius: 1rem;
  margin-top: 1.75rem;
  border: 1px solid var(--desk-border);
}
.desk-tab-btn {
  background: transparent;
  border: none;
  color: #5a3a42;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.desk-tab-btn.active {
  background: var(--maroon);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(122, 12, 46, 0.25);
}

.desk-upload-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.25rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .desk-upload-layout { grid-template-columns: 1fr 380px; }
}
.desk-dropzone {
  background: #fdfaf5;
  border: 2px dashed #decbb4;
  border-radius: 1.15rem;
  padding: 3.25rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.desk-dropzone:hover { border-color: var(--maroon); background: #fffdf9; }
.desk-sidebar-card {
  background: var(--desk-card);
  border: 1px solid var(--desk-border);
  border-radius: 1.15rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(43, 3, 14, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.desk-label { display: block; font-size: 12px; font-weight: 600; color: var(--desk-text); margin-bottom: 0.35rem; }
.desk-hint { font-size: 11px; color: var(--desk-muted); margin-top: 0.3rem; }
.desk-input {
  width: 100%;
  background: #faf6f0;
  border: 1px solid #dfd3c3;
  color: var(--desk-text);
  padding: 0.65rem 0.85rem;
  border-radius: 0.6rem;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}
.desk-input:focus { border-color: var(--maroon); background: #fff; }

.desk-pill-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
.desk-pill {
  background: #f6efe6;
  border: 1px solid #e2d5c4;
  color: #4a2530;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.desk-pill:hover, .desk-pill.selected { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.desk-tag-chip {
  background: #efe4d2;
  color: #4a2530;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.toggle-switch {
  position: relative;
  width: 42px;
  height: 24px;
  background: #dfd3c3;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  flex-shrink: 0;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch.on { background: var(--maroon); }
.toggle-switch.on::after { transform: translateX(18px); }

.desk-submit-btn {
  width: 100%;
  background: var(--maroon);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}
.desk-submit-btn:disabled { background: #b98b97; cursor: not-allowed; }

.staged-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.15rem;
  margin-top: 1.5rem;
}
.staged-card {
  background: #ffffff;
  border: 1px solid var(--desk-border);
  border-radius: 0.9rem;
  padding: 0.75rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.staged-card img { width: 100%; height: 185px; object-fit: cover; border-radius: 0.5rem; }

.photo-edit-panel {
  background: #fdfaf5;
  border: 1px solid var(--desk-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 32px rgba(43, 3, 14, 0.06);
}
@media (min-width: 860px) {
  .photo-edit-panel { grid-template-columns: 280px 1fr; }
}
.photo-edit-preview {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 1rem;
  background: #2b030e;
}

.hero-picker-scroll {
  max-height: 280px;
  overflow-y: auto;
  background: #f6efe6;
  border: 1px solid var(--desk-border);
  border-radius: 1rem;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 0.65rem;
}
.hero-pick-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.65rem;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}
.hero-pick-thumb:hover { transform: scale(1.03); }
.hero-pick-thumb.selected { border-color: var(--maroon); box-shadow: 0 0 0 2px #fff inset; }

/* Slideshow Progress Bar */
.slideshow-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  display: none;
}
.slideshow-progress-track.active { display: block; }
.slideshow-progress-bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.1s linear;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 1, 4, 0.94);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: var(--maroon-deep);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  max-width: 44rem;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  max-height: 92vh;
  overflow-y: auto;
  color: var(--cream);
}
.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1.1rem;
  background: none;
  border: none;
  color: var(--cream-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.wax-seal-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #dc2626 0%, #991b1b 65%, #450a0a 100%);
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.55), inset 0 3px 6px rgba(255, 255, 255, 0.3);
  border: 2px dashed rgba(212, 175, 55, 0.45);
  color: var(--gold-soft);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 1.25rem auto;
  user-select: none;
}
.wax-seal-btn.breaking { animation: sealCrack 0.7s forwards ease-in-out; }
@keyframes sealCrack {
  0% { transform: scale(1); }
  40% { transform: scale(1.2) rotate(14deg); }
  100% { transform: scale(0) rotate(-25deg); opacity: 0; }
}

.input-field {
  width: 100%;
  background: rgba(15, 1, 5, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--cream);
  padding: 0.65rem 0.9rem;
  border-radius: 0.55rem;
  font-family: inherit;
  font-size: 0.88rem;
  margin-top: 0.3rem;
  outline: none;
}
.input-field:focus { border-color: var(--gold); }
.btn-gold {
  background: var(--gold);
  color: var(--maroon-darker);
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

.vault-tiles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.vault-folder-tile {
  background: rgba(20, 1, 7, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 0.95rem;
  padding: 1.35rem 1rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.vault-folder-tile.active, .vault-folder-tile:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.15); }

/* Floating Audio Player Positioned on Bottom-Left */
.floating-audio-bar {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 9500;
  background: rgba(26, 2, 8, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
}

/* Custom Maroon & Gold Toast Banner */
.custom-toast-container {
  position: fixed;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9800;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(92vw, 28rem);
  pointer-events: none;
}
.custom-toast {
  background: linear-gradient(145deg, #2b030e, #1a0208);
  border: 1px solid var(--gold);
  color: var(--cream);
  padding: 0.9rem 1.25rem;
  border-radius: 0.9rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  pointer-events: auto;
  animation: toastSlideIn 0.25s ease-out;
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-footer {
  margin-top: 7.5rem;
  background: var(--maroon-deep);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding: 4.5rem 1.75rem 5.5rem;
  text-align: center;
}

/* --- added: accessibility & performance --- */
@media (prefers-reduced-motion: reduce){ *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important} }
@media (max-width:768px){ body.grain::before{display:none} }
[role="button"]:focus-visible, button:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }
