:root{
  --bg0:#070816;
  --bg1:#0b1022;
  --glass: rgba(255,255,255,.08);
  --glass2: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --shadow: 0 14px 44px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 980px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, #1a1f46 0%, transparent 60%),
    radial-gradient(900px 650px at 80% 20%, #311255 0%, transparent 60%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  overflow-x:hidden;
}

/* BG */
.bg{ position:fixed; inset:0; z-index:-1; pointer-events:none; }
#heartsCanvas{ width:100%; height:100%; display:block; }
.bgGlow{
  position:absolute; inset:-25%;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.06), transparent 55%);
  filter: blur(22px);
}

/* Topbar (mobile) */
.topbar{
  position: sticky;
  top:0;
  z-index: 20;
  padding: 10px 0;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  background: rgba(7,8,22,.55);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.topbarInner{
  width:min(var(--max), calc(100% - 28px));
  margin-inline:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.logo{ font-weight:800; font-size:13px; opacity:.95; }
.miniProgress{
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
  max-width: 280px;
}
.miniProgress span{
  display:block;
  height:100%;
  width:0%;
  background: rgba(255,255,255,.22);
}

/* Layout */
.page{ width:100%; }
.container{ width:min(var(--max), calc(100% - 28px)); margin-inline:auto; }
.section{
  min-height: 86vh;
  display:flex;
  align-items:center;
  padding: 62px 0;
}
.section.compact{ min-height: 76vh; }
.hero{ min-height: 92vh; }

.glass{
  background: var(--glass);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.pad{ padding: 18px; }
.head{ padding: 16px 18px; margin-bottom: 12px; }

.kicker{
  margin:0 0 10px;
  color: var(--muted);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;
}
h1{ margin:0 0 10px; font-size: clamp(26px, 6vw, 44px); line-height:1.08; }
h2{ margin:0 0 8px; font-size: clamp(20px, 4.6vw, 30px); }
h3{ margin:0; font-size: 16px; }
p{ margin:0; }
.lead{ color: var(--muted); font-size: 14.5px; line-height: 1.7; }

.heroCard{ padding: 22px; }
.hint{ margin-top: 14px; color: var(--muted); font-size: 13px; }

.counter{ display:flex; gap:10px; flex-wrap:wrap; margin: 14px 0 18px; }
.chip{
  flex:1; min-width: 140px;
  background: var(--glass2);
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display:flex; align-items:center; justify-content:space-between;
}
.chip .k{ color:var(--muted); font-size:12px; }
.chip .v{ font-size:18px; font-weight:800; }

.actions{ display:flex; gap:10px; flex-wrap:wrap; }
.btn{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 14px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .18s ease, background .18s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.16); }
.btn.big{ padding: 14px 18px; font-weight:800; }
.btn.ghost{ background: transparent; }

.tagrow{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.tag{
  font-size:12px;
  color: rgba(255,255,255,.78);
  padding: 7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
}

/* Split */
.split{ display:grid; grid-template-columns: 1fr; gap: 12px; }

/* Poster */
.poster{ border-radius: 16px; border:1px dashed rgba(255,255,255,.22); padding: 14px; }
.posterTop{ display:flex; gap:8px; justify-content:flex-end; }
.pill{
  font-size: 11px;
  padding: 6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
}
.posterBody{ margin-top: 10px; }
.posterBody p{ margin-top: 6px; color: var(--muted); line-height:1.7; }

/* Cards */
.cards{ display:grid; grid-template-columns: 1fr; gap: 12px; }
.card{ padding: 16px; }
.card p{ margin-top: 6px; color: var(--muted); line-height: 1.7; }

/* Slider */
.slider{ padding: 12px; position:relative; overflow:hidden; }
.slides{ display:flex; transform: translateX(0); transition: transform .35s ease; }
.slide{ min-width: 100%; }
.slide img{
  width:100%;
  height: min(56vh, 520px);
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  display:block;
}
.nav{
  position:absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  display:grid; place-items:center;
  backdrop-filter: blur(10px);
}
.nav.prev{ left: 12px; }
.nav.next{ right: 12px; }

.dots{ display:flex; gap: 8px; justify-content:center; margin: 12px 0 8px; }
.dotbtn{
  width: 8px; height: 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: transparent;
  cursor:pointer;
}
.dotbtn.active{ background: rgba(255,255,255,.92); }

.thumbs{
  display:flex; gap: 10px;
  overflow:auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.thumb{
  width: 86px; height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  overflow:hidden;
  cursor:pointer;
  flex: 0 0 auto;
}
.thumb img{ width:100%; height:100%; object-fit: cover; display:block; opacity:.92; }
.thumb.active{ outline: 2px solid rgba(255,255,255,.35); }

/* Video */
.video{
  width:100%;
  max-height: 62vh;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
}
.note{ margin-top: 10px; color: var(--muted); line-height: 1.7; }

/* Film reel */
.film .reel{ display:flex; flex-direction:column; gap: 12px; margin-top: 12px; }
.frame{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.stamp{
  width:44px; height:44px;
  border-radius:14px;
  display:grid; place-items:center;
  font-weight:900;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  margin-bottom: 8px;
}
.left p{ color: var(--muted); line-height:1.7; margin-top: 8px; }
.meta{ margin-top: 10px; color: rgba(255,255,255,.55); font-size:12px; }
.right img{
  width:100%;
  height: min(42vh, 260px);
  object-fit: cover;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
}

/* Quote */
.quoteBox{
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
}
.q{ font-size: 40px; opacity:.65; line-height:1; }
.quoteBox p{ margin: 6px 0 8px; font-size: 16px; line-height:1.5; }
.qFoot{ color: var(--muted); font-size: 12px; }

.longText{ color: var(--muted); line-height: 1.8; }

/* Final */
.center{ text-align:center; }
.mini{ color: var(--muted); margin: 10px 0 0; }
.confetti{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }

/* Reveal */
.reveal{ opacity: 0; transform: translateY(14px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }

/* Editable */
[contenteditable="true"]{ outline:none; border-radius: 10px; }
[contenteditable="true"]:focus{
  box-shadow: 0 0 0 2px rgba(255,255,255,.18) inset;
  background: rgba(255,255,255,.06);
}
/* =========================
   Toast + Modal
   ========================= */
.toast{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 60;

  display: flex;
  gap: 12px;
  align-items: flex-start;

  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(8,10,26,.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);

  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toastIcon{
  width: 40px; height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  flex: 0 0 auto;
}
.toastTitle{
  font-weight: 900;
  font-size: 14px;
}
.toastBody{
  margin-top: 2px;
  color: rgba(255,255,255,.74);
  font-size: 13px;
  line-height: 1.55;
}
.toastClose{
  margin-left: auto;
  width: 38px; height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  cursor: pointer;
}

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}
.modal.open{ display: block; }
.modalBackdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.50);
}
.modalCard{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;

  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 70px rgba(0,0,0,.55);

  transform: translateY(20px);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.modal.open .modalCard{
  transform: translateY(0);
  opacity: 1;
}
.modalTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.modalBadge{
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.86);
}
.modalX{
  width: 38px; height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  font-size: 18px;
}
.modalP{
  color: rgba(255,255,255,.74);
  line-height: 1.75;
  margin-top: 8px;
}
.modalActions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Tablet/desktop’ta modal ortalansın */
@media (min-width: 860px){
  .toast{
    left: auto;
    right: 18px;
    bottom: 18px;
    width: 360px;
  }
  .modalCard{
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: 520px;
    transform: translate(-50%, calc(-50% + 18px));
  }
  .modal.open .modalCard{
    transform: translate(-50%, -50%);
  }
}
