/* Filmbol — istek konusu "Destek durumu" karti (2026-11-19). fblabs/destek_kart.php uretir,
   jscripts/fb_destek_pop.js acilis animasyonu + canli guncelleme. Ust menu dili: lacivert, Rajdhani, turuncu. */
.fbdk {
  --bg: var(--trow-bg, #fff); --ink: #161b28; --mut: #5f6478; --line: #e6e8ef; --soft: #f4f5f9;
  --acc: #F88A0E; --acc2: #ffb347; --ok: #1e9e5f; --ok2: #3cc985;
  position: relative; margin: 14px 0 18px; padding: 16px 18px 14px; border-radius: 14px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px rgba(22,27,40,.35); overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.night-mode .fbdk { --bg: #1d2333; --ink: #e6e8f0; --mut: #a4aac0; --line: #2a3247; --soft: #161b28; }
.fbdk::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--acc), var(--acc2));
}
.fbdk.fbdk-ok::before { background: linear-gradient(180deg, var(--ok), var(--ok2)); }
.fbdk.fbdk-kapali::before { background: #8a90a3; }
.fbdk, .fbdk *, .fbdk *::before, .fbdk *::after { box-sizing: border-box; }

/* Duzen (2026-11-19 sahip): masaustu baslik | ortada Destekle | sagda rozet + altinda kalan sure.
   Alanlar bos kalabilir (kapali istekte tus/sure yok). Mobil duzen asagida @media icinde. */
.fbdk {
  display: grid; column-gap: 12px;
  grid-template-columns: 40px auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto;
  grid-template-areas:
    "ico bas . tus . rozet"
    "ico bas . tus . sure"
    "sayac sayac sayac sayac sayac sayac"
    "bar bar bar bar bar bar"
    "alt alt alt alt alt alt"
    "kim kim kim kim kim kim";
}
.fbdk-ico { grid-area: ico; align-self: center; }
.fbdk-bas { grid-area: bas; align-self: center; }
.fbdk-tus { grid-area: tus; align-self: center; }
.fbdk-rozet { grid-area: rozet; justify-self: end; align-self: end; }
.fbdk-sure { grid-area: sure; justify-self: end; align-self: start; margin-top: 5px; }
.fbdk-sayac { grid-area: sayac; margin: 14px 0 10px; }
.fbdk-bar { grid-area: bar; }
.fbdk-alt { grid-area: alt; }
.fbdk-kim { grid-area: kim; }
.fbdk-ico {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; background: linear-gradient(135deg, #161b28, #2c3550);
}
.night-mode .fbdk-ico { background: linear-gradient(135deg, #2c3550, #3a4566); }
.fbdk-bas { min-width: 0; flex: 1; }
.fbdk-bas h3 { margin: 0; font: 700 18px/1.2 Rajdhani, "Segoe UI", sans-serif; letter-spacing: .2px; color: var(--ink); }
.fbdk-bas p { margin: 2px 0 0; font-size: 12px; color: var(--mut); }
.fbdk-rozet {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 13px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  color: #b85f00; background: rgba(248,138,14,.12); box-shadow: inset 0 0 0 1px rgba(248,138,14,.28);
}
.night-mode .fbdk-rozet { color: #ffb347; }
.fbdk-ok .fbdk-rozet { color: var(--ok); background: rgba(30,158,95,.12); box-shadow: inset 0 0 0 1px rgba(30,158,95,.3); }
.night-mode .fbdk-ok .fbdk-rozet { color: var(--ok2); }
.fbdk-kapali .fbdk-rozet { color: var(--mut); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.fbdk-bekliyor .fbdk-rozet i { animation: fbdkKum 2.4s ease-in-out infinite; }

.fbdk-sayac { display: flex; align-items: baseline; gap: 6px; }
.fbdk-n { font: 700 40px/1 Rajdhani, "Segoe UI", sans-serif; color: var(--acc); font-variant-numeric: tabular-nums; }
.fbdk-ok .fbdk-n { color: var(--ok); }
.fbdk-kapali .fbdk-n { color: var(--mut); }
.fbdk-g { font-size: 14px; font-weight: 600; color: var(--mut); }
.fbdk-sure { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--mut); white-space: nowrap; }
.fbdk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 220px; padding: 0 26px; border-radius: 11px;
  font-weight: 700; font-size: 14px; color: #fff !important; text-decoration: none !important;
  background: linear-gradient(135deg, #F88A0E, #f0750a); box-shadow: 0 8px 18px -8px rgba(248,138,14,.85);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.fbdk-btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 22px -8px rgba(248,138,14,.9); }
.fbdk-btn:active { transform: translateY(0) scale(.98); }
.fbdk-btn:focus-visible { outline: 3px solid rgba(248,138,14,.5); outline-offset: 2px; }
.fbdk-btn i { transition: transform .3s cubic-bezier(.2,1.6,.4,1); }
.fbdk-btn:hover i { transform: scale(1.18) rotate(-8deg); }

.fbdk-bar { position: relative; height: 12px; border-radius: 8px; background: var(--soft); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.fbdk-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); border-radius: 8px;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  transition: width 1.2s cubic-bezier(.25,.9,.3,1);
}
.fbdk.js:not(.go) .fbdk-bar i { width: 0; }
.fbdk-bekliyor .fbdk-bar i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 0 35%, rgba(255,255,255,.45) 50%, transparent 65% 100%);
  background-size: 200% 100%; animation: fbdkParla 2.2s linear infinite;
}
.fbdk-ok .fbdk-bar i { background: linear-gradient(90deg, var(--ok), var(--ok2)); }
.fbdk-kapali .fbdk-bar i { background: #8a90a3; }
.fbdk-alt { display: flex; justify-content: space-between; gap: 10px; margin: 7px 0 0; font-size: 12px; color: var(--mut); }
.fbdk-alt b { color: var(--ink); }
.fbdk-yuzde { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.fbdk-kim { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.fbdk-kimb { display: block; font-size: 11px; font-weight: 700; color: var(--mut); margin-bottom: 8px; }
.fbdk-cipler { display: flex; flex-wrap: wrap; gap: 6px; }
.fbdk-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 3px; border-radius: 15px;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none !important; font-size: 12.5px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.fbdk-chip:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(248,138,14,.5); }
.fbdk-av {
  position: relative; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #3a7bd5, #161b28);
}
.fbdk-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fbdk-ad { font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbdk-x { font-size: 11px; font-weight: 700; color: #b85f00; background: rgba(248,138,14,.14); border-radius: 8px; padding: 1px 6px; }
.night-mode .fbdk-x { color: #ffb347; }
.fbdk-tag { font-size: 10px; font-weight: 700; color: var(--mut); border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; }

/* acilis: betik karti 'js' ile isaretler, gorunur olunca (go) cipler sirayla belirir; betiksiz kart tam gorunur */
.fbdk.js .fbdk-chip { opacity: 0; transform: translateY(6px) scale(.95); }
.fbdk.js.go .fbdk-chip { animation: fbdkCip .45s cubic-bezier(.2,1.25,.35,1) forwards; animation-delay: calc(var(--i, 0) * 45ms + .25s); }
.fbdk-chip.yeni { animation: fbdkYeni .7s cubic-bezier(.2,1.6,.4,1) forwards !important; }
.fbdk-x.pop { animation: fbdkPop .5s cubic-bezier(.2,1.6,.4,1); }
.fbdk-n.pop { animation: fbdkPop .6s cubic-bezier(.2,1.6,.4,1); }

@keyframes fbdkCip { to { opacity: 1; transform: none; } }
@keyframes fbdkYeni { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.12); box-shadow: 0 0 0 6px rgba(248,138,14,.25); } 100% { opacity: 1; transform: none; } }
@keyframes fbdkPop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes fbdkParla { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes fbdkKum { 0%, 70% { transform: rotate(0); } 85%, 100% { transform: rotate(180deg); } }

@media (max-width: 900px) { .fbdk-btn { min-width: 160px; padding: 0 18px; } }
/* Mobil: sayacin saginda kalan sure (saga yasli), cubugun hemen altinda tam genislikte Destekle */
@media (max-width: 640px) {
  .fbdk {
    padding: 14px 14px 12px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "ico bas rozet"
      "sayac sayac sure"
      "bar bar bar"
      "alt alt alt"
      "tus tus tus"
      "kim kim kim";
  }
  .fbdk-rozet { align-self: center; }
  .fbdk-sure { align-self: end; margin: 0 0 13px; }
  .fbdk-tus { margin-top: 12px; }
  .fbdk-btn { width: 100%; min-width: 0; }
}
@media (max-width: 340px) {
  .fbdk-rozet span { display: none; }
  .fbdk-rozet { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .fbdk-bar i { transition: none; }
  .fbdk.js .fbdk-chip { opacity: 1; transform: none; }
  .fbdk.js.go .fbdk-chip, .fbdk-chip.yeni, .fbdk-x.pop, .fbdk-n.pop,
  .fbdk-bekliyor .fbdk-bar i::after, .fbdk-bekliyor .fbdk-rozet i { animation: none !important; }
}

/* ── Yetkili: "Gereken destek sayisi" formu (2026-11-19) — kartla ayni dil, sayfa yenilemeden kaydeder ── */
.fbns {
  --bg: var(--trow-bg, #fff); --ink: #161b28; --mut: #5f6478; --line: #e6e8ef; --soft: #f4f5f9;
  --acc: #F88A0E; --acc2: #ffb347; --ok: #1e9e5f; --bad: #d6453d;
  position: relative; margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; overflow: hidden;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(22,27,40,.35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.night-mode .fbns { --bg: #1d2333; --ink: #e6e8f0; --mut: #a4aac0; --line: #2a3247; --soft: #161b28; }
.fbns, .fbns * { box-sizing: border-box; }
.fbns::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #3a7bd5, #161b28); }
.fbns-ust { display: flex; align-items: center; gap: 12px; }
.fbns-form { margin: 14px 0 0; }
.fbns-lbl { display: block; font-size: 11px; font-weight: 700; color: var(--mut); margin: 0 0 6px; }
.fbns-row { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.fbns-sayi {
  display: flex; align-items: stretch; height: 44px; border-radius: 11px; overflow: hidden;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s ease;
}
.fbns-sayi:focus-within { box-shadow: inset 0 0 0 2px rgba(248,138,14,.65); }
.fbns-adim {
  width: 42px; border: 0; background: transparent; color: var(--ink); font-size: 20px; font-weight: 700; cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.fbns-adim:hover { background: rgba(248,138,14,.12); }
.fbns-adim:active { transform: scale(.92); }
.fbns-sayi input {
  width: 92px; border: 0; background: transparent; color: var(--ink); text-align: center;
  font: 700 22px/1 Rajdhani, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; -moz-appearance: textfield; outline: 0;
}
.fbns-sayi input::-webkit-outer-spin-button, .fbns-sayi input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fbns-sayi input::placeholder { color: var(--mut); font-size: 15px; font-weight: 600; }
.fbns-kaydet {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 150px; padding: 0 22px;
  border: 0; border-radius: 11px; cursor: pointer; font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, #2c3550, #161b28); box-shadow: 0 8px 18px -8px rgba(22,27,40,.7);
  transition: transform .15s ease, filter .15s ease;
}
.night-mode .fbns-kaydet { background: linear-gradient(135deg, #3a4566, #2c3550); }
.fbns-kaydet:hover { transform: translateY(-1px); filter: brightness(1.12); }
.fbns-kaydet:active { transform: scale(.98); }
.fbns-kaydet[disabled] { opacity: .75; cursor: default; transform: none; }
.fbns-kaydet:focus-visible, .fbns-adim:focus-visible { outline: 3px solid rgba(248,138,14,.5); outline-offset: 2px; }
.fbns-kaydet.ok { background: linear-gradient(135deg, #1e9e5f, #3cc985); }
.fbns-kaydet .fbns-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: fbnsDon .7s linear infinite; }
.fbns-msg { margin: 10px 0 0; font-size: 12.5px; color: var(--mut); min-height: 18px; }
.fbns-msg b { color: var(--ink); }
.fbns-msg.ok { color: var(--ok); font-weight: 600; }
.fbns-msg.bad { color: var(--bad); font-weight: 600; }
.fbns-msg.ok i, .fbns-kaydet.ok i { animation: fbdkPop .5s cubic-bezier(.2,1.6,.4,1); }
.fbns.titre { animation: fbnsTitre .4s; }
.fbdk.fbdk-yeni { animation: fbnsYeni .55s cubic-bezier(.2,1.1,.35,1); }
@keyframes fbnsDon { to { transform: rotate(360deg); } }
@keyframes fbnsTitre { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes fbnsYeni { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .fbns { padding: 14px; }
  .fbns-sayi { flex: 1; }
  .fbns-sayi input { flex: 1; width: auto; min-width: 0; }
  .fbns-kaydet { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .fbns.titre, .fbdk.fbdk-yeni, .fbns-msg.ok i, .fbns-kaydet.ok i { animation: none !important; }
}

/* Odul satiri (2026-11-19): yalniz izinli yetkililer; formun icinde ya da tek basina kart */
.fbns-odul {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 11px 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(30,158,95,.10), rgba(60,201,133,.06)); box-shadow: inset 0 0 0 1px rgba(30,158,95,.28);
}
.fbns-odul-ic {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; background: linear-gradient(135deg, #1e9e5f, #3cc985); box-shadow: 0 6px 14px -6px rgba(30,158,95,.7);
}
.fbns-odul-m { font-size: 13px; line-height: 1.45; color: var(--ink); }
.fbns-odul-m b { color: #1e9e5f; font: 700 17px/1 Rajdhani, "Segoe UI", sans-serif; white-space: nowrap; }
.night-mode .fbns-odul-m b { color: #3cc985; }
.fbns-yalniz { padding: 12px 14px; }
.fbns-yalniz .fbns-odul { margin: 0; }
.fbns-odul-ic i { animation: fbnsPara 3.2s ease-in-out infinite; }
@keyframes fbnsPara { 0%, 82%, 100% { transform: none; } 88% { transform: translateY(-3px) rotate(-10deg); } 94% { transform: translateY(0) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .fbns-odul-ic i { animation: none; } }

/* canli yenilenen destekci listesi: mevcut rozetler acilis animasyonunu tekrar oynatmaz (yalniz yeni/sayisi artan oynar) */
.fbdk.js .fbdk-chip.hazir, .fbdk.js.go .fbdk-chip.hazir { opacity: 1; transform: none; animation: none; }
