/* Ascunde scrollbar-ul */
::-webkit-scrollbar {
  display: none;
}
:root {
  --bg: #fbf7f2;
  --bg-soft: rgba(255, 255, 255, 0.72);
  --surface: rgba(255, 248, 244, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --text: #3f2f2a;
  --muted: #7b6460;
  --line: rgba(157, 112, 108, 0.18);
  --rose: #d98a95;
  --rose-deep: #bf5966;
  --sand: #e9d6c1;
  --cream: #fff7ef;
  --shadow: 0 18px 50px rgba(114, 67, 66, 0.12);
  --shadow-soft: 0 12px 30px rgba(114, 67, 66, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-busuioc: "Busuioc", "Cormorant Garamond", Georgia, serif;
}

@font-face {
  font-family: "Busuioc";
  src: url("BusuiocFont.otf") format('opentype');
  font-display: swap;
}

.btn-poveste {
  display: flex;
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 2rem auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;

  /* Asta scoate linia de sub text sub orice formă */
  text-decoration: none;
}

.btn-poveste:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: var(--surface-strong);
  color: var(--rose-deep);

  /* Ne asigurăm că nu apare underline nici la hover */
  text-decoration: none;
}

.btn-settings {
  display: flex;
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 20;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--muted);
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s ease, box-shadow 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn-settings:hover {
  transform: rotate(180deg);
  box-shadow: var(--shadow);
  color: var(--rose-deep);
}

[data-theme="rose"] {
  --bg: #fcf8f8;
  --surface: rgba(255, 246, 248, 0.88);
  --rose: #da7f92;
  --rose-deep: #b84f64;
  --sand: #f0dccf;
}

[data-theme="sand"] {
  --bg: #fcf7ef;
  --surface: rgba(255, 251, 245, 0.9);
  --rose: #cb8a74;
  --rose-deep: #9d4d44;
  --sand: #ebd6bf;
}

[data-theme="blush"] {
  --bg: #fff8f6;
  --surface: rgba(255, 244, 241, 0.88);
  --rose: #e06d6d;
  --rose-deep: #b83c3c;
  --sand: #eed6c2;
}

/* ==========================================================================
   DARK MODE / NIGHT MODE
   ========================================================================== */
[data-theme="dark"] {
  --bg: #161213;
  --bg-soft: rgba(32, 24, 26, 0.72);
  --surface: rgba(30, 22, 24, 0.85);
  --surface-strong: rgba(42, 30, 33, 0.95);
  --text: #f3e8e8;
  --muted: #b8a3a0;
  --line: rgba(217, 138, 149, 0.2);
  --rose: #e28091;
  --rose-deep: #e86375;
  --sand: #523e3b;
  --cream: #241b1c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Ajustare fundal body pe dark mode */
[data-theme="dark"] body {
  background:
          radial-gradient(circle at top left, rgba(217, 138, 149, 0.12), transparent 35%),
          radial-gradient(circle at bottom right, rgba(184, 79, 100, 0.15), transparent 40%),
          linear-gradient(180deg, #100c0d 0%, var(--bg) 100%);
}

/* Ajustare modal & elemente cu fundal alb fix */
[data-theme="dark"] .topbar,
[data-theme="dark"] .btn-poveste,
[data-theme="dark"] .back-btn,
[data-theme="dark"] .chip,
[data-theme="dark"] .btn--ghost,
[data-theme="dark"] .mini-btn,
[data-theme="dark"] .modal__close,
[data-theme="dark"] .feedback-form textarea,
[data-theme="dark"] .editor-grid input,
[data-theme="dark"] .editor-grid textarea,
[data-theme="dark"] .editor-grid select,
[data-theme="dark"] .map-country,
[data-theme="dark"] .map-location-card,
[data-theme="dark"] .location-pin__label,
[data-theme="dark"] .celebration-intro {
  background: var(--surface-strong);
  color: var(--text);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(217, 138, 149, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(233, 214, 193, 0.35), transparent 34%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 110px 110px;
  opacity: 0.24;
  mask-image: linear-gradient(180deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

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

.page-shell {
  position: relative;
}

.ambient {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: 0;
}

.ambient--one {
  top: -10rem;
  left: -10rem;
  background: rgba(217, 138, 149, 0.32);
}

.ambient--two {
  bottom: -12rem;
  right: -10rem;
  background: rgba(233, 214, 193, 0.42);
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  width: min(var(--container), calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand__mark {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--sand));
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
  overflow: hidden;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__text {
  display: grid;
  gap: 0.1rem;
}

.brand__text strong {
  font-size: 0.96rem;
  line-height: 1.1;
  font-family: var(--font-busuioc);
}

.brand__text small,
.muted,
.page-hero__text,
.counter__note,
.hero__hint,
.map-panel__header,
.timeline-card__meta,
.gallery-card__meta,
.feedback-card .muted {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.nav__link {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.nav__link:hover,
.nav__link.is-active {
  background: rgba(217, 138, 149, 0.14);
  color: var(--text);
  transform: translateY(-1px);
}

.nav__link i,
.btn i,
.chip i {
  margin-right: 0.4rem;
}

.theme-switcher {
  display: flex;
  gap: 0.45rem;
}

.chip {
  border: 1px solid rgba(191, 89, 102, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.chip:hover,
.btn:hover,
.scroll-arrow:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.chip--soft {
  background: rgba(255, 248, 244, 0.88);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.92rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.btn--primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: white;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn__arrow {
  font-size: 1.1rem;
  line-height: 1;
}

.hero {
  width: min(var(--container), calc(100% - 2rem));
  min-height: calc(100svh - 6rem);
  margin: 1rem auto 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    url("images/bg.jpg") center/cover no-repeat;
  box-shadow: var(--shadow);
  display: grid;
  align-items: end;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(34, 18, 18, 0.08) 0%, rgba(34, 18, 18, 0.42) 100%),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.24), transparent 30%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 5vw, 4rem);
  max-width: 42rem;
  color: #fff;
  display: grid;
  gap: 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.section h2,
.editor-header h2,
.anniversary-banner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero h1 {
  font-size: 6.5rem;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.15);
}

.hero h1 span {
  display: block;
  font-size: 0.38em;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 0.3rem;
}

.hero__lead,
.page-hero__text,
.counter__note {
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 36rem;
}

.hero__actions,
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
}

.pulse {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  animation: pulse 1.8s infinite;
}

.hero__scroll {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
}

.scroll-arrow {
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  display: grid;
  place-items: center;
  position: relative;
  backdrop-filter: blur(14px);
  animation: float 2.8s ease-in-out infinite;
}

.scroll-arrow__ring {
  position: absolute;
  inset: 0.35rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.scroll-arrow__icon {
  font-size: 1.45rem;
  line-height: 1;
}

.section,
.page-main {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.page-main {
  padding: 1rem 0 3rem;
}

.section {
  padding: 2rem 0;
}

.section--tight {
  padding-top: 1.4rem;
}

.section--compact {
  padding-top: 0.5rem;
}

.section__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section__header h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.counter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.counter__item {
  padding: 1.4rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.3rem;
  text-align: center;
}

.counter__value {
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}

.counter__label {
  color: var(--muted);
  font-weight: 700;
}

.counter__note {
  margin-top: 0.85rem;
}

.preview-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-folder {
  grid-column: 1 / -1;
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.gallery-folder__header {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-folder__header h3 {
  margin: 0.1rem 0 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.gallery-folder__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-folder__chevron {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(217, 138, 149, 0.12);
  color: var(--rose-deep);
  transition: transform 0.2s ease;
}

.gallery-folder.is-open .gallery-folder__chevron {
  transform: rotate(180deg);
}

.gallery-folder__body {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-grid--folder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.gallery-folder__more {
  display: flex;
  justify-content: center;
}

.gallery-folder__more .chip {
  width: min(100%, 18rem);
}

.preview-card,
.gallery-card,
.timeline-card,
.map-card,
.feedback-card,
.anniversary-banner,
.map-panel,
.page-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.preview-card {
  grid-column: span 4;
  overflow: hidden;
  display: grid;
}

.preview-card__media,
.gallery-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(217, 138, 149, 0.16), rgba(233, 214, 193, 0.26));
}

.preview-card img,
.gallery-card img,
.preview-card video,
.gallery-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.preview-card:hover img,
.gallery-card:hover img,
.preview-card:hover video,
.gallery-card:hover video {
  transform: scale(1.03);
}

.preview-card__body,
.gallery-card__body {
  padding: 1rem 1rem 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.preview-card__body h3,
.gallery-card__body h3,
.timeline-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  background: rgba(191, 89, 102, 0.08);
  color: var(--rose-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.map-panel {
  padding: 1rem;
}

.map-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.15rem 1rem;
  font-size: 0.92rem;
}

.map-stage {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 10px);
  background:
    radial-gradient(circle at 22% 28%, rgba(217, 138, 149, 0.13), transparent 28%),
    radial-gradient(circle at 70% 38%, rgba(233, 214, 193, 0.3), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 247, 239, 0.88));
  border: 1px solid rgba(191, 89, 102, 0.12);
}

.map-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.map-country {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-radius: 26px;
  border: 1px solid rgba(191, 89, 102, 0.14);
  background:
    radial-gradient(circle at top right, rgba(217, 138, 149, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.68);
}

.map-country::before {
  content: "";
  position: absolute;
  inset: auto -20% -22% auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 214, 193, 0.28), transparent 70%);
  pointer-events: none;
}

.map-country__header {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.map-country__icon {
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: white;
  font-size: 1.1rem;
  flex: none;
}

.map-country__header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
}

.map-country__header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.map-country__cards {
  display: grid;
  gap: 0.8rem;
}

.map-location-card {
  padding: 0.9rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(191, 89, 102, 0.1);
}

.map-location-card__top {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.map-location-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(217, 138, 149, 0.14);
  color: var(--rose-deep);
  flex: none;
}

.map-location-card__top h4 {
  margin: 0;
  font-size: 1.1rem;
}

.map-location-card__top p {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.map-location-card__thumbs {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.map-location-card__thumb {
  width: 4rem;
  height: 4rem;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.map-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(191, 89, 102, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 89, 102, 0.06) 1px, transparent 1px);
  background-size: 3.2rem 3.2rem;
  opacity: 0.6;
}

.map-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 700;
}

.map-region {
  position: absolute;
  inset: auto auto auto auto;
  border-radius: 28px;
  border: 1px solid rgba(191, 89, 102, 0.16);
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.map-region__title {
  position: absolute;
  top: 0.9rem;
  left: 1rem;
  z-index: 1;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
}

.map-region--romania {
  left: 5%;
  top: 11%;
  width: 51%;
  height: 72%;
}

.map-region--moldova {
  right: 5%;
  top: 18%;
  width: 33%;
  height: 58%;
}

.location-pin {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.location-pin__dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--rose-deep);
  box-shadow: 0 0 0 0.35rem rgba(191, 89, 102, 0.15);
}

.location-pin__label {
  margin-top: 0.35rem;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 8rem;
  text-align: center;
}

.location-pin__thumbs {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.35rem;
  justify-content: center;
}

.location-pin__thumbs img {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.92);
}

.timeline-preview,
.story-timeline {
  display: grid;
  gap: 1rem;
}

.timeline-card {
  padding: 1.1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.timeline-card__content {
  display: grid;
  gap: 0.55rem;
}

.timeline-card__meta,
.gallery-card__meta {
  font-size: 0.92rem;
}

.timeline-card__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  min-width: 16rem;
}

.timeline-card__media img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
}

.feedback-card {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feedback-form {
  display: grid;
  gap: 0.9rem;
}

.feedback-form label,
.editor-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.feedback-form textarea,
.editor-grid input,
.editor-grid textarea,
.editor-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  padding: 0.85rem 0.95rem;
  outline: none;
  resize: vertical;
}

.feedback-form textarea:focus,
.editor-grid input:focus,
.editor-grid textarea:focus,
.editor-grid select:focus {
  border-color: rgba(191, 89, 102, 0.42);
  box-shadow: 0 0 0 4px rgba(191, 89, 102, 0.12);
}

.footer {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding: 1rem 0 0.2rem;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: rgba(46, 28, 28, 0.9);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 30;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.page-hero {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.page-hero--special {
  background:
    radial-gradient(circle at top left, rgba(217, 138, 149, 0.15), transparent 35%),
    var(--surface);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.filter-row .chip.is-active {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: white;
  border-color: transparent;
}

.gallery-card {
  grid-column: span 4;
  overflow: hidden;
  display: grid;
}

.gallery-card__media {
  aspect-ratio: 1 / 1;
}

.gallery-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 1rem 1rem;
}

.mini-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
}

.mini-btn--danger {
  color: #a74141;
}

.mini-btn--accent {
  color: var(--rose-deep);
}

.video-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 1;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(46, 28, 28, 0.78);
  color: white;
  font-size: 0.76rem;
  font-weight: 800;
}

.modal {
  border: none;
  background: transparent;
  width: min(980px, calc(100% - 1rem));
}

.modal::backdrop {
  background: rgba(31, 19, 18, 0.55);
  backdrop-filter: blur(10px);
}

.modal__surface {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.modal__surface--wide {
  padding: 1.2rem;
}

.modal__body {
  display: grid;
  gap: 1rem;
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
}

.modal__preview {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.88);
}

.modal__preview img,
.modal__preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.editor-grid__full {
  grid-column: 1 / -1;
}

.modal__actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.download-modal {
  width: min(500px, calc(100% - 2rem));
}

.download-modal__content {
  display: grid;
  justify-items: start;
  gap: 0.8rem;
  padding: 1.1rem;
}

.download-modal__content h2,
.download-modal__content p {
  margin: 0;
}

.download-modal__content h2 {
  color: var(--rose-deep);
  letter-spacing: 0.08em;
}

.download-modal__content p {
  color: var(--muted);
  line-height: 1.7;
}

.download-modal__spinner,
.download-faq__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 18px;
  background: rgba(217, 138, 149, 0.15);
  color: var(--rose-deep);
  font-size: 1.35rem;
}

.download-modal__spinner i {
  animation: download-pulse 1.4s ease-in-out infinite;
}

@keyframes download-pulse {
  50% { transform: translateY(4px); opacity: 0.45; }
}

.download-faq__header {
  margin-bottom: 1.2rem;
}

.download-faq__header h2 {
  margin: 0.8rem 0 0.3rem;
}

.download-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.download-faq__card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.download-faq__card h3 {
  margin: 0 0 0.65rem;
}

.download-faq__card p {
  margin: 0.55rem 0 0;
  line-height: 1.65;
}

.download-faq__card--steps {
  display: grid;
  grid-template-columns: auto 1fr;
}

.download-faq__screens {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.25rem;
}

.download-faq__screens figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.download-faq__screens img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.download-faq__screens figcaption {
  padding: 0.6rem 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .download-faq__grid { grid-template-columns: 1fr; }
  .download-faq__card { padding: 1.1rem; }
}

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

.anniversary-banner {
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.anniversary-banner__glow {
  position: absolute;
  inset: auto -8rem -8rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 138, 149, 0.24), transparent 70%);
}

.celebration {
  display: grid;
  gap: 1rem;
}

.celebration-card {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.celebration-card__images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.celebration-card__images img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
}

.celebration-card__wide {
  grid-template-columns: 1fr 1.25fr;
}

.celebration-intro {
  padding: 1.2rem;
  border: 1px solid rgba(191, 89, 102, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 239, 0.98));
}

.celebration-intro h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 2rem;
}

.celebration-emphasis {
  display: inline-flex;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(217, 138, 149, 0.14);
  color: var(--rose-deep);
  font-weight: 800;
}

.tag--icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tag--icon i {
  line-height: 1;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 0.8rem rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@media (max-width: 1100px) {
  .topbar {
    border-radius: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .counter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-card,
  .gallery-card {
    grid-column: span 6;
  }

  .feedback-card,
  .celebration-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    width: min(var(--container), calc(100% - 1rem));
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .theme-switcher {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 88svh;
    border-radius: 28px;
  }

  .hero__content {
    padding: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 16vw, 4.6rem);
  }

  .section,
  .page-main,
  .footer {
    width: min(var(--container), calc(100% - 1rem));
  }

  .counter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-card,
  .gallery-card,
  .timeline-card,
  .celebration-card {
    grid-column: 1 / -1;
  }

  .timeline-card {
    grid-template-columns: 1fr;
  }

  .timeline-card__media {
    min-width: 0;
  }

  .map-stage {
    min-height: 24rem;
  }

  .map-board {
    grid-template-columns: 1fr;
  }

  .map-region--romania {
    left: 4%;
    top: 12%;
    width: 54%;
    height: 68%;
  }

  .map-region--moldova {
    right: 4%;
    top: 19%;
    width: 36%;
    height: 53%;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }
}
