/* Lezzet Sepeti ana sayfa: koyu giris, telefon ici senaryo animasyonu (senaryo.js ile), bolumler.
   Kaydirinca belirme: destekleyen tarayicilarda CSS kaydirma zaman cizelgesi (animation-timeline: view()), digerlerinde
   icerik dogrudan gorunur (JS gerekmez). */

/* --- Ust serit (ana sayfada koyu cam) ----------------------------------------------- */
.ust-saydam {
  background: rgba(11, 36, 24, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.ust-saydam .marka,
.ust-saydam .menu a {
  color: #fff;
}

.ust-saydam .menu a {
  opacity: 0.82;
}

.ust-saydam .menu a:hover {
  color: var(--yesil-parlak);
  opacity: 1;
}

/* --- Giris (sahne) ----------------------------------------------------------------- */
.sahne {
  position: relative;
  overflow: hidden;
  margin-top: -72px;
  padding: 140px 0 130px;
  background:
    radial-gradient(900px 520px at 82% 18%, rgba(61, 220, 132, 0.22), transparent 60%),
    radial-gradient(700px 480px at 8% 92%, rgba(245, 181, 68, 0.14), transparent 60%),
    linear-gradient(160deg, #0b2418 0%, #0e2d1d 55%, #0a1f15 100%);
  color: rgba(255, 255, 255, 0.86);
}

.sahne-isik {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.sahne-ic {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.rozet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d9f5e5;
  font-size: 14px;
  font-weight: 600;
}

.rozet-nokta {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yesil-parlak);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: nabiz 2s infinite;
}

.sahne h1 {
  max-width: 600px;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(40px, 5.6vw, 66px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.vurgu {
  background: linear-gradient(100deg, var(--yesil-parlak) 10%, #b6f08c 55%, var(--turuncu) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sahne-aciklama {
  max-width: 540px;
  margin: 0 0 32px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.74);
}

.sahne-dugmeler {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.dugme-buyuk {
  padding: 17px 30px;
  font-size: 17px;
}

.dugme-simge {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.dugme-cam {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.dugme-cam:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.guvenler {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.guvenler li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guvenler li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(61, 220, 132, 0.18)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%233ddc84' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Giris acilis animasyonu */
.sahne-metin > * {
  animation: yukari-gel 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.sahne-metin > :nth-child(2) { animation-delay: 0.08s; }
.sahne-metin > :nth-child(3) { animation-delay: 0.16s; }
.sahne-metin > :nth-child(4) { animation-delay: 0.24s; }
.sahne-metin > :nth-child(5) { animation-delay: 0.32s; }

.senaryo {
  display: grid;
  justify-items: center;
  gap: 26px;
  animation: yukari-gel 1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* --- Telefon ----------------------------------------------------------------------- */
.telefon {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 612;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45));
}

.telefon::before {
  content: '';
  position: absolute;
  inset: -14% -30%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(61, 220, 132, 0.28), transparent);
  filter: blur(10px);
}

.telefon-cerceve {
  position: relative;
  height: 100%;
  padding: 12px;
  border-radius: 48px;
  background: linear-gradient(145deg, #2d3a33, #0e1511 45%, #2a352f);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), inset 0 0 0 7px #050806;
}

.telefon-ada {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 5;
  width: 92px;
  height: 26px;
  border-radius: 20px;
  background: #050806;
  transform: translateX(-50%);
}

.durum-cubugu {
  position: absolute;
  top: 24px;
  left: 34px;
  right: 34px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--koyu);
  transition: color 0.4s ease;
}

.durum-simgeler {
  width: 44px;
  height: 11px;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 3px 40% no-repeat,
    linear-gradient(currentColor, currentColor) 5px 100% / 3px 60% no-repeat,
    linear-gradient(currentColor, currentColor) 10px 100% / 3px 80% no-repeat,
    linear-gradient(currentColor, currentColor) 15px 100% / 3px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 26px 50% / 16px 9px no-repeat;
  border-radius: 2px;
}

.senaryo[data-aktif='0'] .durum-cubugu {
  color: #fff;
}

.ekran {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  background: #f6f7f4;
}

.ekran-sahne {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s 0.5s;
}

.ekran-sahne.aktif {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
}

/* Sahne 1: karekodu okut */
.kamera {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #24322b, #0f1813);
}

.masa-karti {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 172px;
  padding: 16px 14px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: rotate(-4deg);
}

.aktif .masa-karti {
  animation: kart-yaklas 3.6s ease-in-out both;
}

.masa-baslik {
  font-weight: 800;
  font-size: 13px;
  color: var(--yesil-koyu);
}

.masa-alt {
  font-size: 11px;
  color: var(--soluk);
}

.karekod {
  width: 128px;
  height: 128px;
}

.karekod rect {
  fill: #12201a;
}

.tarama-cerceve {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
}

.tarama-cerceve i {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 4px solid #fff;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.tarama-cerceve i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.tarama-cerceve i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.tarama-cerceve i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.tarama-cerceve i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.aktif .tarama-cerceve {
  animation: cerceve-daral 3.6s ease-in-out both;
}

.aktif .tarama-cerceve i {
  animation: cerceve-yesil 3.6s step-end both;
}

.tarama-cizgi {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  height: 3px;
  border-radius: 3px;
  background: var(--yesil-parlak);
  box-shadow: 0 0 18px 4px rgba(61, 220, 132, 0.7);
  opacity: 0;
}

.aktif .tarama-cizgi {
  animation: tara 1.8s 0.4s ease-in-out 1 both;
}

.tarama-bildirim {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--koyu);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
}

.tarama-bildirim svg {
  flex: none;
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--yesil);
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aktif .tarama-bildirim {
  animation: bildirim-gel 0.5s 2.3s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}

/* Sahne 2: siparisini ver */
.s-siparis {
  padding: 62px 14px 14px;
  background: #f6f7f4;
}

.menu-ust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.menu-ust strong {
  display: block;
  font-size: 20px;
  color: var(--koyu);
  line-height: 1.1;
}

.menu-ust small {
  color: var(--soluk);
  font-size: 12px;
}

.menu-geri {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 6l-6 6 6 6' fill='none' stroke='%2312201a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.urunler {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.urunler li {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(11, 36, 24, 0.06);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.urunler li.secildi {
  border-color: var(--yesil);
}

.urunler li.basildi {
  transform: scale(0.97);
}

.urunler b {
  display: block;
  font-size: 13px;
  color: var(--koyu);
}

.urunler small {
  display: block;
  font-size: 10.5px;
  color: var(--soluk);
  line-height: 1.3;
}

.urunler em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--yesil-koyu);
}

.urun-gorsel {
  width: 54px;
  height: 54px;
  border-radius: 12px;
}

.g1 { background: radial-gradient(circle at 35% 35%, #f6c37a, #c8642a 70%); }
.g2 { background: radial-gradient(circle at 40% 40%, #f3d39b, #d8892f 55%, #a5402b); }
.g3 { background: radial-gradient(circle at 45% 35%, #ffffff, #e8efe9 60%, #c9d6cc); }

.ekle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--yesil-acik);
  color: var(--yesil-koyu);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.urunler li.secildi .ekle {
  background: var(--yesil);
  color: #fff;
}

.dokunus {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(18, 32, 26, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  pointer-events: none;
}

.dokunus.gorunur {
  opacity: 1;
}

.dokunus.bas {
  animation: bas 0.35s ease;
}

.sepet-cubugu {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--yesil), var(--yesil-koyu));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 14px 28px -10px rgba(34, 160, 90, 0.8);
  transform: translateY(120%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.15);
}

.sepet-cubugu.gorunur {
  transform: none;
}

.sepet-cubugu.basildi {
  filter: brightness(0.9);
  transform: scale(0.97);
}

.sepet-adet {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.22);
}

.sepet-adet.sicra {
  animation: sicra 0.4s ease;
}

.sepet-tutar {
  margin-left: auto;
}

.siparis-onay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 20px;
  background: rgba(246, 247, 244, 0.97);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
}

.s-siparis.gonderildi .siparis-onay {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s;
}

.siparis-onay strong {
  margin-top: 10px;
  color: var(--koyu);
  font-size: 17px;
}

.siparis-onay small {
  color: var(--soluk);
  font-size: 13px;
}

.onay-daire {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yesil-parlak), var(--yesil-koyu));
  box-shadow: 0 0 0 10px rgba(34, 160, 90, 0.14), 0 16px 30px -8px rgba(34, 160, 90, 0.7);
  transform: scale(0.4);
}

.s-siparis.gonderildi .onay-daire {
  animation: patla 0.55s cubic-bezier(0.2, 0.8, 0.3, 1.4) forwards;
}

.onay-daire svg,
.teslim-onay svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.s-siparis.gonderildi .onay-daire svg {
  animation: ciz 0.45s 0.3s ease forwards;
}

/* Sahne 3: kuryeyi canli izle */
.s-harita {
  background: #eef2ec;
}

.harita {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.h-zemin { fill: #eef2ec; }
.h-park { fill: #cfe8d4; }
.h-su { fill: #cfe3ef; }
.h-bloklar rect { fill: #fff; stroke: #e1e7df; stroke-width: 1; }

.h-rota-iz {
  fill: none;
  stroke: rgba(34, 160, 90, 0.2);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.h-rota {
  fill: none;
  stroke: var(--yesil);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.h-lokanta circle {
  fill: var(--turuncu);
  stroke: #fff;
  stroke-width: 3;
}

.h-lokanta path {
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.h-ev-pin {
  fill: var(--koyu);
  stroke: #fff;
  stroke-width: 2;
}

.h-ev-cati {
  fill: #fff;
}

.h-kurye-hale {
  fill: rgba(34, 160, 90, 0.22);
  animation: hale 1.6s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.h-kurye-govde {
  fill: var(--yesil);
  stroke: #fff;
  stroke-width: 3;
}

.h-kurye path {
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.takip-kart {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px -12px rgba(11, 36, 24, 0.35);
  transform: translateY(130%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.15);
}

.aktif .takip-kart {
  transform: none;
  transition-delay: 0.3s;
}

.takip-kart strong {
  color: var(--koyu);
  font-size: 16px;
}

.takip-kart small {
  color: var(--soluk);
  font-size: 12.5px;
}

.takip-kart b {
  color: var(--yesil-koyu);
}

.canli {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  margin-bottom: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ffe9e6;
  color: #c43c2c;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.canli i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5484d;
  animation: yanip-son 1.2s infinite;
}

.takip-ilerleme {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 6px;
  background: #e7ece6;
}

.takip-ilerleme i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--yesil-parlak), var(--yesil));
}

/* Sahne 4: siparisin gelsin */
.s-teslim {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 36%, rgba(61, 220, 132, 0.22), transparent 55%),
    #f6f7f4;
  text-align: center;
}

.teslim-kutu {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  margin-bottom: 10px;
  border-radius: 36px;
  background: linear-gradient(145deg, #fff, #eef6f0);
  box-shadow: 0 22px 40px -14px rgba(11, 36, 24, 0.35);
  transform: scale(0.3) rotate(-12deg);
  opacity: 0;
}

.aktif .teslim-kutu {
  animation: patla 0.7s 0.1s cubic-bezier(0.2, 0.8, 0.3, 1.4) forwards;
}

.paket {
  width: 78px;
  height: 78px;
}

.aktif .paket {
  animation: zipla 1.2s 0.8s ease-in-out 2;
}

.paket-yan {
  fill: #e7b56a;
  stroke: #b97a2f;
  stroke-width: 2;
  stroke-linejoin: round;
}

.paket-ust {
  fill: none;
  stroke: #b97a2f;
  stroke-width: 2;
  stroke-linejoin: round;
}

.paket-bant {
  fill: none;
  stroke: var(--yesil);
  stroke-width: 4;
  stroke-linecap: round;
}

.teslim-baslik {
  color: var(--koyu);
  font-size: 22px;
  letter-spacing: -0.02em;
  opacity: 0;
}

.teslim-yazi {
  max-width: 200px;
  margin: 0;
  color: var(--soluk);
  font-size: 13px;
  opacity: 0;
}

.aktif .teslim-baslik {
  animation: yukari-gel 0.5s 0.55s ease both;
}

.aktif .teslim-yazi {
  animation: yukari-gel 0.5s 0.7s ease both;
}

.yildizlar {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.yildizlar i {
  width: 24px;
  height: 24px;
  background: #d8dfd9;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.aktif .yildizlar i {
  animation: yildiz 0.35s ease forwards;
}

.aktif .yildizlar i:nth-child(1) { animation-delay: 1.1s; }
.aktif .yildizlar i:nth-child(2) { animation-delay: 1.25s; }
.aktif .yildizlar i:nth-child(3) { animation-delay: 1.4s; }
.aktif .yildizlar i:nth-child(4) { animation-delay: 1.55s; }
.aktif .yildizlar i:nth-child(5) { animation-delay: 1.7s; }

.konfeti {
  position: absolute;
  top: 34%;
  left: 50%;
  pointer-events: none;
}

.konfeti i {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0;
}

.konfeti i:nth-child(3n) { background: var(--yesil-parlak); }
.konfeti i:nth-child(3n + 1) { background: var(--turuncu); }
.konfeti i:nth-child(3n + 2) { background: #ef6f5b; }

.aktif .konfeti i {
  animation: konfeti 1.3s 0.35s cubic-bezier(0.1, 0.7, 0.3, 1) forwards;
}

.konfeti i:nth-child(1) { --x: -110px; --y: -120px; --d: 200deg; }
.konfeti i:nth-child(2) { --x: 100px; --y: -130px; --d: -160deg; }
.konfeti i:nth-child(3) { --x: -60px; --y: -150px; --d: 120deg; }
.konfeti i:nth-child(4) { --x: 70px; --y: -90px; --d: 260deg; }
.konfeti i:nth-child(5) { --x: -130px; --y: -40px; --d: -220deg; }
.konfeti i:nth-child(6) { --x: 125px; --y: -50px; --d: 180deg; }
.konfeti i:nth-child(7) { --x: -20px; --y: -165px; --d: 300deg; }
.konfeti i:nth-child(8) { --x: 30px; --y: -140px; --d: -120deg; }
.konfeti i:nth-child(9) { --x: -95px; --y: 30px; --d: 140deg; }
.konfeti i:nth-child(10) { --x: 105px; --y: 40px; --d: -200deg; }
.konfeti i:nth-child(11) { --x: -40px; --y: 70px; --d: 240deg; }
.konfeti i:nth-child(12) { --x: 50px; --y: 80px; --d: -260deg; }

/* --- Adim secici (telefon alti) ------------------------------------------------------ */
.adim-secici {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(520px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.adim-secici button {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 10px 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.adim-secici button span {
  font-size: 11px;
  font-weight: 800;
  color: var(--yesil-parlak);
}

.adim-secici button:hover {
  color: #fff;
}

.adim-secici button[aria-current='step'] {
  border-color: rgba(61, 220, 132, 0.5);
  background: rgba(61, 220, 132, 0.12);
  color: #fff;
}

.adim-dolum {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--yesil-parlak);
  transform: scaleX(0);
  transform-origin: left;
}

/* --- Hizli erisim ------------------------------------------------------------------ */
.hizli {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}

.hizli-ic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hizli-kart {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--cizgi);
  border-radius: var(--yaricap);
  background: var(--kart);
  box-shadow: var(--golge);
  color: var(--metin);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hizli-kart:hover {
  transform: translateY(-4px);
  border-color: var(--yesil);
  box-shadow: 0 30px 60px -24px rgba(11, 36, 24, 0.4);
}

.hizli-kart svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--yesil-acik);
  fill: none;
  stroke: var(--yesil-koyu);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hizli-kart strong {
  color: var(--koyu);
  font-size: 18px;
}

.hizli-kart span {
  color: var(--soluk);
  font-size: 14px;
}

.hizli-ana {
  border-color: transparent;
  background: linear-gradient(145deg, #1d9150, #0f5c33);
  color: #fff;
}

.hizli-ana strong {
  color: #fff;
}

.hizli-ana span {
  color: rgba(255, 255, 255, 0.78);
}

.hizli-ana svg {
  background: rgba(255, 255, 255, 0.16);
  stroke: #fff;
}

/* --- Nasil calisir ----------------------------------------------------------------- */
.bolum-ust {
  margin: 0 0 10px;
  color: var(--yesil-koyu);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.akis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: akis;
}

.akis li {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--cizgi);
  border-radius: var(--yaricap);
  background: var(--kart);
  box-shadow: var(--golge-kucuk);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.akis li:hover {
  transform: translateY(-4px);
  box-shadow: var(--golge);
}

.akis h3 {
  font-size: 19px;
}

.akis p {
  margin: 0;
  color: var(--soluk);
  font-size: 15px;
}

.akis-simge svg {
  width: 48px;
  height: 48px;
  padding: 11px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--yesil-acik), #d5f0df);
  fill: none;
  stroke: var(--yesil-koyu);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.akis-no {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #d6ddd7;
}

/* --- Lokantalar icin (koyu bolum) ----------------------------------------------------- */
.bolum-koyu {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 420px at 90% 0%, rgba(61, 220, 132, 0.16), transparent 60%),
    linear-gradient(180deg, #0b2418, #0a1f15);
  color: rgba(255, 255, 255, 0.8);
}

.bolum-koyu h2,
.bolum-koyu h3 {
  color: #fff;
}

.bolum-koyu .bolum-ust {
  color: var(--yesil-parlak);
}

.bolum-koyu .bolum-aciklama {
  color: rgba(255, 255, 255, 0.66);
}

.ozellikler {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ozellikler article {
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--yaricap);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.ozellikler article:hover {
  border-color: rgba(61, 220, 132, 0.45);
  transform: translateY(-4px);
}

.ozellikler svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(61, 220, 132, 0.12);
  fill: none;
  stroke: var(--yesil-parlak);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ozellikler h3 {
  font-size: 18px;
}

.ozellikler p {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.66);
}

.cagri {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding: 34px 36px;
  border-radius: 26px;
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(245, 181, 68, 0.28), transparent 70%),
    linear-gradient(135deg, #1d9150, #0f5c33);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.5);
}

.cagri strong {
  display: block;
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.cagri p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.cagri-dugmeler {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cagri .dugme:not(.dugme-cam) {
  background: #fff;
  color: var(--yesil-koyu);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.4);
}

/* --- Kaydirinca belirme (CSS kaydirma zaman cizelgesi; desteklemeyen tarayicida icerik dogrudan gorunur) */
@supports (animation-timeline: view()) {
  .bolum .goster,
  .hizli .goster {
    animation: yukari-gel linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}

/* --- Animasyon kareleri -------------------------------------------------------------- */
@keyframes yukari-gel {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes nabiz {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

@keyframes kart-yaklas {
  0% { transform: rotate(-8deg) scale(0.8) translateY(30px); }
  40%, 100% { transform: rotate(-2deg) scale(1); }
}

@keyframes cerceve-daral {
  0% { transform: translate(-50%, -54%) scale(1.25); opacity: 0; }
  25%, 100% { transform: translate(-50%, -54%) scale(1); opacity: 1; }
}

@keyframes cerceve-yesil {
  0% { border-color: #fff; }
  62% { border-color: var(--yesil-parlak); }
}

@keyframes tara {
  0% { top: 10px; opacity: 0; }
  10% { opacity: 1; }
  50% { top: calc(100% - 14px); }
  90% { opacity: 1; }
  100% { top: 10px; opacity: 0; }
}

@keyframes bildirim-gel {
  to { opacity: 1; transform: none; }
}

@keyframes bas {
  50% { transform: var(--konum) scale(0.7); }
}

@keyframes sicra {
  50% { transform: scale(1.35); }
}

@keyframes patla {
  0% { transform: scale(0.3) rotate(-12deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes ciz {
  to { stroke-dashoffset: 0; }
}

@keyframes hale {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes yanip-son {
  50% { opacity: 0.25; }
}

@keyframes zipla {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(0); }
  75% { transform: translateY(-4px); }
}

@keyframes yildiz {
  0% { background: #d8dfd9; transform: scale(0.6); }
  60% { transform: scale(1.25); }
  100% { background: var(--turuncu); transform: scale(1); }
}

@keyframes konfeti {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 80px)) rotate(var(--d)); }
}

/* --- Dar ekran --------------------------------------------------------------------- */
@media (max-width: 980px) {
  .sahne {
    padding: 112px 0 120px;
  }

  .sahne-ic {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .sahne-metin {
    text-align: center;
  }

  .sahne h1,
  .sahne-aciklama {
    margin-inline: auto;
  }

  .sahne-dugmeler,
  .guvenler {
    justify-content: center;
  }

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

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

@media (max-width: 640px) {
  .sahne h1 {
    font-size: 38px;
  }

  .sahne-aciklama {
    font-size: 17px;
  }

  .telefon {
    width: 270px;
  }

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

  .hizli {
    margin-top: -48px;
  }

  .hizli-ic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .hizli-kart {
    padding: 16px;
  }

  .hizli-kart strong {
    font-size: 16px;
  }

  .hizli-kart span {
    font-size: 13px;
  }

  .akis,
  .ozellikler {
    grid-template-columns: 1fr;
  }

  .cagri {
    padding: 26px 22px;
  }

  .cagri-dugmeler,
  .cagri-dugmeler .dugme {
    width: 100%;
  }
}

/* Hareket azaltma: acilis ve kaydirma animasyonlari kapali; senaryo kendiliginden ilerlemez (senaryo.js) */
@media (prefers-reduced-motion: reduce) {
  .sahne-metin > *,
  .senaryo,
  .bolum .goster,
  .hizli .goster {
    animation: none !important;
  }

  .rozet-nokta,
  .h-kurye-hale,
  .canli i {
    animation: none;
  }
}
