/* ==========================================================================
   Wedding invitation — yorqin, bayramona uslub
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #fff8f4;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 182, 193, 0.18);
  --surface-strong: rgba(255, 138, 149, 0.12);
  --border: rgba(232, 165, 184, 0.45);
  --border-strong: rgba(218, 112, 147, 0.5);
  --gold: #c9a227;
  --gold-bright: #e6bc3a;
  --gold-soft: rgba(201, 162, 39, 0.85);
  --champagne: #6b4a42;
  --text: #3d2c29;
  --text-muted: rgba(61, 44, 41, 0.58);
  --rose: #e85d75;
  --rose-deep: #c94f6f;
  --blush: #ffe4ec;
  --celebrate-shadow: 0 20px 50px rgba(232, 165, 184, 0.22), 0 8px 24px rgba(255, 200, 160, 0.15);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-ui: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
  --dock-h: calc(3.65rem + env(safe-area-inset-bottom, 0px));
  --fab-safe: calc(var(--dock-h) + 0.85rem);
  /* Kalendar yon bezaklari (keng ekran) */
  --ornament-opacity: 0.82;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.page {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(15px, 2.8vw, 17px);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: var(--dock-h);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 900px) {
  body.page {
    padding-bottom: 0;
  }
}

body.is-loaded .app-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ----- Loader ----- */
.app-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fff5f0 0%, #ffe8f0 40%, #fff9f5 100%);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.app-loader__brand {
  text-align: center;
}

.app-loader__mono {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--rose-deep);
}

.app-loader__line {
  display: block;
  width: 56px;
  height: 2px;
  margin: 1.25rem auto;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--rose), transparent);
}

.app-loader__txt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ----- Ambient ----- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 55% at 50% -8%, rgba(255, 218, 185, 0.65), transparent 52%),
    radial-gradient(ellipse 70% 50% at 100% 28%, rgba(255, 182, 193, 0.42), transparent 48%),
    radial-gradient(ellipse 65% 48% at 0% 72%, rgba(186, 230, 253, 0.35), transparent 46%),
    radial-gradient(ellipse 50% 40% at 80% 85%, rgba(255, 237, 160, 0.28), transparent 42%),
    linear-gradient(180deg, #fff9f5 0%, #fff0f5 48%, #fff8f2 100%);
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.ambient__orb--a {
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  top: -15%;
  right: -20%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.55), transparent 68%);
  animation: orb-drift 28s ease-in-out infinite alternate;
}
.ambient__orb--b {
  width: min(55vw, 340px);
  height: min(55vw, 340px);
  bottom: 10%;
  left: -15%;
  background: radial-gradient(circle, rgba(255, 218, 185, 0.5), transparent 68%);
  animation: orb-drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes orb-drift {
  to {
    transform: translate(18px, 22px) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient__orb--a,
  .ambient__orb--b {
    animation: none;
  }
}

/* ----- Skip ----- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, var(--rose-deep), var(--gold));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}
.skip-link:focus {
  left: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  z-index: 2;
  min-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 12vw, 8rem) 1.5rem 5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}

.hero__frame {
  position: absolute;
  inset: clamp(1rem, 4vw, 2rem);
  z-index: 1;
  border: 2px solid rgba(255, 182, 193, 0.45);
  border-radius: 4px;
  pointer-events: none;
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 12px 40px rgba(255, 182, 193, 0.12);
}

.hero__frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 2px;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(100%, 28rem);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  padding-inline: clamp(0.5rem, 3vw, 1rem);
}

@media (min-width: 900px) {
  .hero__content {
    width: min(100%, 38rem);
    max-width: 38rem;
    padding-inline: clamp(1rem, 4vw, 2rem);
  }
}

@media (min-width: 1200px) {
  .hero__content {
    width: min(100%, 44rem);
    max-width: 44rem;
  }
}

@media (min-width: 1536px) {
  .hero {
    padding-top: clamp(4.5rem, 10vh, 7rem);
    padding-bottom: clamp(5rem, 12vh, 8rem);
  }

  .hero__content {
    width: min(100%, 48rem);
    max-width: 48rem;
  }
}

.hero__spark {
  flex-shrink: 0;
  opacity: 0.92;
  line-height: 1;
}

.hero__corners {
  position: absolute;
  inset: clamp(1rem, 4vw, 2rem);
  pointer-events: none;
  z-index: 1;
}

.hero__corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: rgba(201, 162, 39, 0.42);
  border-style: solid;
  border-width: 0;
}

.hero__corner--tl {
  top: 0;
  left: 0;
  border-top-width: 2px;
  border-left-width: 2px;
  border-radius: 2px 0 0 0;
}
.hero__corner--tr {
  top: 0;
  right: 0;
  border-top-width: 2px;
  border-right-width: 2px;
  border-radius: 0 2px 0 0;
}
.hero__corner--bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-radius: 0 0 0 2px;
}
.hero__corner--br {
  bottom: 0;
  right: 0;
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-radius: 0 0 2px 0;
}

.invite-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 17rem;
  margin: 0 auto 1rem;
  color: var(--gold);
}

.invite-divider--lg {
  max-width: 22rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 900px) {
  .invite-divider--lg {
    max-width: min(36rem, 100%);
  }
}

.invite-divider--sm {
  max-width: 13rem;
  margin: 0.65rem auto 1.15rem;
}

.invite-divider--foot {
  max-width: 11rem;
  margin: 0 auto 0.85rem;
  opacity: 0.88;
}

.invite-divider__line {
  flex: 1;
  height: 1px;
  min-width: 0.75rem;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.55), rgba(232, 93, 117, 0.35), transparent);
}

.invite-divider__gem {
  flex-shrink: 0;
  font-size: 0.68rem;
  line-height: 1;
  color: var(--rose);
  opacity: 0.85;
}

.invite-divider__flourish {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--rose-deep);
  opacity: 0.4;
}

.hero__guest-for {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.1vw + 0.65rem, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: rgba(72, 46, 38, 0.92);
  text-align: center;
  text-wrap: balance;
  max-width: min(100%, 34rem);
  margin-inline: auto;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--rose-deep);
}

/* Katta letter-spacing oxirgi harfdan keyin bo'sh joy qoldiradi — markaz siljiydi */
.hero__eyebrow-text {
  letter-spacing: 0.38em;
  margin-right: -0.19em;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 0.85rem;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.85rem, 2.4vw + 2rem, 5.85rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-align: center;
}

.hero__name {
  display: block;
  max-width: 100%;
  background: linear-gradient(168deg, var(--rose-deep) 10%, #b83855 42%, var(--gold-bright) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 14px rgba(232, 93, 117, 0.14));
}

.hero__conj {
  display: block;
  align-self: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 1.4vw + 1rem, 2.35rem);
  line-height: 1.2;
  color: var(--rose);
  margin: 0.25rem 0;
  letter-spacing: 0.12em;
  padding-inline: 0.2em;
  text-align: center;
}

@media (min-width: 900px) {
  .hero__title {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.6rem, 2.2vw, 1.75rem);
    width: 100%;
  }

  .hero__name--groom {
    flex: 1 1 0;
    min-width: 0;
    text-align: end;
  }

  .hero__name--bride {
    flex: 1 1 0;
    min-width: 0;
    text-align: start;
  }

  .hero__conj {
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
    padding-inline: 0.15em;
  }
}

.hero__ayah {
  margin: 0 auto 1.35rem;
  padding: 0 0.75rem;
  max-width: min(36rem, 100%);
  text-align: center;
}

.hero__ayah-line {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.1vw + 0.75rem, 1.28rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--champagne);
}

.hero__ayah-ref {
  margin: 0;
  font-size: clamp(0.72rem, 2.1vw, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero__when {
  margin: 0 0 2.25rem;
  font-size: clamp(0.78rem, 2.4vw, 0.88rem);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.hero__sep {
  margin: 0 0.45rem;
  opacity: 0.45;
  color: var(--gold);
}

.hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: min(28rem, 100%);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .hero__actions {
    gap: 1rem;
    max-width: min(32rem, 100%);
  }
}

.hero__actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media (max-width: 380px) {
  .hero__actions {
    grid-template-columns: 1fr;
    max-width: 18rem;
  }
}

.hero__scroll {
  position: absolute;
  bottom: clamp(1.5rem, 5vw, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  padding: 0.5rem;
}

.hero__scroll-line {
  display: block;
  width: 2px;
  border-radius: 2px;
  height: 48px;
  margin: 0 auto;
  background: linear-gradient(to bottom, var(--rose), var(--gold-bright), transparent);
  animation: scroll-line 2.4s ease-in-out infinite;
}

@keyframes scroll-line {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line {
    animation: none;
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s;
}

.btn--gold {
  background: linear-gradient(145deg, #f0d47a 0%, #d4a827 48%, #c9a227 100%);
  color: #2b2218;
  box-shadow: 0 12px 36px rgba(201, 162, 39, 0.35), 0 4px 12px rgba(255, 182, 193, 0.25);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(201, 162, 39, 0.4), 0 6px 16px rgba(255, 182, 193, 0.3);
}

.btn--line {
  background: rgba(255, 255, 255, 0.75);
  color: var(--rose-deep);
  border: 2px solid rgba(255, 182, 193, 0.65);
}
.btn--line:hover {
  border-color: var(--rose);
  background: #fff;
  box-shadow: var(--celebrate-shadow);
}

.btn--map {
  width: 100%;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border: 1px solid rgba(255, 182, 193, 0.45);
}
.btn--map:hover {
  border-color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.95);
}

.btn--map__icon {
  flex-shrink: 0;
}

.btn--wide {
  width: 100%;
}

/* ----- Shell & panels ----- */
.shell {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 38rem);
  margin: 0 auto;
  padding: 0 0 4rem;
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 4vw, 2rem);
}

@media (min-width: 1100px) {
  .shell {
    width: min(100% - 3rem, 72rem);
    max-width: 72rem;
  }
}

.panel {
  position: relative;
  padding: clamp(1.75rem, 5vw, 2.35rem);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 248, 252, 0.98) 100%);
  border: 1px solid rgba(255, 182, 193, 0.4);
  border-radius: var(--radius);
  box-shadow:
    var(--celebrate-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 0 0 1px rgba(255, 182, 193, 0.12);
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(201, 162, 39, 0.12);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
  z-index: 0;
}

.panel--letter {
  border-left: 4px solid var(--rose);
}

.panel--letter .panel__accent {
  display: none;
}

.panel__body {
  position: relative;
}

.lead {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.15rem);
  font-weight: 600;
  color: var(--rose-deep);
}

.prose {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.panel--letter .prose {
  font-size: clamp(1.02rem, 2.8vw, 1.1rem);
  line-height: 1.88;
}

.panel--letter .prose + .prose {
  margin-top: 1.05rem;
}

.panel--letter .prose--letter-custom,
.panel--quote .prose--letter-custom {
  white-space: pre-line;
}

.panel--quote {
  border: none;
  background: transparent;
  box-shadow: none;
  padding-left: 1rem;
  padding-right: 1rem;
}

.panel--quote::before {
  display: none;
}

.quote-block {
  margin: 0;
  padding: 1.75rem 1.5rem;
  border-left: 3px solid var(--gold-bright);
  background: linear-gradient(90deg, var(--blush), rgba(255, 255, 255, 0.65));
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-block p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.8vw, 1.45rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-muted);
}

.quote-block__foot {
  margin-top: 0.75rem;
}

/* Section headers */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.sec-head__text {
  flex: 1 1 auto;
  min-width: 0;
}

.sec-head__actions {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: flex-end;
  padding-bottom: 0.1rem;
}

.sec-head__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--rose-deep);
  text-decoration: none;
  border: 1px solid rgba(255, 182, 193, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(232, 165, 184, 0.12);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.sec-head__more:hover {
  border-color: rgba(232, 93, 117, 0.45);
  background: rgba(255, 236, 242, 0.95);
  color: var(--champagne);
}

@media (max-width: 520px) {
  .sec-head__actions {
    flex-basis: 100%;
    display: flex;
    justify-content: flex-end;
    margin-left: 0;
    padding-bottom: 0;
  }
}

.sec-head__ix {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(232, 93, 117, 0.35);
}

.sec-head__label {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
}

.sec-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.grid-info {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .grid-info {
    grid-template-columns: 1fr 1fr;
  }
}

.info-card {
  padding: clamp(1.2rem, 3.2vw, 1.45rem) clamp(1.2rem, 3.5vw, 1.55rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.info-card__label {
  margin: 0 0 0.5rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.info-card__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.8vw, 2.05rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.info-card__hint {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.count-lead {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.countdown__inner {
  position: relative;
  display: block;
  overflow: hidden;
  text-align: center;
  padding: 1rem 0.35rem;
  background: linear-gradient(160deg, #ffffff 0%, #fff5f8 100%);
  border: 1px solid rgba(255, 182, 193, 0.5);
  border-radius: 12px;
}

.countdown__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, transparent 35%, rgba(255, 218, 185, 0.45) 50%, transparent 65%);
  background-size: 200% 100%;
  animation: shine-sweep 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine-sweep {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.countdown__cell--pulse.is-tick .countdown__inner {
  animation: tick-pop 0.55s var(--ease);
}

@keyframes tick-pop {
  40% {
    transform: scale(1.04);
    border-color: rgba(232, 93, 117, 0.55);
  }
}

.countdown__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--rose-deep);
}

.countdown__num.countdown__num--flip {
  animation: num-flip 0.45s var(--ease);
}

@keyframes num-flip {
  from {
    opacity: 0.25;
    transform: translateY(-30%);
  }
}

.countdown__cap {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.countdown-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 1rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.countdown-legend abbr {
  text-decoration: none;
  border-bottom: 1px dotted rgba(61, 44, 41, 0.22);
  cursor: help;
}

.countdown-legend__dot {
  opacity: 0.35;
}

/* Venue */
.venue-lead {
  margin: 0 auto 0.75rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.9vw, 1.2rem);
  line-height: 1.65;
  color: rgba(61, 44, 41, 0.72);
  text-align: center;
}

.venue-name {
  margin: 0 0 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.5rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tool:hover {
  border-color: var(--gold-soft);
  color: var(--text);
}

.tool--link {
  text-decoration: none;
}

@media (max-width: 380px) {
  .tool-row {
    grid-template-columns: 1fr;
  }
}

/* Gallery */
.gallery-pro {
  position: relative;
}

.gallery-pro__shine {
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.35), transparent 42%, rgba(255, 218, 185, 0.28));
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.gallery-pro__viewport {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #ffeef5 0%, #fff9f5 100%);
  border: 1px solid rgba(255, 182, 193, 0.45);
  touch-action: manipulation;
}

.gallery-pro__viewport--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.gallery-pro__empty-msg {
  margin: 0;
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.gallery-pro__viewport .like-btn--gallery {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 6;
  margin: 0;
  padding: 0.32rem 0.58rem;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 182, 193, 0.5);
  box-shadow: 0 6px 20px rgba(232, 165, 184, 0.22);
}

.gallery-pane--layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s var(--ease);
  z-index: 1;
  pointer-events: none;
}

.gallery-pane--layer.is-visible {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.gallery-pane--layer .gallery__img--layer,
.gallery-pane--layer .gallery__vid--layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-pane--layer:not(.is-video) .gallery__vid--layer {
  display: none;
}

.gallery-pane--layer.is-video .gallery__img--layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gallery-pane--layer.is-video .gallery__vid--layer {
  display: block;
}

.gallery-pane--layer.is-visible:not(.is-video) .gallery__img--layer {
  animation: ken 12s ease-out forwards;
}

@keyframes ken {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

.gallery-pro__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.gallery-pro__dots .gallery__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(61, 44, 41, 0.15);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.gallery-pro__dots .gallery__dot[aria-selected="true"] {
  background: var(--rose);
  transform: scale(1.35);
}

.gallery-pro__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

.gallery-pro__counter {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}


.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 182, 193, 0.55);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  box-shadow: 0 6px 18px rgba(255, 182, 193, 0.2);
}

.like-btn:hover {
  background: var(--blush);
  border-color: var(--rose);
}

.like-btn:active {
  transform: scale(0.97);
}

.like-btn__heart {
  color: var(--rose);
  font-size: 1rem;
  line-height: 1;
}

.like-btn--wish {
  min-width: 5rem;
  justify-content: center;
}

.panel.panel--memory {
  border-left: 4px solid rgba(232, 93, 117, 0.32);
}

.panel--memory::before {
  border-color: rgba(232, 93, 117, 0.14);
}

.memory-lead {
  margin: 0 0 1.5rem;
  max-width: none;
  width: 100%;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.memory-card {
  padding: clamp(1.35rem, 4vw, 1.85rem);
  border-radius: calc(var(--radius) - 6px);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 248, 252, 0.94) 48%,
    rgba(255, 252, 254, 0.96) 100%
  );
  border: 1px solid rgba(255, 182, 193, 0.42);
  box-shadow:
    0 10px 40px rgba(232, 165, 184, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.memory-form {
  display: grid;
  gap: 1.35rem;
  width: 100%;
  max-width: none;
  margin: 0;
}

.memory-form__row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 560px) {
  .memory-form__row {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: flex-end;
  }
}

.memory-form__field .float-label input {
  min-height: 2.85rem;
}

.memory-file {
  position: relative;
  display: block;
  cursor: pointer;
}

.memory-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.memory-file__ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 9.5rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border: 2px dashed rgba(255, 182, 193, 0.65);
  border-radius: calc(var(--radius) - 4px);
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 245, 249, 0.55) 100%);
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
}

.memory-file__icon {
  display: flex;
  color: rgba(232, 93, 117, 0.55);
  transition: color 0.2s ease, transform 0.2s ease;
}

.memory-file__title {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.memory-file__hint {
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: none;
  padding: 0 0.25rem;
}

.memory-file:hover .memory-file__ui,
.memory-file:focus-within .memory-file__ui {
  border-color: rgba(212, 162, 39, 0.55);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(232, 165, 184, 0.14);
  transform: translateY(-1px);
}

.memory-file:focus-within .memory-file__icon {
  color: var(--gold-soft);
}

.memory-file:focus-within .memory-file__ui {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 182, 193, 0.35),
    0 10px 32px rgba(232, 165, 184, 0.12);
}

.memory-form__submit {
  margin-top: 0.15rem;
}

.memory-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 0.15rem;
}

.btn--live {
  flex: 1 1 auto;
  min-width: 8.5rem;
  justify-content: center;
  padding: 0.72rem 1rem;
  font-size: 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--rose-deep);
  border: 1.5px solid rgba(232, 93, 117, 0.45);
  box-shadow: 0 4px 16px rgba(232, 165, 184, 0.12);
}

.btn--live:hover {
  border-color: var(--rose);
  background: #fff;
  box-shadow: var(--celebrate-shadow);
}

.btn--live-photo svg,
.btn--live-video svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.memory-live-actions--single {
  justify-content: flex-start;
  width: 100%;
  align-self: stretch;
}

.memory-live-actions--single .btn--live-camera {
  width: 100%;
  flex: 1 1 auto;
  max-width: none;
}

.memory-file-status {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 1.35rem;
}

.memory-picked {
  margin: 0 0 1rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(255, 182, 193, 0.38);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 248, 252, 0.55) 100%
  );
}

.memory-picked__heading {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.memory-picked__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.75rem, 1fr));
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .memory-picked__list {
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.75rem;
  }
}

.memory-picked__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(255, 182, 193, 0.38);
  box-shadow:
    0 6px 18px rgba(232, 165, 184, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.memory-picked__tile {
  position: relative;
  width: 100%;
}

.memory-picked__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  background: rgba(10, 8, 8, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.memory-picked__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-picked__thumb--vid {
  color: rgba(232, 93, 117, 0.65);
  background: linear-gradient(
    145deg,
    rgba(255, 248, 252, 0.98),
    rgba(255, 235, 242, 0.65)
  );
}

.memory-picked__thumb--vid svg {
  flex-shrink: 0;
}

.memory-picked__thumb--file {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.memory-picked__body {
  min-width: 0;
  padding: 0.45rem 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.memory-picked__name {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.memory-picked__size {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.memory-picked__remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: rgba(232, 93, 117, 0.75);
  cursor: pointer;
  line-height: 0;
  box-shadow: 0 2px 10px rgba(40, 24, 28, 0.18);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.memory-picked__remove:hover {
  background: rgba(232, 93, 117, 0.95);
  color: #fff;
  transform: scale(1.06);
}

.memory-live-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.65rem, env(safe-area-inset-top, 0px)) max(0.65rem, env(safe-area-inset-right, 0px))
    max(0.65rem, env(safe-area-inset-bottom, 0px)) max(0.65rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.memory-live-modal[hidden] {
  display: none !important;
}

/* Jonli kamera — brauzer to'liq ekran rejimi */
.memory-live-modal:fullscreen,
.memory-live-modal:-webkit-full-screen,
.memory-live-modal:-moz-full-screen {
  padding: max(0.5rem, env(safe-area-inset-top, 0px)) max(0.5rem, env(safe-area-inset-right, 0px))
    max(0.5rem, env(safe-area-inset-bottom, 0px)) max(0.5rem, env(safe-area-inset-left, 0px));
  align-items: stretch;
  justify-content: stretch;
}

.memory-live-modal:fullscreen .memory-live-modal__panel,
.memory-live-modal:-webkit-full-screen .memory-live-modal__panel,
.memory-live-modal:-moz-full-screen .memory-live-modal__panel {
  width: 100%;
  max-width: none;
  max-height: none;
  height: 100%;
  flex: 1;
  border-radius: 0;
}

.memory-live-modal:fullscreen .memory-live-modal__viewport,
.memory-live-modal:-webkit-full-screen .memory-live-modal__viewport,
.memory-live-modal:-moz-full-screen .memory-live-modal__viewport {
  flex: 1;
  min-height: 0;
  max-height: none;
  aspect-ratio: unset;
}

.memory-live-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 14, 0.82);
  backdrop-filter: blur(6px);
}

.memory-live-modal__panel {
  position: relative;
  z-index: 2;
  width: min(100%, 28rem);
  max-height: min(92vh, 640px);
  max-height: min(92dvh, 640px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: calc(var(--radius) - 4px);
  background: linear-gradient(165deg, rgba(40, 32, 36, 0.98) 0%, rgba(22, 18, 20, 0.99) 100%);
  border: 1px solid rgba(255, 182, 193, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.memory-live-modal__close {
  position: absolute;
  top: max(0.4rem, env(safe-area-inset-top, 0px));
  right: max(0.4rem, env(safe-area-inset-right, 0px));
  z-index: 4;
  min-width: 2.75rem;
  min-height: 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  color: rgba(255, 248, 252, 0.85);
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.memory-live-modal__viewport {
  position: relative;
  flex: 0 1 auto;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0808;
  aspect-ratio: 4 / 3;
  max-height: min(52vh, 52dvh, 22rem);
}

.memory-live-modal__viewport video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-live-modal__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 182, 193, 0.22);
  flex-shrink: 0;
}

.memory-live-mode {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.52rem 0.65rem;
  border: none;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 248, 252, 0.62);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.memory-live-mode:hover {
  color: rgba(255, 248, 252, 0.92);
}

.memory-live-mode.is-active {
  background: rgba(232, 93, 117, 0.58);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.memory-live-mode:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.memory-live-modal__mode {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.25rem;
  padding: 0.4rem 0 0.1rem;
  flex-shrink: 0;
  touch-action: manipulation;
}

.memory-live-modal__mode[hidden],
.memory-live-video-phase[hidden] {
  display: none !important;
}

.memory-live-modal__mode--video {
  flex-direction: column;
  gap: 0.35rem;
  min-height: auto;
}

.memory-live-rec-timer-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  width: 100%;
}

.memory-live-rec-timer-wrap[hidden] {
  display: none !important;
}

.memory-live-rec-timer {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: rgba(255, 248, 252, 0.95);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.memory-live-shutter {
  width: clamp(3.15rem, 15vw, 4.1rem);
  height: clamp(3.15rem, 15vw, 4.1rem);
  border-radius: 50%;
  border: 3px solid rgba(255, 248, 252, 0.92);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38);
  transition: transform 0.15s ease, box-shadow 0.2s;
  touch-action: manipulation;
  flex-shrink: 0;
}

.memory-live-shutter:hover {
  transform: scale(1.05);
}

.memory-live-shutter__inner {
  width: 72%;
  height: 72%;
  max-width: 3rem;
  max-height: 3rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0d47a 0%, #d4a827 78%);
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.35);
}

.memory-live-shutter--record .memory-live-shutter__inner--dot {
  width: 58%;
  height: 58%;
  max-width: 2.35rem;
  max-height: 2.35rem;
  border-radius: 50%;
  background: #e85d75;
  border: 3px solid rgba(255, 255, 255, 0.88);
}

.memory-live-video-phases {
  width: 100%;
}

.memory-live-video-phase {
  display: flex;
  justify-content: center;
}

.memory-live-video-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  width: 100%;
}

.memory-live-ctrl {
  width: clamp(2.65rem, 12vw, 3.15rem);
  height: clamp(2.65rem, 12vw, 3.15rem);
  border-radius: 50%;
  border: 2px solid rgba(255, 248, 252, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 248, 252, 0.95);
  padding: 0;
  transition: transform 0.15s, background 0.15s;
  touch-action: manipulation;
  flex-shrink: 0;
}

.memory-live-ctrl:hover {
  transform: scale(1.06);
}

.memory-live-ctrl--stop {
  background: rgba(232, 93, 117, 0.58);
  border-color: rgba(255, 182, 193, 0.48);
}

.memory-live-ctrl--pause,
.memory-live-ctrl--resume {
  background: rgba(255, 255, 255, 0.14);
}

.memory-live-modal__recnote {
  margin: 0;
  font-size: 0.75rem;
  text-align: center;
  color: rgba(242, 235, 227, 0.55);
  min-height: 1.2rem;
}

@media (max-width: 480px) {
  .memory-live-modal__panel {
    width: 100%;
    gap: 0.65rem;
    padding: max(2.85rem, calc(0.55rem + env(safe-area-inset-top, 0px))) 0.65rem 0.75rem;
    padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
    padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  .memory-live-modal__viewport {
    max-height: min(46dvh, 46vh, 15.5rem);
  }

  .memory-live-mode {
    font-size: 0.7rem;
    padding: 0.42rem 0.35rem;
    gap: 0.3rem;
  }

  .memory-live-mode svg {
    width: 18px;
    height: 18px;
  }

  .memory-live-video-row {
    gap: 0.75rem;
  }

  .memory-live-rec-timer {
    font-size: clamp(1.2rem, 6.5vw, 1.55rem);
  }

  .memory-live-ctrl svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 380px) {
  .memory-live-modal {
    padding-left: max(0.4rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.4rem, env(safe-area-inset-right, 0px));
  }

  .memory-picked__list {
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .memory-file:hover .memory-file__ui,
  .memory-file:focus-within .memory-file__ui {
    transform: none;
  }
}

.memory-form__msg {
  margin: 0;
  min-height: 1.25rem;
  text-align: center;
}

.nav-round {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--gold);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.nav-round:hover {
  background: var(--surface-strong);
  transform: scale(1.06);
}

/* Couple */
.couple-pro {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 420px) {
  .couple-pro {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .couple-pro__link {
    display: none;
  }
}

.couple-pro__link {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.person-card {
  text-align: center;
  padding: 1rem 0.5rem;
}

.person-card__ring {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(255, 237, 200, 0.95), rgba(255, 218, 185, 0.55));
  border: 2px solid rgba(255, 182, 193, 0.55);
  box-shadow: 0 16px 40px rgba(255, 182, 193, 0.28);
}

.person-card__ring span {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--gold);
}

.person-card__ring--rose {
  background: radial-gradient(circle at 30% 30%, rgba(255, 228, 236, 1), rgba(255, 182, 193, 0.45));
}

.person-card__name {
  margin: 0 0 0.35rem;
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 4.5vw, 1.95rem);
  font-weight: 400;
  color: var(--rose-deep);
}

.person-card__meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* RSVP form */
.panel--rsvp {
  border-color: rgba(255, 182, 193, 0.55);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 242, 248, 0.98) 100%);
}

.rsvp-lead {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.rsvp-progress {
  margin-bottom: 1.75rem;
}

.rsvp-progress__bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 182, 193, 0.25);
  overflow: hidden;
}

.rsvp-progress__fill {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rose), var(--gold-bright));
  transition: width 0.45s var(--ease);
}

.rsvp-progress__steps {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.form-pro__group {
  margin-bottom: 1.35rem;
}

.form-pro__group--inline-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  align-items: start;
}

.form-pro__group--inline-2 .float-label {
  min-width: 0;
}

@media (max-width: 640px) {
  .form-pro__group--inline-2 {
    grid-template-columns: 1fr;
  }
}

.form-pro__legend {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.choice-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

@media (min-width: 900px) {
  .choice-grid {
    flex-direction: row;
    align-items: stretch;
    gap: 0.65rem;
  }

  .choice {
    flex: 1 1 0;
    min-width: 0;
  }
}

.choice:hover {
  border-color: rgba(212, 184, 122, 0.35);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__ui {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.choice input:checked + .choice__ui {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 12px var(--gold);
}

.choice input:focus-visible + .choice__ui {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.choice:has(input:checked) {
  border-color: rgba(232, 93, 117, 0.45);
  background: rgba(255, 228, 236, 0.65);
}

.choice__txt {
  font-size: 0.9rem;
  font-weight: 500;
}

.float-label {
  display: block;
}

.float-label__text {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.float-label input,
.float-label textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 182, 193, 0.45);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.float-label input:focus,
.float-label textarea:focus {
  outline: none;
  border-color: rgba(232, 93, 117, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.28);
}

.float-label textarea {
  resize: vertical;
  min-height: 4rem;
}

.form-msg {
  margin: 1rem 0 0;
  min-height: 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-msg--ok {
  color: #8fd9b3;
}

.form-msg--err {
  color: #f0a8a8;
}

.wish-files-group {
  margin-bottom: 1.35rem;
}

.wish-files-group__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wish-files {
  display: block;
  cursor: pointer;
}

.wish-files input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.wish-files__ui {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(255, 182, 193, 0.65);
  border-radius: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s, background 0.2s;
}

.wish-files:hover .wish-files__ui,
.wish-files:focus-within .wish-files__ui {
  border-color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.95);
}

.wish-photos-hint {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.wish-photos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.wish-photos-preview[hidden] {
  display: none !important;
}

.wish-photo-thumb {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 182, 193, 0.45);
  background: rgba(255, 248, 252, 0.9);
  flex-shrink: 0;
}

.wish-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wish-photo-thumb__rm {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 1.65rem;
  height: 1.65rem;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 24, 28, 0.55);
  color: #fff;
  line-height: 0;
  transition: background 0.15s, transform 0.15s;
}

.wish-photo-thumb__rm:hover {
  background: rgba(232, 93, 117, 0.95);
  transform: scale(1.05);
}

/* Wishes: mobil — karusel; katta ekran — kartalar panjarasi */
.wish-layout {
  display: block;
}

.wish-pro__media {
  margin: 0 auto 0.25rem;
  width: 100%;
  max-width: 22rem;
  min-height: 0;
}

.wish-pro__media[hidden] {
  display: none !important;
}

.wish-pro__media-stack {
  position: relative;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto 1rem;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  background: rgba(255, 248, 252, 0.45);
  border: 1px solid rgba(255, 182, 193, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 16px rgba(232, 165, 184, 0.1);
}

.wish-pro__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.wish-pro__media-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.wish-pro__media-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.wish-pro__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius) - 6px);
}

.wish-cards-stage {
  display: none;
  margin-top: 0.5rem;
  overflow: hidden;
  width: 100%;
  container-type: inline-size;
  container-name: wish-strip;
}

.wish-cards-track.wish-cards-root {
  display: none;
  margin-top: 0;
}

@media (min-width: 900px) {
  .wish-pro--carousel {
    display: none !important;
  }

  .wish-cards-stage {
    display: block;
  }

  .wish-cards-track.wish-cards-root {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1.15rem;
    transition: transform 0.55s ease;
    will-change: transform;
  }

  .wish-cards-track.wish-cards-root .wish-card {
    flex: 0 0 min(300px, 30%);
    min-width: 0;
    max-width: none;
  }

  @supports (width: 1cqi) {
    .wish-cards-track.wish-cards-root .wish-card {
      flex: 0 0 calc((100cqi - 2.3rem) / 3);
    }
  }
}

.wish-card {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 252, 0.99) 100%);
  border: 1px solid rgba(255, 182, 193, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(232, 165, 184, 0.12);
  min-height: 100%;
  overflow: hidden;
  touch-action: manipulation;
}

.wish-card__media {
  position: relative;
  margin: 0 0 0.85rem;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(255, 182, 193, 0.38);
  background: rgba(255, 248, 252, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 4px 14px rgba(232, 165, 184, 0.12);
  flex-shrink: 0;
}

.wish-card__media--placeholder {
  background: linear-gradient(
    165deg,
    rgba(255, 252, 254, 1) 0%,
    rgba(255, 236, 242, 0.94) 100%
  );
}

.wish-card__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.wish-card__media-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.wish-card__media-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.wish-card__media-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius) - 6px);
}

.wish-card__media--placeholder .wish-card__media-slide img {
  object-fit: cover;
  object-position: center center;
  padding: 0;
  box-sizing: border-box;
}

.wish-card__text {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(42, 30, 32, 0.88);
  flex: 1;
}

.wish-card__from {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.wish-card__media .wish-card__like.like-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 4;
  margin: 0;
  padding: 0.3rem 0.55rem;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 182, 193, 0.5);
  box-shadow: 0 4px 16px rgba(232, 165, 184, 0.22);
}

/* Wishes */
.wish-pro__quote {
  margin: 0;
  padding: 0.35rem 1rem 1.25rem;
}

.wish-pro__text {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.75;
  color: rgba(42, 30, 32, 0.88);
  text-align: center;
}

.wish-pro__from {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.wish-pro__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.5rem;
}

.wish-pro__meta {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.wish-slide__wrap.is-fading {
  opacity: 0.35;
  transition: opacity 0.35s;
}

/* Galereya / tilaklar alohida sahifalar */
.shell--list {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 1.25rem) 1.1rem 3rem;
}

.list-page-nav {
  margin-bottom: 1.25rem;
}

.list-page-nav__back {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rose-deep);
  text-decoration: none;
}

.list-page-nav__back:hover {
  text-decoration: underline;
}

.memory-page-album {
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
}

.memory-page-album .memory-lead {
  margin-top: 0;
}

.list-page-head {
  margin-bottom: 1.5rem;
}

.list-page-head__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2rem);
  font-weight: 600;
  color: var(--text);
}

.list-page-head__sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.list-page-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.gallery-all__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem 1.1rem;
}

.gallery-all__cell {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gallery-all__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid rgba(255, 182, 193, 0.4);
  background: rgba(255, 248, 252, 0.65);
  cursor: zoom-in;
}

.gallery-all__media img,
.gallery-all__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-all__like.like-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  margin: 0;
  padding: 0.28rem 0.5rem;
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 182, 193, 0.5);
  box-shadow: 0 4px 12px rgba(232, 165, 184, 0.18);
}

.gallery-all__cap {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.gallery-all-lb {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.gallery-all-lb[hidden] {
  display: none !important;
}

.gallery-all-lb__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(45, 32, 38, 0.88);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.gallery-all-lb__x {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 2;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  font-size: 1.65rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.95);
  color: var(--rose-deep);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-all-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-deep);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: background 0.15s, transform 0.15s;
}

.gallery-all-lb__nav:hover {
  background: #fff;
}

.gallery-all-lb__nav--prev {
  left: max(0.5rem, env(safe-area-inset-left));
}

.gallery-all-lb__nav--next {
  right: max(0.5rem, env(safe-area-inset-right));
}

.gallery-all-lb__nav[hidden] {
  display: none !important;
}

.gallery-all-lb__stage {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: min(88vh, 900px);
  pointer-events: none;
}

.gallery-all-lb__stage img,
.gallery-all-lb__stage video {
  pointer-events: auto;
}

.gallery-all-lb__img {
  max-width: min(96vw, 1200px);
  max-height: min(88vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.gallery-all-lb__img[hidden] {
  display: none !important;
}

.gallery-all-lb__vid {
  max-width: min(96vw, 1200px);
  max-height: min(88vh, 900px);
  border-radius: 6px;
  background: #000;
}

.gallery-all-lb__vid[hidden] {
  display: none !important;
}

.wish-cards-root--all {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
  align-items: stretch;
  margin-top: 0.5rem;
}

/* Footer */
.foot {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
}

.foot__thanks {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.foot__sign {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  font-weight: 600;
}

.foot__names {
  display: inline-block;
}

.foot__amp {
  display: inline-block;
  margin: 0 0.5rem;
  font-style: italic;
  font-weight: 400;
  font-size: 0.55em;
  color: var(--text-muted);
}

/* Musiqa — yuqori o‘ng: pastki dock / galereya bilan aralashmaydi */
.music-mini {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 0.55rem);
  right: max(0.55rem, env(safe-area-inset-right));
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  pointer-events: none;
}

.music-mini__btn {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 182, 193, 0.55);
  background: linear-gradient(165deg, #ffffff 0%, #fff5f8 100%);
  color: var(--rose-deep);
  cursor: pointer;
  box-shadow: var(--celebrate-shadow);
  transition: transform 0.15s, border-color 0.2s;
}

.music-mini:not(.is-playing) .music-mini__btn {
  animation: music-mini-float 2.4s ease-in-out infinite;
}

.music-mini__btn:hover {
  transform: scale(1.05);
  border-color: rgba(232, 93, 117, 0.45);
}

.music-mini:not(.is-playing) .music-mini__btn:hover,
.music-mini:not(.is-playing) .music-mini__btn:active {
  animation: none;
}

.music-mini__btn:active {
  transform: scale(0.97);
}

/* Ijroda ham xuddi shu flex: nota yagona oqim bolagi — siljish bo'lmasin */
.music-mini.is-playing .music-mini__btn {
  animation: none;
  border-color: rgba(232, 93, 117, 0.52);
  /* Fon va padding o'zgarmasin — vizual "sakrash" kamayadi */
  background: linear-gradient(165deg, #ffffff 0%, #fff5f8 100%);
}

.music-mini__eq {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  z-index: 0;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 9px;
  pointer-events: none;
}

.music-mini.is-playing .music-mini__eq {
  display: inline-flex;
}

.music-mini__note {
  position: relative;
  z-index: 1;
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.music-mini__eq i {
  width: 3px;
  border-radius: 2px;
  background: var(--rose);
  opacity: 0.35;
  transform-origin: bottom;
}

.music-mini.is-playing .music-mini__eq i {
  opacity: 1;
  width: 2.5px;
  animation: eq 0.75s ease-in-out infinite alternate;
}
.music-mini.is-playing .music-mini__eq i:nth-child(2) {
  animation-delay: 0.1s;
}
.music-mini.is-playing .music-mini__eq i:nth-child(3) {
  animation-delay: 0.2s;
}
.music-mini.is-playing .music-mini__eq i:nth-child(4) {
  animation-delay: 0.05s;
}
.music-mini.is-playing .music-mini__eq i:nth-child(5) {
  animation-delay: 0.15s;
}

@keyframes eq {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1.35);
  }
}

@keyframes music-mini-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-mini:not(.is-playing) .music-mini__btn {
    animation: none;
  }
}

@media (min-width: 900px) {
  .music-mini {
    top: calc(env(safe-area-inset-top, 0px) + 1rem);
    right: max(1rem, env(safe-area-inset-right));
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 32, 38, 0.88);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: min(88vh, 900px);
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__img[hidden] {
  display: none !important;
}

.lightbox__vid {
  max-width: min(96vw, 1200px);
  max-height: min(88vh, 900px);
  border-radius: 4px;
  background: #000;
}

.lightbox__vid[hidden] {
  display: none !important;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--rose-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.lightbox__side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lightbox__side--prev {
  left: 0.75rem;
}
.lightbox__side--next {
  right: 0.75rem;
}

@media (max-width: 600px) {
  .lightbox__side {
    width: 42px;
    height: 42px;
  }
}

/* Confetti */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 850;
  pointer-events: none;
}

/* Dock */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  padding: 0.4rem 0.35rem;
  padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 252, 250, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 182, 193, 0.45);
  box-shadow: 0 -8px 32px rgba(255, 182, 193, 0.12);
}

.dock__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.2rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
  max-width: 72px;
}

.dock__svg {
  opacity: 0.65;
  transition: opacity 0.2s;
}

.dock__link:hover,
.dock__link:focus-visible {
  color: var(--rose-deep);
  outline: none;
}

.dock__link:hover .dock__svg,
.dock__link:focus-visible .dock__svg {
  opacity: 1;
}

.dock__link.is-active {
  color: var(--rose-deep);
  background: rgba(255, 228, 236, 0.85);
}

.dock__link.is-active .dock__svg {
  opacity: 1;
  color: var(--rose);
}

@media (min-width: 900px) {
  .dock {
    left: 50%;
    right: auto;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: auto;
    min-width: 440px;
    max-width: 580px;
    padding: 0.5rem 1.25rem;
    padding-bottom: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 182, 193, 0.45);
    box-shadow: 0 20px 50px rgba(255, 182, 193, 0.22), 0 8px 24px rgba(255, 200, 160, 0.12);
  }

  .dock__link {
    max-width: none;
    padding: 0.45rem 0.75rem;
    font-size: 0.6rem;
  }
}

/* FAB */
.fab-top {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--fab-safe));
  z-index: 35;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 182, 193, 0.5);
  background: rgba(255, 255, 255, 0.96);
  color: var(--rose);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--celebrate-shadow);
}

.fab-top[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .fab-top {
    right: 2rem;
    bottom: 2rem;
  }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h) + 4.5rem);
  transform: translateX(-50%);
  z-index: 60;
  padding: 0.7rem 1.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 182, 193, 0.55);
  border-radius: 999px;
  box-shadow: var(--celebrate-shadow);
}

.toast[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .toast {
    bottom: 6rem;
  }
}

/* Like bosilganda Instagram uslubidagi yurak */
@keyframes like-burst-pop {
  0% {
    transform: translate(-50%, -50%) scale(0.22);
    opacity: 0;
  }
  14% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
  32% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -58%) scale(1.28);
    opacity: 0;
  }
}

.like-burst__heart {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10060;
  margin: 0;
  padding: 0;
  font-size: clamp(2.75rem, 12vw, 4.5rem);
  line-height: 1;
  color: #e84d6b;
  text-shadow:
    0 2px 16px rgba(232, 77, 107, 0.55),
    0 0 2px rgba(120, 20, 40, 0.35);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.22);
  opacity: 0;
  will-change: transform, opacity;
}

.like-burst__heart.like-burst__heart--pop {
  animation: like-burst-pop 0.88s cubic-bezier(0.18, 0.88, 0.32, 1.18) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .like-burst__heart.like-burst__heart--pop {
    animation: none;
    opacity: 0;
  }
}

/* Scroll reveal */
.js-reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.no-js .js-reveal {
  opacity: 1;
  transform: none;
}

.js-reveal--hero .hero__content > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

.js-reveal--hero.is-visible .hero__content > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.js-reveal--hero.is-visible .hero__eyebrow {
  transition-delay: 0.05s;
}
.js-reveal--hero.is-visible .hero__datedots {
  transition-delay: 0.08s;
}
.js-reveal--hero.is-visible .hero__sub {
  transition-delay: 0.12s;
}
.js-reveal--hero.is-visible .hero__title {
  transition-delay: 0.18s;
}
.js-reveal--hero.is-visible .hero__ayah {
  transition-delay: 0.26s;
}
.js-reveal--hero.is-visible .hero__actions {
  transition-delay: 0.36s;
}

.js-reveal--hero .hero__content > * {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

/* Panellar / footer: ichidagi boshliqlar, matn, ikonkalar ketma-ket chiqadi */
.panel.js-reveal,
.foot.js-reveal {
  opacity: 0;
  transform: none !important;
  transition: opacity 0.55s var(--ease);
}

.panel.js-reveal.is-visible,
.foot.js-reveal.is-visible {
  opacity: 1;
}

.panel.js-reveal > *:not([hidden]),
.foot.js-reveal > *:not([hidden]) {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition:
    opacity 0.88s var(--ease),
    transform 0.88s var(--ease);
}

.panel.js-reveal.is-visible > *:not([hidden]),
.foot.js-reveal.is-visible > *:not([hidden]) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.panel.js-reveal.is-visible > *:not([hidden]):nth-child(1),
.foot.js-reveal.is-visible > *:not([hidden]):nth-child(1) {
  transition-delay: 0.06s;
}
.panel.js-reveal.is-visible > *:not([hidden]):nth-child(2),
.foot.js-reveal.is-visible > *:not([hidden]):nth-child(2) {
  transition-delay: 0.14s;
}
.panel.js-reveal.is-visible > *:not([hidden]):nth-child(3),
.foot.js-reveal.is-visible > *:not([hidden]):nth-child(3) {
  transition-delay: 0.22s;
}
.panel.js-reveal.is-visible > *:not([hidden]):nth-child(4),
.foot.js-reveal.is-visible > *:not([hidden]):nth-child(4) {
  transition-delay: 0.3s;
}
.panel.js-reveal.is-visible > *:not([hidden]):nth-child(5),
.foot.js-reveal.is-visible > *:not([hidden]):nth-child(5) {
  transition-delay: 0.38s;
}
.panel.js-reveal.is-visible > *:not([hidden]):nth-child(6),
.foot.js-reveal.is-visible > *:not([hidden]):nth-child(6) {
  transition-delay: 0.46s;
}
.panel.js-reveal.is-visible > *:not([hidden]):nth-child(7),
.foot.js-reveal.is-visible > *:not([hidden]):nth-child(7) {
  transition-delay: 0.54s;
}
.panel.js-reveal.is-visible > *:not([hidden]):nth-child(8),
.foot.js-reveal.is-visible > *:not([hidden]):nth-child(8) {
  transition-delay: 0.62s;
}
.panel.js-reveal.is-visible > *:not([hidden]):nth-child(9),
.foot.js-reveal.is-visible > *:not([hidden]):nth-child(9) {
  transition-delay: 0.7s;
}
.panel.js-reveal.is-visible > *:not([hidden]):nth-child(10),
.foot.js-reveal.is-visible > *:not([hidden]):nth-child(10) {
  transition-delay: 0.78s;
}
.panel.js-reveal.is-visible > *:not([hidden]):nth-child(11),
.foot.js-reveal.is-visible > *:not([hidden]):nth-child(11) {
  transition-delay: 0.86s;
}
.panel.js-reveal.is-visible > *:not([hidden]):nth-child(12),
.foot.js-reveal.is-visible > *:not([hidden]):nth-child(12) {
  transition-delay: 0.94s;
}

.panel.js-reveal:not(.is-visible) > .detail-cards {
  opacity: 0 !important;
}
.panel.js-reveal.is-visible > .detail-cards {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.panel.js-reveal > .detail-cards .detail-card {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 0.84s var(--ease), transform 0.84s var(--ease);
}
.panel.js-reveal.is-visible > .detail-cards .detail-card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.panel.js-reveal.is-visible > .detail-cards .detail-card:nth-child(1) {
  transition-delay: 0.16s;
}
.panel.js-reveal.is-visible > .detail-cards .detail-card:nth-child(2) {
  transition-delay: 0.24s;
}
.panel.js-reveal.is-visible > .detail-cards .detail-card:nth-child(3) {
  transition-delay: 0.32s;
}
.panel.js-reveal.is-visible > .detail-cards .detail-card:nth-child(4) {
  transition-delay: 0.4s;
}
.panel.js-reveal.is-visible > .detail-cards .detail-card:nth-child(5) {
  transition-delay: 0.48s;
}

.panel.panel--calendar.js-reveal:not(.is-visible) > .calendar-layout {
  opacity: 0 !important;
}
.panel.panel--calendar.js-reveal.is-visible > .calendar-layout {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.panel.panel--calendar.js-reveal .calendar-layout__main > * {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.panel.panel--calendar.js-reveal.is-visible .calendar-layout__main > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.panel.panel--calendar.js-reveal.is-visible .calendar-layout__main > *:nth-child(1) {
  transition-delay: 0.08s;
}
.panel.panel--calendar.js-reveal.is-visible .calendar-layout__main > *:nth-child(2) {
  transition-delay: 0.15s;
}
.panel.panel--calendar.js-reveal.is-visible .calendar-layout__main > *:nth-child(3) {
  transition-delay: 0.22s;
}
.panel.panel--calendar.js-reveal.is-visible .calendar-layout__main > *:nth-child(4) {
  transition-delay: 0.29s;
}
.panel.panel--calendar.js-reveal.is-visible .calendar-layout__main > *:nth-child(5) {
  transition-delay: 0.36s;
}
.panel.panel--calendar.js-reveal.is-visible .calendar-layout__main > *:nth-child(6) {
  transition-delay: 0.43s;
}

.panel.panel--letter.js-reveal > .panel__body {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.panel.panel--letter.js-reveal:not(.is-visible) > .panel__body {
  opacity: 0 !important;
}
.panel.panel--letter.js-reveal .panel__body > .lead,
.panel.panel--letter.js-reveal .panel__body > .prose {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.82s var(--ease), transform 0.82s var(--ease);
}
.panel.panel--letter.js-reveal.is-visible .panel__body > .lead {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.1s;
}
.panel.panel--letter.js-reveal.is-visible .panel__body > .prose:nth-of-type(1) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.18s;
}
.panel.panel--letter.js-reveal.is-visible .panel__body > .prose:nth-of-type(2) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.26s;
}
.panel.panel--letter.js-reveal.is-visible .panel__body > .prose:nth-of-type(3) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.34s;
}
.panel.panel--letter.js-reveal.is-visible .panel__body > .prose:nth-of-type(4) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.42s;
}
.panel.panel--letter.js-reveal.is-visible .panel__body > .prose:nth-of-type(5) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal,
  .js-reveal--hero .hero__content > *,
  .panel.js-reveal > *,
  .foot.js-reveal > *,
  .panel.js-reveal .detail-card,
  .panel.panel--calendar.js-reveal .calendar-layout__main > *,
  .panel.panel--letter.js-reveal .panel__body > .lead,
  .panel.panel--letter.js-reveal .panel__body > .prose {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__img--layer.is-visible {
    animation: none;
  }
  .countdown__inner::after {
    animation: none !important;
  }
  .music-mini.is-playing .music-mini__eq i {
    animation: none !important;
  }
  .invite-gate__lock-heart {
    animation: none !important;
  }
  .mom-cal__day--heart::before {
    animation: none !important;
  }
}

/* Qulf yuragi: bitta yumshoq nafas — sekin, bir xil sur’at (linear), «lub-dub» emas */
@keyframes invite-gate-heart-beat {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(201, 162, 39, 0.3));
  }
  50% {
    transform: scale(1.11);
    filter: drop-shadow(0 0 9px rgba(201, 162, 39, 0.42));
  }
}

/* Kalendardagi to‘y kuni yuragi — qulf bilan bir xil nafas (translate + scale) */
@keyframes mom-cal-heart-beat {
  0%,
  100% {
    transform: translate(-50%, calc(-52% + 0.22rem)) scale(1);
    filter: drop-shadow(0 0 3px rgba(201, 162, 39, 0.3));
  }
  50% {
    transform: translate(-50%, calc(-52% + 0.22rem)) scale(1.11);
    filter: drop-shadow(0 0 9px rgba(201, 162, 39, 0.42));
  }
}

/* ----- Momento-inspired: gate, calendar, details, share ----- */
body.has-invite-gate:not(.invite-revealed) {
  overflow: hidden;
}

.invite-gate {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 248, 240, 0.97), rgba(255, 236, 244, 0.96)),
    linear-gradient(165deg, #fdf8f5 0%, #fff5f0 45%, #ffeef5 100%);
  transition: opacity 0.65s var(--ease), visibility 0.65s;
}

.invite-gate.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.invite-gate__inner {
  text-align: center;
  max-width: min(94vw, 26rem);
  padding-inline: 0.25rem;
}

@media (min-width: 560px) {
  .invite-gate__inner {
    max-width: min(94vw, 52rem);
  }
}

@media (min-width: 1200px) {
  .invite-gate__inner {
    max-width: min(92vw, 58rem);
  }
}

.invite-gate__guest {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.35vw + 0.65rem, 1.95rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(88, 58, 48, 0.9);
  line-height: 1.3;
}

.invite-gate__ribbon {
  margin: 0 0 0.75rem;
  font-size: clamp(0.62rem, 0.35vw + 0.48rem, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.invite-gate__date-dots {
  margin: 0 0 0.75rem;
  font-size: clamp(0.95rem, 1.1vw + 0.55rem, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(88, 58, 48, 0.82);
}

.invite-gate__names {
  margin: 0 0 0.65rem;
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 4.5vw + 1.4rem, 5.25rem);
  line-height: 1.15;
  background: linear-gradient(168deg, var(--rose-deep), var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.invite-gate__amp {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.55em;
  margin: 0 0.15em;
  color: var(--rose);
}

.invite-gate__hint {
  margin: 0 0 1.25rem;
  font-size: clamp(0.82rem, 0.45vw + 0.72rem, 1.05rem);
  color: var(--text-muted);
}

.invite-gate__lock {
  position: relative;
  width: clamp(88px, 10vw + 48px, 140px);
  height: clamp(88px, 10vw + 48px, 140px);
  margin: 0 auto 0.35rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(145deg, #fff 0%, #ffeef3 100%);
  box-shadow:
    0 14px 40px rgba(232, 93, 117, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.invite-gate__lock:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 48px rgba(232, 93, 117, 0.28);
}

.invite-gate__lock-ring {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, 0.55);
}

.invite-gate__lock-heart {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Ichki halqa: `border: 2px solid rgba(201, 162, 39, 0.55)` — chiziq `var(--gold)` ga yaqin */
  color: var(--gold);
  transform-origin: center center;
  animation: invite-gate-heart-beat 2.8s linear infinite;
  will-change: transform;
}

.invite-gate__lock-heart-svg {
  display: block;
  width: clamp(1.35rem, 3.1vw, 1.95rem);
  height: clamp(1.35rem, 3.1vw, 1.95rem);
  transform: translateY(0.22rem);
}

.hero__datedots {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.2vw + 0.65rem, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--champagne);
  text-align: center;
  text-wrap: balance;
  margin-inline: auto;
  max-width: 100%;
}

.hero__sub {
  margin: 0 auto 1rem;
  max-width: 100%;
  font-size: clamp(0.72rem, 0.35vw + 0.62rem, 0.88rem);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.sec-head--momento {
  align-items: flex-start;
  text-align: left;
}

.sec-head--momento > .sec-head__tag {
  flex: 0 0 100%;
}

.sec-head--momento .sec-head__tag {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.88;
}

.sec-head__title--lg {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}

.cal-month-label {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* Katta ekranda kalendar yonidagi bo‘shliqni to‘ldirish */
.calendar-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.calendar-layout__main {
  width: 100%;
  min-width: 0;
}

.calendar-layout__orn {
  display: none;
}

@media (min-width: 1000px) {
  .calendar-layout {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 3vw, 2.25rem);
  }

  .calendar-layout__orn {
    display: flex;
    flex: 0 0 min(17vw, 200px);
    width: min(17vw, 200px);
    max-width: 200px;
    align-items: center;
    justify-content: center;
    align-self: center;
    opacity: var(--ornament-opacity);
    pointer-events: none;
  }

  .calendar-layout__orn-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(180, 130, 90, 0.12);
    filter: contrast(1.09) saturate(1.06);
  }

  .calendar-layout__orn-img--flip {
    transform: scaleX(-1);
  }

  .calendar-layout__main {
    flex: 0 1 26rem;
    max-width: 26rem;
  }
}

.mom-cal {
  max-width: 22rem;
  margin: 0 auto;
  padding: 1rem 0.75rem 1.25rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--celebrate-shadow);
}

.mom-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.mom-cal__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.28rem;
}

.mom-cal__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 10px;
  color: var(--text);
}

.mom-cal__day-num {
  position: relative;
  z-index: 1;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mom-cal__day--muted {
  opacity: 0.22;
}

.mom-cal__day--heart {
  position: relative;
  isolation: isolate;
  background: transparent;
  box-shadow: none;
  color: var(--rose-deep);
}

/* Kontur yurak (qulf tugmasidagi bilan bir xil chiziq) — raqam .mom-cal__day-num ustida */
.mom-cal__day--heart::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.05em;
  height: 3.05em;
  transform: translate(-50%, calc(-52% + 0.22rem));
  transform-origin: center center;
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%3E%3Cpath%20d%3D%27M20.84%204.61a5.5%205.5%200%200%200-7.78%200L12%205.67l-1.06-1.06a5.5%205.5%200%200%200-7.78%207.78l1.06%201.06L12%2021.23l7.78-7.78%201.06-1.06a5.5%205.5%200%200%200%200-7.78z%27%20fill%3D%27none%27%20stroke%3D%27%23c94f6f%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E")
    center / contain no-repeat;
  filter: drop-shadow(0 1px 4px rgba(232, 93, 117, 0.22));
  z-index: 0;
  pointer-events: none;
  animation: mom-cal-heart-beat 2.8s linear infinite;
  will-change: transform;
}

.mom-cal__day--heart .mom-cal__day-num {
  font-weight: 700;
  text-shadow:
    0 0 0.35em rgba(255, 253, 251, 0.95),
    0 1px 2px rgba(255, 255, 255, 0.9);
}

.mom-cal__legend {
  margin: 1rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mom-cal__legend-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--rose-deep);
}

.mom-cal__legend-icon-svg {
  display: block;
  width: 1.05em;
  height: 1.05em;
  margin-top: 0.08em;
  transform: translateY(0.1rem);
}

#about {
  scroll-margin-top: 5.5rem;
}

.detail-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .detail-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.detail-card {
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 36px rgba(232, 165, 184, 0.12);
}

.detail-card--wide {
  grid-column: 1 / -1;
}

.detail-card__icon {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--rose-deep);
  line-height: 0;
  opacity: 0.92;
}

.detail-card__icon-svg {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

.detail-card__h {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.detail-card__main {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.detail-card__hint {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.map-btn-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.map-btn-row .btn--map,
.map-btn-row .btn--map-secondary {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  margin-top: 0;
}

@media (max-width: 380px) {
  .map-btn-row {
    flex-wrap: wrap;
  }
  .map-btn-row .btn--map,
  .map-btn-row .btn--map-secondary {
    flex: 1 1 100%;
  }
}

.btn--map-secondary {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 8px 28px rgba(232, 165, 184, 0.15);
}

.venue-lead--compact {
  margin-bottom: 0.75rem;
}

/* ----- Joylashuv & xarita (Momento uslubi) ----- */
.panel--place {
  overflow: visible;
}

.panel--place .place-title-amp {
  color: var(--gold);
  font-weight: 500;
}

.place-split {
  display: grid;
  gap: clamp(1.25rem, 3.5vw, 2rem);
  align-items: stretch;
}

@media (min-width: 880px) {
  .place-split:not(.place-split--card-only) {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

.place-split--card-only {
  max-width: 28rem;
  margin-inline: auto;
}

.place-map-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.place-map-inner {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: linear-gradient(160deg, #e8eef4 0%, #f5f0eb 100%);
  border: 1px solid rgba(232, 165, 184, 0.35);
  box-shadow:
    0 16px 48px rgba(232, 165, 184, 0.18),
    0 4px 14px rgba(61, 44, 41, 0.06);
}

.place-map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.place-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: clamp(1.35rem, 4vw, 1.85rem);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 14px 44px rgba(232, 165, 184, 0.14);
}

.place-card__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--text);
}

.place-card__addr {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(61, 44, 41, 0.78);
}

.place-card__pin {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--rose-deep);
  opacity: 0.85;
}

.place-card__rule {
  height: 1px;
  margin: 1.15rem 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(232, 165, 184, 0.55) 15%,
    rgba(232, 165, 184, 0.55) 85%,
    transparent
  );
  border: 0;
}

.place-card__route-label {
  margin-top: auto;
  margin-bottom: 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.place-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
}

.place-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s ease;
}

.place-ext-link:hover,
.place-ext-link:focus-visible {
  color: var(--rose-deep);
}

.place-ext-link__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
}

.place-ext-link--google .place-ext-link__badge {
  background: #4285f4;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.35);
}

.place-ext-link--yandex .place-ext-link__badge--yandex {
  background: #fc3f1d;
  font-family: var(--font-ui), system-ui, sans-serif;
  box-shadow: 0 2px 8px rgba(252, 63, 29, 0.3);
}

.place-route-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.place-route-btn__arrow {
  font-size: 1.05em;
  opacity: 0.9;
}

.place-card__spark {
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.45;
  pointer-events: none;
}

.panel--gifts .gift-prose {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.gift-prose-wrap {
  max-width: 38rem;
}

.gift-tg-wrap {
  margin: 1.25rem 0 0;
}

/* ----- To'yona (bank karta) ----- */
.panel--toyona {
  border-left: 4px solid rgba(201, 162, 39, 0.38);
}

.panel--toyona::before {
  border-color: rgba(201, 162, 39, 0.12);
}

.panel--toyona .toyona-stack {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

.panel--toyona .toyona-stack > *:not(.toyona-card-block) {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.toyona-intro-wrap,
.toyona-footer-wrap {
  display: block;
}

.toyona-intro,
.toyona-footer {
  width: 100%;
  max-width: none;
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.toyona-footer-wrap .toyona-footer:last-child {
  margin-bottom: 0;
}

/* Plastik karta (ISO 7810 ID-1: eni × bo‘yi ≈ 1.586) */
.toyona-card-block {
  --card-plastic-fg: rgba(255, 255, 255, 0.94);
  position: relative;
  width: 100%;
  max-width: min(100%, 26.5rem);
  margin: 1.35rem auto 1.5rem;
  aspect-ratio: 1.586 / 1;
  min-height: 0;
  padding: clamp(0.95rem, 3.5vw, 1.35rem) clamp(1rem, 3.5vw, 1.4rem);
  border-radius: 14px;
  overflow: hidden;
  color: var(--card-plastic-fg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 22px 56px rgba(12, 28, 26, 0.45),
    0 8px 20px rgba(0, 0, 0, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    inset 0 -6px 18px rgba(0, 0, 0, 0.28);
}

.toyona-card-block--humo {
  background: linear-gradient(
    145deg,
    #0b322f 0%,
    #134845 38%,
    #071f1d 72%,
    #0a2e2b 100%
  );
}

.toyona-card-block--uzcard {
  background: linear-gradient(
    145deg,
    #152f48 0%,
    #1e4a6b 42%,
    #122a3d 100%
  );
}

.toyona-card-block--unknown {
  background: linear-gradient(145deg, #2b3138 0%, #1a1f26 55%, #151a20 100%);
}

/* Yengil naqsh + granula effekt */
.toyona-card-plastic-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    radial-gradient(ellipse 120% 80% at 12% 22%, rgba(255, 255, 255, 0.07) 0%, transparent 52%),
    radial-gradient(ellipse 90% 70% at 88% 18%, rgba(255, 255, 255, 0.05) 0%, transparent 45%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.03) 3px,
      rgba(0, 0, 0, 0.03) 4px
    );
  opacity: 0.95;
}

.toyona-card-plastic-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.toyona-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.toyona-card-chip-row {
  flex-shrink: 0;
  margin-bottom: 0.35rem;
}

.toyona-card-chip-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.toyona-card-chip {
  width: 2.85rem;
  height: 2.15rem;
  border-radius: 5px;
  background: linear-gradient(
    145deg,
    #e8c547 0%,
    #a67c1a 42%,
    #d4af37 78%,
    #8b6914 100%
  );
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.45),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.35);
}

.toyona-card-nfc {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0.92;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.toyona-card-mid {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
}

.toyona-card-surface {
  width: 100%;
  padding: 0.25rem 0 0.15rem;
  border-bottom: none;
}

.toyona-card-meta {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 0.1rem 0 0.05rem;
}

.toyona-card-expiry {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: clamp(0.58rem, 1.85vw + 0.18rem, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1),
    0 -1px 0 rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.toyona-card-pan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

/* Bir qatorda raqam — tor ekranda gorizontal siljitish */
.toyona-card-pan-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.toyona-card-pan-scroll::-webkit-scrollbar {
  height: 4px;
}

.toyona-card-pan-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.toyona-card-pan {
  display: inline-block;
  padding-right: 0.15rem;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: clamp(0.68rem, 2.85vw + 0.25rem, 1.22rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  word-break: normal;
  line-height: 1.3;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 -1px 0 rgba(0, 0, 0, 0.45),
    0 2px 10px rgba(0, 0, 0, 0.35);
}

@media (min-width: 420px) {
  .toyona-card-pan {
    letter-spacing: 0.1em;
  }
}

.toyona-copy-icon-btn {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.toyona-copy-icon-btn:hover,
.toyona-copy-icon-btn:focus-visible {
  background: rgba(232, 197, 71, 0.92);
  border-color: rgba(255, 255, 255, 0.5);
  color: #0d2523;
  outline: none;
}

.toyona-copy-icon-btn:active {
  transform: scale(0.96);
}

.toyona-copy-icon-btn__svg {
  display: block;
  pointer-events: none;
}

.toyona-card-footer {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.55rem;
}

.toyona-card-footer--mark-only {
  justify-content: flex-end;
}

.toyona-card-holder-name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-ui);
  font-size: clamp(0.55rem, 1.8vw + 0.2rem, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  overflow-wrap: break-word;
  hyphens: none;
}

.toyona-card-wordmark {
  flex-shrink: 0;
  max-width: 46%;
  font-family: var(--font-ui);
  font-size: clamp(0.65rem, 2.2vw + 0.15rem, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  text-align: right;
  line-height: 1.2;
}

.toyona-card-block--humo .toyona-card-wordmark {
  color: #e8c547;
}

.toyona-card-block--uzcard .toyona-card-wordmark {
  color: #7fd4ff;
}

.toyona-card-block--unknown .toyona-card-wordmark {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.14em;
}

@media (max-width: 480px) {
  .toyona-card-block {
    padding: 0.55rem 0.55rem 0.6rem;
    aspect-ratio: 1.586 / 1;
    min-height: 0;
  }

  .toyona-card-chip-row {
    margin-bottom: 0.2rem;
  }

  .toyona-card-chip {
    width: 2.35rem;
    height: 1.75rem;
  }

  .toyona-card-nfc {
    width: 26px;
    height: 26px;
  }

  .toyona-card-mid {
    align-items: center;
    padding-top: 0;
  }

  .toyona-card-footer {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .toyona-card-wordmark {
    max-width: none;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 360px) {
  .toyona-card-pan {
    font-size: clamp(0.62rem, 2.5vw + 0.2rem, 1rem);
    letter-spacing: 0.06em;
  }
}

.share-lead {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.share-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.share-strip__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s;
}

.share-strip__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--celebrate-shadow);
}

.share-strip__btn--ghost {
  font-family: inherit;
}

.share-strip__ico {
  display: none;
  align-items: center;
  justify-content: center;
}

.share-strip__ico svg {
  display: block;
}

@media (max-width: 640px) {
  .share-strip {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.2rem;
    margin-inline: -0.15rem;
    padding-inline: 0.15rem;
  }

  .share-strip__ico {
    display: flex;
  }

  .share-strip__txt {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .share-strip__btn {
    position: relative;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .share-strip__btn--ghost {
    font-size: 0;
  }
}

.share-toast-hint {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2a8a5c;
}
