/* v5.15 — bakım ve 404 sayfası, form bloğu, son satın alım bildirimi, açılış animasyonu */

/* ---- bakım / 404 ---- */
.dk-page .sy-main.dk-main { display: grid; place-items: center; min-height: calc(100vh - 220px); padding-top: 120px; padding-bottom: 60px; }
.dk-bakim #links, .dk-bakim #menu { display: none !important; }
.dk { width: min(620px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: dk-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.dk h1 { margin: 0; font: 850 clamp(30px, 5.2vw, 52px)/1.06 var(--disp); letter-spacing: -.035em; text-wrap: balance; }
.dk p { margin: 0; color: var(--txt2); font-size: 16.5px; line-height: 1.65; max-width: 52ch; text-wrap: pretty; }
.dk-ic { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: var(--grad, linear-gradient(135deg, var(--a1), var(--a2))); box-shadow: 0 18px 50px -14px rgb(var(--a1r) / .7), 0 1px 0 rgba(255, 255, 255, .3) inset; margin-bottom: 6px; }
.dk-ic svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: dk-tool 2.8s ease-in-out infinite; transform-origin: 70% 30%; }
.dk-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.dk-btns svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dk-cd { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dk-cd small { color: var(--mut); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dk-cdn { display: flex; gap: 10px; }
.dk-cdn span { min-width: 74px; padding: 12px 10px 10px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--s1, #160f1e), var(--s2, #100a16)); display: flex; flex-direction: column; align-items: center; }
.dk-cdn b { font: 800 30px/1 var(--disp); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dk-cdn i { font-style: normal; color: var(--mut); font-size: 12px; margin-top: 6px; }
.dk-cdn span.z { opacity: .4; }
.dk-cd.done .dk-cdn { display: none; }
.dk-big { display: flex; gap: .04em; font: 900 clamp(96px, 20vw, 190px)/.9 var(--disp); letter-spacing: -.06em; }
.dk-big span { display: inline-block; background: linear-gradient(180deg, var(--txt), color-mix(in srgb, var(--txt) 20%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: dk-bob 3.2s ease-in-out infinite; }
.dk-big span:nth-child(2) { background-image: var(--grad, linear-gradient(135deg, var(--a1), var(--a2))); animation-delay: -.6s; transform: rotate(-8deg); }
.dk-big span:nth-child(3) { animation-delay: -1.2s; }
.dk-path { padding: 5px 12px; border-radius: 8px; border: 1px dashed var(--line2); color: var(--mut); font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-sug { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dk-sug small { color: var(--mut); font-size: 13px; }
.dk-sug div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dk-sug a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--txt2); text-decoration: none; font-size: 14px; transition: border-color .2s, color .2s, transform .2s; }
.dk-sug a:hover { color: var(--txt); border-color: var(--a1); transform: translateY(-1px); }
@keyframes dk-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes dk-tool { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 34% { transform: rotate(6deg); } 46% { transform: rotate(0); } }
@keyframes dk-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* bakım açıkken yetkiliye görünen uyarı */
.dk-adm { position: fixed; left: 50%; bottom: calc(14px + var(--srt-b, 0px)); translate: -50% 0; z-index: 9000; padding: 9px 16px; border-radius: 999px; background: #f5b400; color: #2a1d00; font: 600 13px/1.3 var(--font); text-decoration: none; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); white-space: nowrap; max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; }
.dk-adm b { text-decoration: underline; }

/* ---- form bloğu ---- */
.bk-form { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(22px, 4vw, 56px); align-items: start; padding: clamp(24px, 4vw, 44px); border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--s1, #130d19), var(--s2, #0f0a15)); }
.bk-form.solo { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin: 0 auto; }
.bk-fh h2 { margin: 10px 0 0; font: 800 clamp(26px, 3.2vw, 36px)/1.12 var(--disp); letter-spacing: -.03em; }
.bk-fh p { margin: 12px 0 0; color: var(--txt2); line-height: 1.65; }
.bk-fm { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk-fl { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.bk-fl.w { grid-column: 1 / -1; }
.bk-fl > span { font-size: 13px; font-weight: 650; color: var(--txt2); }
.bk-fl > span em { color: var(--a1l); font-style: normal; margin-left: 2px; }
.bk-fm :is(input, textarea, select) { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .25); color: var(--txt); font: 400 15px/1.5 var(--font); transition: border-color .2s, box-shadow .2s; }
.bk-fm textarea { min-height: 120px; resize: vertical; }
.bk-fm select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%); background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.bk-fm select option { background: var(--panel, #110c17); color: var(--txt); }
.bk-fm :is(input, textarea, select):focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 3px rgb(var(--a1r) / .2); }
.bk-fm .bk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.bk-fa { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bk-fe { color: #ff6b8b; font-size: 14px; }
.bk-fe:empty { display: none; }
.bk-fm.sending button[type=submit] { opacity: .65; pointer-events: none; }
.bk-fok { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 22px; border-radius: 18px; border: 1px solid rgba(46, 229, 157, .35); background: rgba(46, 229, 157, .07); animation: dk-in .5s both; }
.bk-fok i { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #2ee59d; color: #06281b; font-style: normal; font-size: 22px; font-weight: 800; }
.bk-fok p { margin: 0; color: var(--txt); }
@media (max-width: 760px) { .bk-form { grid-template-columns: minmax(0, 1fr); } .bk-fm { grid-template-columns: 1fr; } }

/* ---- son satın alım bildirimi (mağaza) ---- */
.spt { position: fixed; left: 16px; bottom: calc(16px + var(--srt-b, 0px)); z-index: 80; display: flex; align-items: center; gap: 12px; max-width: min(360px, calc(100vw - 32px)); padding: 12px 38px 12px 12px; border-radius: 16px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--panel, #110c17) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); color: var(--txt); font-size: 14px; line-height: 1.4; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.spt.in { opacity: 1; transform: none; pointer-events: auto; }
body.has-mp .spt { bottom: calc(96px + var(--srt-b, 0px)); }
.spt-i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c, var(--a1)); color: #fff; overflow: hidden; }
.spt-i img { width: 100%; height: 100%; object-fit: cover; }
.spt-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spt b { font-weight: 700; }
.spt small { display: block; color: var(--mut); font-size: 12px; margin-top: 2px; }
.spt-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--mut); cursor: pointer; font-size: 16px; line-height: 1; }
.spt-x:hover { color: var(--txt); background: rgba(255, 255, 255, .06); }

/* ---- açılış animasyonu ---- */
.ac { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; background: var(--bg, #07040a); pointer-events: none; animation: ac-up .75s cubic-bezier(.76, 0, .24, 1) 1.25s forwards; }
.ac-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ac-m { width: 64px; height: 64px; filter: var(--logo-f, none); }
.ac-t { font: 850 clamp(28px, 5vw, 46px)/1 var(--disp); letter-spacing: -.035em; color: var(--txt, #fff); }
.ac-p { display: none; }
.ac-logo .ac-m { animation: ac-pop .7s cubic-bezier(.2, 1.4, .3, 1) both; filter: var(--logo-f, none) drop-shadow(0 0 30px rgb(var(--a1r) / .7)); }
.ac-logo .ac-t { animation: ac-fade .5s .25s both; }
.ac-perde { background: transparent; animation: ac-hide .01s 1.75s forwards; }
.ac-perde .ac-p { display: block; position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--grad, linear-gradient(135deg, var(--a1), var(--a2))); }
.ac-perde .ac-p1 { left: 0; animation: ac-l .8s cubic-bezier(.76, 0, .24, 1) 1s forwards; }
.ac-perde .ac-p2 { right: 0; animation: ac-r .8s cubic-bezier(.76, 0, .24, 1) 1s forwards; }
.ac-perde .ac-t { color: #fff; animation: ac-fade .5s .1s both, ac-out .3s .85s forwards; }
.ac-yazi .ac-t span { display: inline-block; animation: ac-ch .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 45ms); }
.ac-cizgi .ac-m { animation: ac-fade .4s both; }
.ac-cizgi .ac-t { animation: ac-fade .4s .15s both; }
.ac-l { display: block; width: min(260px, 60vw); height: 2px; border-radius: 2px; background: var(--grad, linear-gradient(90deg, var(--a1), var(--a2))); transform-origin: left; animation: ac-bar 1s cubic-bezier(.65, 0, .35, 1) .1s both; }
@keyframes ac-up { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes ac-hide { to { visibility: hidden; } }
@keyframes ac-pop { from { opacity: 0; transform: scale(.4) rotate(-14deg); } }
@keyframes ac-fade { from { opacity: 0; transform: translateY(8px); } }
@keyframes ac-out { to { opacity: 0; transform: scale(.96); } }
@keyframes ac-l { to { transform: translateX(-101%); } }
@keyframes ac-r { to { transform: translateX(101%); } }
@keyframes ac-ch { from { opacity: 0; transform: translateY(.6em) rotate(8deg); filter: blur(4px); } }
@keyframes ac-bar { from { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  .ac { display: none; }
  .dk, .dk-big span, .dk-ic svg { animation: none; }
  .spt { transition: opacity .2s; transform: none; }
}
