/* Yakıt funnel: dikkat çeken "Satın Al" düğmeleri (hero, menü, yüzen çubuk) */

/* ---------- Hero: büyük animasyonlu düğme ---------- */
.buy-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 6px 0 18px; }
.buy-btn {
  --g1: #ffd27a; --g2: #f0b04e; --g3: #e0882a;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 30px 18px 22px; border-radius: 18px; font-weight: 800; font-size: 19px; letter-spacing: .01em;
  color: #120c03; text-decoration: none;
  background: linear-gradient(135deg, var(--g1), var(--g2) 45%, var(--g3));
  box-shadow: 0 14px 40px -8px rgba(240, 176, 78, .55), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .12);
  transition: transform .25s cubic-bezier(.2, .9, .25, 1.3), box-shadow .25s;
  animation: buyFloat 3.6s ease-in-out infinite;
}
.buy-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 22px 54px -8px rgba(240, 176, 78, .75), inset 0 1px 0 rgba(255, 255, 255, .6); }
.buy-btn:active { transform: translateY(0) scale(.98); }
.buy-btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
/* dönen ışık halkası */
.buy-btn::before {
  content: ""; position: absolute; inset: -3px; border-radius: 21px; z-index: -1;
  background: conic-gradient(from var(--buy-a, 0deg), transparent 0 55%, #fff6d8 70%, #ffb648 80%, transparent 92%);
  animation: buySpin 3s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 3px;
}
/* parlayan şerit */
.buy-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 48%, transparent 62%);
  background-size: 260% 100%; animation: buyShine 2.8s ease-in-out infinite;
}
.buy-btn__ic { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(18, 12, 3, .9); color: #ffd27a; flex: none; }
.buy-btn__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: buyCart 2.4s ease-in-out infinite; }
.buy-btn__ic::after { content: ""; position: absolute; inset: -4px; border-radius: 14px; border: 2px solid rgba(18, 12, 3, .5); animation: buyPing 2.4s ease-out infinite; }
.buy-btn__txt { display: flex; flex-direction: column; line-height: 1.15; }
.buy-btn__txt small { font-size: 12px; font-weight: 600; opacity: .75; letter-spacing: 0; }
.buy-btn__arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: buyNudge 1.4s ease-in-out infinite; }
/* dışa yayılan dalgalar */
.buy-wave { position: absolute; inset: 0; border-radius: 18px; pointer-events: none; z-index: -2; }
.buy-wave i { position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(240, 176, 78, .55); animation: buyWave 2.6s ease-out infinite; }
.buy-wave i:nth-child(2) { animation-delay: 1.3s; }

.buy-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted, #a1a1aa); padding-left: 4px; }
.buy-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.buy-hero__meta svg { width: 14px; height: 14px; fill: none; stroke: #f0b04e; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Menüdeki düğme ---------- */
.nav-buy {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px; margin-right: 8px;
  padding: 9px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #120c03;
  background: linear-gradient(135deg, #ffd27a, #f0b04e 50%, #e0882a); box-shadow: 0 6px 20px -4px rgba(240, 176, 78, .6);
  animation: navBuyPulse 2.4s ease-in-out infinite;
}
.nav-buy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav-buy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%); background-size: 260% 100%; animation: buyShine 3.2s ease-in-out infinite; }
.nav-buy:hover { transform: translateY(-1px); }

/* ---------- Yüzen alt çubuk (kaydırınca ortada belirir) ---------- */
.buy-dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 90; transform: translate(-50%, 140%); opacity: 0;
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; max-width: calc(100vw - 24px);
  border-radius: 999px; background: rgba(14, 14, 16, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(240, 176, 78, .35); box-shadow: 0 18px 50px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  transition: transform .55s cubic-bezier(.2, .9, .25, 1.15), opacity .4s;
}
.buy-dock.is-on { transform: translate(-50%, 0); opacity: 1; }
.buy-dock__txt { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.buy-dock__txt b { font-size: 14px; color: #fff; }
.buy-dock__txt small { font-size: 12px; color: #a1a1aa; }
.buy-dock__txt small em { font-style: normal; color: #f0b04e; font-weight: 700; }
.buy-dock .nav-buy { margin: 0; padding: 11px 20px; font-size: 15px; }
.buy-dock__x { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); color: #a1a1aa; cursor: pointer; font-size: 16px; line-height: 1; }
.buy-dock__x:hover { background: rgba(255, 255, 255, .12); color: #fff; }

@property --buy-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes buySpin { to { --buy-a: 360deg; } }
@keyframes buyShine { 0%, 35% { background-position: 130% 0; } 75%, 100% { background-position: -40% 0; } }
@keyframes buyFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes buyCart { 0%, 100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(2px) rotate(-8deg); } 40% { transform: translateX(-1px) rotate(4deg); } 60% { transform: translateX(0) rotate(0); } }
@keyframes buyPing { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes buyNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes buyWave { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.18, 1.45); opacity: 0; } }
@keyframes navBuyPulse { 0%, 100% { box-shadow: 0 6px 20px -4px rgba(240, 176, 78, .55); } 50% { box-shadow: 0 6px 30px 0 rgba(240, 176, 78, .85); } }

@media (max-width: 760px) {
  .buy-hero { align-items: stretch; }
  .buy-btn { justify-content: center; font-size: 18px; padding: 16px 20px; }
  .buy-hero__meta { justify-content: center; }
  .nav-buy { padding: 8px 13px; font-size: 13px; }
  .buy-dock { gap: 10px; padding-left: 16px; bottom: 12px; }
  .buy-dock__txt small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .buy-btn, .buy-btn::before, .buy-btn::after, .buy-btn__ic svg, .buy-btn__ic::after, .buy-btn__arrow, .buy-wave i, .nav-buy, .nav-buy::after { animation: none !important; }
}

/* düzeltmeler: menüde tek satır, hero altı yazılar okunur */
.nav-buy { white-space: nowrap; flex: none; line-height: 1; }
.nav__links .nav-buy { align-self: center; }
.buy-hero__meta { font-size: 13.5px; color: #d4d4d8; }
@media (max-width: 1100px) { .nav__links .nav-buy svg { display: none; } }

/* ---------- Geri sayım (Satın Al altı) — küçük, sade, okunaklı ---------- */
.cd3d { display: inline-flex; flex-direction: column; gap: 7px; margin: 2px 0 18px; padding: 10px 14px 10px 12px; border-radius: 14px;
  background: rgba(20, 18, 14, .72); border: 1px solid rgba(240, 176, 78, .22); box-shadow: 0 10px 26px -16px rgba(0, 0, 0, .9); backdrop-filter: blur(6px); }
.cd3d[hidden] { display: none; }
.cd3d__t { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 12px; font-weight: 600; color: #d4d4d8; letter-spacing: .01em; }
.cd3d__t i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #f0b04e; box-shadow: 0 0 0 0 rgba(240, 176, 78, .7); animation: cdPing 1.8s ease-out infinite; }
.cd3d__row { display: flex; align-items: center; gap: 6px; }
.cd3d__u { display: flex; align-items: baseline; gap: 3px; padding: 5px 9px; border-radius: 9px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); perspective: 300px; }
.cd3d__card { display: inline-block; min-width: 1.35em; text-align: center; font: 700 19px/1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #f6c873; }
.cd3d__card.is-flip { animation: cdFlip .45s cubic-bezier(.2, .8, .2, 1); }
.cd3d__u small { font-size: 11px; font-weight: 500; color: #a1a1aa; }
.cd3d__sep { display: none; }
.cd3d__bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.cd3d__bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: 3px; background: linear-gradient(90deg, #f0b04e, #e0882a); transition: width 1s linear; }
.cd3d.is-urgent { border-color: rgba(239, 68, 68, .45); }
.cd3d.is-urgent .cd3d__card { color: #fca5a5; }
@keyframes cdFlip { from { transform: rotateX(-70deg); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes cdPing { 100% { box-shadow: 0 0 0 7px rgba(240, 176, 78, 0); } }
@media (max-width: 760px) { .cd3d { display: flex; margin-left: auto; margin-right: auto; max-width: 340px; } .cd3d__row { justify-content: center; } .cd3d__t { justify-content: center; } .cd3d__card { font-size: 17px; } .cd3d__u { padding: 4px 7px; } }
@media (prefers-reduced-motion: reduce) { .cd3d__t i, .cd3d__card.is-flip { animation: none !important; } }

/* Sayaçtan Satın Al düğmesine işaret eden ok */
.cd3d { position: relative; }
.cd3d__arrow { position: absolute; left: calc(100% + 40px); top: -88px; width: 96px; height: 74px; pointer-events: none; animation: cdArrowBob 2.2s ease-in-out infinite; }
.cd3d__arrow svg { width: 100%; height: 100%; overflow: visible; transform: scaleX(-1); filter: drop-shadow(0 0 6px rgba(240, 176, 78, .55)); }
.cd3d__arrow-l, .cd3d__arrow-h { fill: none; stroke: #f0b04e; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cd3d__arrow-l { stroke-dasharray: 110; stroke-dashoffset: 110; animation: cdArrowDraw 3.2s ease-in-out infinite; }
.cd3d__arrow-h { stroke-dasharray: 30; stroke-dashoffset: 30; animation: cdArrowHead 3.2s ease-in-out infinite; }
.cd3d__arrow em { position: absolute; left: 46px; top: 74px; white-space: nowrap; font: italic 600 12px/1 Inter, system-ui, sans-serif; color: #f6c873; opacity: 0; animation: cdArrowTxt 3.2s ease-in-out infinite; }
.cd3d__up { display: none; }
@keyframes cdArrowDraw { 0% { stroke-dashoffset: 110; } 35%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes cdArrowHead { 0%, 30% { stroke-dashoffset: 30; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes cdArrowTxt { 0%, 35% { opacity: 0; transform: translateY(4px); } 50%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes cdArrowBob { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-3px, -4px); } }
/* dar ekran: sayacın üstünde yukarıyı gösteren kayan oklar */
@media (max-width: 1100px) { .cd3d__arrow { display: none; } }
@media (max-width: 1100px) {
  .cd3d__up { display: flex; flex-direction: column; align-items: center; position: absolute; left: 50%; top: -20px; transform: translateX(-50%); gap: 0; pointer-events: none; }
  .cd3d__up i { width: 10px; height: 10px; margin-top: -5px; border: solid #f0b04e; border-width: 2.5px 0 0 2.5px; transform: rotate(45deg); opacity: 0; animation: cdUp 1.5s ease-in-out infinite; }
  .cd3d__up i:nth-child(2) { animation-delay: .2s; } .cd3d__up i:nth-child(3) { animation-delay: .4s; }
  .cd3d { margin-top: 14px; }
}
@keyframes cdUp { 0% { opacity: 0; translate: 0 6px; } 40% { opacity: 1; } 100% { opacity: 0; translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .cd3d__arrow, .cd3d__arrow-l, .cd3d__arrow-h, .cd3d__arrow em, .cd3d__up i { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; } }

/* Satın Al düğmesinin içindeki geri sayım */
.buy-btn__cd { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; padding: 2px 8px 2px 6px; border-radius: 999px; background: rgba(18, 12, 3, .82); color: #f6c873 !important; opacity: 1 !important; font-weight: 600; width: max-content; box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .25); }
.buy-btn__cd[hidden], .buy-btn__sub[hidden] { display: none; }
.buy-btn__cd svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: buyCdTick 1s steps(2) infinite; }
.buy-btn__cdl { font-size: 11px; color: #d4c4a0; }
.buy-btn__cdv { font: 700 12.5px/1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #ffd27a; letter-spacing: .02em; }
.buy-btn__cd.is-urgent { background: rgba(127, 29, 29, .9); }
.buy-btn__cd.is-urgent .buy-btn__cdv { color: #fecaca; }
@keyframes buyCdTick { 50% { transform: rotate(12deg); } }
@media (max-width: 760px) { .buy-btn__txt { align-items: center; } .buy-btn__cdl { font-size: 10.5px; } }
@media (prefers-reduced-motion: reduce) { .buy-btn__cd svg { animation: none; } }
