/* =====================================================================
   Tema eklentileri: üst şerit, ilerleme çubuğu, doku, kayan bant,
   imleç ışığı, yorum özeti ve yüzen butonlar
   ===================================================================== */

/* Üst bilgi şeridi */
.topbar { background: rgba(0,0,0,.22); border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; color: rgba(255,255,255,.7);
  overflow: hidden; max-height: 40px; transition: max-height .35s var(--ease), opacity .3s; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 20px; }
.topbar-msg { display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: flex; gap: 22px; white-space: nowrap; }
.topbar-links a, .topbar-links span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-links a:hover { color: var(--mint); }
.topbar svg { width: 14px; height: 14px; color: var(--mint); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex: none; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(var(--mint-rgb), .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(var(--mint-rgb), 0); } }
.nav.is-solid .topbar { max-height: 0; opacity: 0; border: 0; }
.has-topbar .hero { padding-top: 180px; }
.has-topbar .phero { padding-top: 190px; }

/* Kaydırma ilerleme çubuğu */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--emerald), var(--mint), var(--gold)); }

/* Film dokusu */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Manşet varyasyonları */
.hero.no-art .hero-grid { grid-template-columns: 1fr; }
.hero.no-art .hero-copy { max-width: 860px; }
.hero.no-quick { padding-bottom: 110px; }
.stats.no-quick { padding-top: 90px; }
.quick-spacer { height: 110px; }
.hero-art { transition: transform .5s var(--ease); }
/* Rozetler her zaman poliçe kartının önünde ve kartın yazılarını örtmeyecek konumda */
.hero-art .pcard-main { z-index: 1; }
.hero-art .chip-float { z-index: 3; }
.hero-art .chip-c { top: -8px; }
.hero-art .chip-a { top: 336px; right: 0; }
.hero-art .chip-b { bottom: 0; left: 0; }
@media (max-width: 1100px) {
  .hero-art { height: 440px; }
}
/* Uzun firma adı dar ekranda menü butonunu dışarı itmesin */
.brand { min-width: 0; }
.brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-cta { flex: none; }
@media (max-width: 420px) {
  .nav-in { gap: 12px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; }
}
@media (max-width: 760px) {
  .hero-art { height: 340px; }
  .hero-art .chip-c { top: -10px; right: 6px; }
  .hero-art .chip-a { top: auto; bottom: 0; right: 0; }
  .hero-art .chip-b { display: none; }
}

/* Kart üzerinde imleci takip eden ışık */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--mint-rgb), .14), transparent 45%); }
.spot:hover::after { opacity: 1; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc-go { position: relative; z-index: 2; }

/* Kayan hizmet bandı */
.marquee { overflow: hidden; background: var(--ink); color: #fff; padding: 22px 0; border-block: 1px solid rgba(255,255,255,.06); }
.marquee-track { display: flex; gap: 36px; width: max-content; align-items: center; animation: marq 38s linear infinite; }
.marquee span { font-family: var(--head); font-size: clamp(22px, 3vw, 34px); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.marquee span:nth-of-type(odd) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
.marquee i { font-style: normal; color: var(--mint); font-size: 18px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.is-static .marquee-track { animation: none; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Adımlar: admin'den gelen adım sayısına göre kolon */
.steps { grid-template-columns: repeat(var(--n, 3), 1fr); }

/* Yorum başlığı & ortalama puan */
.tst-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.rating-sum { display: flex; align-items: center; gap: 12px; }
.rating-sum > b { font-family: var(--head); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.rating-sum small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.tcard { margin: 0; transition: transform .45s var(--ease), box-shadow .45s; }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cta-pad { padding-top: 120px; }
.section-white + .cta-pad { background: linear-gradient(180deg, var(--card) 0 50%, var(--paper) 50%); }

/* ---------------- Yüzen butonlar ---------------- */
.fab { position: fixed; bottom: 24px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-right { right: 24px; }
.fab-left { left: 24px; align-items: flex-start; }
.fab-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; align-items: inherit; }
.fab-item a { display: flex; align-items: center; gap: 10px; }
.fab-left .fab-item a { flex-direction: row-reverse; }
.fab-btn { position: relative; width: 54px; height: 54px; border-radius: 50%; background: var(--fab); color: #fff; display: grid; place-items: center; flex: none;
  box-shadow: 0 12px 26px -10px var(--fab), inset 0 -2px 0 rgba(0,0,0,.12); transition: transform .3s var(--ease); }
.fab-btn svg { width: 24px; height: 24px; }
.fab-item a:hover .fab-btn, .fab-item a:focus-visible .fab-btn { transform: scale(1.08) rotate(-6deg); }
.fab-label { background: var(--card); color: var(--text); padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow); opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .3s var(--ease); pointer-events: none; }
.fab-left .fab-label { transform: translateX(-8px); }
.fab-item a:hover .fab-label, .fab-item a:focus-visible .fab-label { opacity: 1; transform: none; }
.fab-toggle { display: none; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--mint); color: var(--on-mint); place-items: center; position: relative;
  box-shadow: 0 14px 30px -10px rgba(var(--mint-rgb), .8); }
.fab-toggle::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--mint); animation: ring 2.4s infinite; }
.fab.open .fab-toggle::before { animation: none; opacity: 0; }
.fab-toggle svg { width: 26px; height: 26px; }
.fab-toggle span { grid-area: 1 / 1; display: grid; transition: transform .35s var(--ease), opacity .25s; }
.fab-ico-close { opacity: 0; transform: rotate(-90deg); }
.fab.open .fab-ico-open { opacity: 0; transform: rotate(90deg); }
.fab.open .fab-ico-close { opacity: 1; transform: none; }
.fab .only-mobile { display: none; }
/* Kapsayıcılar tıklamayı yutmasın; yalnızca görünen butonlar tıklanabilir */
.fab, .fab-list { pointer-events: none; }
.fab-toggle, .fab-item a { pointer-events: auto; }
@media (min-width: 761px) { .fab.dial-desktop:not(.open) .fab-item a { pointer-events: none; } }
@media (max-width: 760px) { .fab.dial-mobile:not(.open) .fab-item a { pointer-events: none; } }
.fab.open::before { pointer-events: auto; }
/* Tekli/az butonlu modda ilk butonda dikkat çeken halka */
.fab-item:first-child .fab-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--fab); animation: ring 2.4s infinite; }

@media (min-width: 761px) {
  .fab.none-desktop { display: none; }
  .fab.dial-desktop .fab-toggle { display: grid; }
  .fab.dial-desktop .fab-item { opacity: 0; transform: translateY(14px) scale(.85); pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
  .fab.dial-desktop.open .fab-item { opacity: 1; transform: none; pointer-events: auto; transition-delay: calc(var(--i) * 30ms); }
  .fab.dial-desktop.open .fab-label { opacity: 1; transform: none; }
  .fab.dial-desktop .fab-btn::after { display: none; }
}

@media (max-width: 760px) {
  .fab { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 12px); }
  .dock ~ .fab { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 84px); }
  .fab-right { right: 14px; }
  .fab-left { left: 14px; }
  .fab.none-mobile { display: none; }
  .fab .only-desktop { display: none; }
  .fab .only-mobile { display: list-item; }
  .fab-btn { width: 50px; height: 50px; }
  .fab.dial-mobile .fab-toggle { display: grid; width: 54px; height: 54px; }
  .fab.dial-mobile .fab-item { opacity: 0; transform: translateY(14px) scale(.85); pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
  .fab.dial-mobile.open .fab-item { opacity: 1; transform: none; pointer-events: auto; transition-delay: calc(var(--i) * 30ms); }
  .fab.dial-mobile .fab-label { opacity: 1; transform: none; }
  .fab.dial-mobile .fab-btn::after { display: none; }
  .fab.open::before { content: ""; position: fixed; inset: 0; background: rgba(var(--night-rgb), .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: -1; }

  .topbar { display: none; }
  .has-topbar .hero { padding-top: 112px; }
  .has-topbar .phero { padding-top: 120px; }
  .quick-spacer { height: 140px; }
  .marquee { padding: 16px 0; }
  .tst-head { width: 100%; justify-content: space-between; }
  .rating-sum > b { font-size: 36px; }
  .cta-pad { padding-top: 84px; }
}
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}
body.is-preview .fab a, body.is-preview .dock a { pointer-events: none; }

/* Teklif penceresi: Geri / Devam / Gönder butonları içerik uzun olsa da hep görünür kalır.
   Grid satırı minmax(0,1fr) olmazsa içerik alanı pencereyi aşıp kesilir ve kaydırılamaz. */
.qw:not(.qw-inline) .qw-panel { grid-template-rows: minmax(0, 1fr); }
.qw:not(.qw-inline) .qw-main { padding-bottom: 0; min-height: 0; }
.qw:not(.qw-inline) .qw-rail { min-height: 0; overflow-y: auto; }
.qw:not(.qw-inline) .qw-step[data-step="1"] { padding-bottom: 32px; }
.qw:not(.qw-inline) .qw-nav {
  position: sticky; bottom: 0; z-index: 3;
  margin: 22px -44px 0; padding: 18px 44px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0, #fff 22px);
}
.qw:not(.qw-inline) .qw-error { margin-bottom: 0; }
.qw .check small { font-size: 12px; }
/* Koşullu alanlar (ör. "Rahatsızlık bilgisi" yalnızca "Var" seçilince) — .fld'nin display:flex'i hidden'ı ezmesin */
.fld[hidden] { display: none !important; }
@media (max-width: 760px) {
  .qw:not(.qw-inline) .qw-nav {
    margin: 16px -18px 0; padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
  }
  .qw-inline .qw-nav { position: static; background: none; padding: 0; margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
