/* Bonuscuyum4 — Zula (Betzula) vitrin bileşenleri */

/* ---------- Sticky Betzula üst bar ---------- */
.b4-sticky-bar {
  position: sticky; top: 0; z-index: 1031; min-height: var(--b4-strip-h);
  background: linear-gradient(90deg, #120a24 0%, #2a0f3f 50%, #120a24 100%);
  background-size: 200% 100%; animation: b4BarShift 8s linear infinite;
  border-bottom: 1px solid rgba(255, 61, 129, .35); box-shadow: 0 2px 14px rgba(255, 61, 129, .22);
}
.b4-sticky-link {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap;
  min-height: var(--b4-strip-h); padding: 6px 12px; color: #fff !important; text-decoration: none;
  font-size: .86rem; font-weight: 700; line-height: 1.2;
}
.b4-sticky-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b4-sticky-text strong { font-weight: 900; letter-spacing: .2px; color: var(--b4-lime); }
.b4-sticky-cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px; padding: 4px 10px 4px 12px; border-radius: 999px;
  background: var(--b4-grad); color: #fff; font-weight: 800; font-size: .8rem; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(255, 61, 129, .45); transition: transform .18s;
}
.b4-sticky-link:hover .b4-sticky-cta { transform: translateX(2px); }
.b4-sticky-pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--b4-lime); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(182, 243, 106, .6); animation: b4Pulse 1.8s ease-out infinite;
}
@keyframes b4Pulse { 0% { box-shadow: 0 0 0 0 rgba(182, 243, 106, .65); } 100% { box-shadow: 0 0 0 10px rgba(182, 243, 106, 0); } }
@keyframes b4BarShift { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
@media (min-width: 576px) { .b4-sticky-link { font-size: .92rem; } }
.b4-live-dot { position: relative; display: inline-block; width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--b4-lime); box-shadow: 0 0 0 0 rgba(182, 243, 106, .7); animation: b4-ping 1.8s infinite; }
@keyframes b4-ping { 0% { box-shadow: 0 0 0 0 rgba(182, 243, 106, .7); } 70% { box-shadow: 0 0 0 9px rgba(182, 243, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(182, 243, 106, 0); } }
.b4-live-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .38rem .95rem; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #10200a; background: var(--b4-lime); box-shadow: var(--b4-glow-lime); }
.b4-live-badge .b4-live-dot { background: #10200a; animation: none; }

/* ---------- Sahne (hero, ortalı) ---------- */
.b4-stage { position: relative; overflow: hidden; padding: 2.4rem 0 2.4rem; text-align: center; }
.b4-stage-compact { padding: 1.8rem 0 1.8rem; border-bottom: 1px solid var(--b4-line); }
.b4-stage-bg { position: absolute; inset: 0; pointer-events: none; }
.b4-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b4-orb-a { width: 460px; height: 460px; left: -120px; top: -160px; background: #7c2cff; }
.b4-orb-b { width: 420px; height: 420px; right: -120px; bottom: -200px; background: #ff3d81; opacity: .38; }
.b4-stars { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.4px); background-size: 34px 34px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); opacity: .25; }
.b4-stage-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.05rem; max-width: 920px; margin: 0 auto; }
.b4-stage-h1 { margin: .2rem 0 0; font-size: clamp(1.9rem, 4.6vw, 3.25rem); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; }
.b4-stage-sub { margin: 0; max-width: 680px; font-size: 1.05rem; color: var(--b4-mute); }
.b4-stage-title { display: inline-flex; align-items: center; gap: .55rem; margin: 0; font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 900; color: #fff; }
.b4-stage-title img { border-radius: 9px; }
.b4-grad-text { background: var(--b4-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Banner: parıltılı çerçeve */
.b4-banner { position: relative; display: block; width: 100%; max-width: 620px; border-radius: 26px; padding: 3px; background: var(--b4-grad); box-shadow: 0 0 0 1px rgba(255, 61, 129, .3), 0 24px 70px -20px rgba(255, 61, 129, .75), 0 0 60px -10px rgba(255, 159, 28, .45); transition: transform .25s, box-shadow .25s; }
.b4-banner::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 28px; background: var(--b4-grad); filter: blur(18px); opacity: .55; animation: b4-breathe 3.2s ease-in-out infinite; }
@keyframes b4-breathe { 0%, 100% { opacity: .4; } 50% { opacity: .75; } }
.b4-banner:hover { transform: translateY(-3px) scale(1.005); }
.b4-banner-frame { display: block; overflow: hidden; border-radius: 23px; background: var(--b4-s1); }
.b4-banner-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 740; object-fit: cover; }
.b4-stage-compact .b4-banner { max-width: 480px; }
.b4-banner-tag { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 900; letter-spacing: .08em; color: #10200a; background: var(--b4-lime); box-shadow: var(--b4-glow-lime); }
.b4-banner-amount { position: absolute; right: 16px; bottom: 16px; padding: .45rem 1rem; border-radius: 16px; font-size: 1.25rem; font-weight: 900; color: #fff; background: rgba(18, 10, 36, .82); border: 1px solid rgba(255, 61, 129, .6); backdrop-filter: blur(6px); }

.b4-stage-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin: .2rem 0 0; padding: 0; list-style: none; }
.b4-stage-chips li { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 999px; font-size: .86rem; font-weight: 800; color: #ffd1e1; background: rgba(255, 61, 129, .12); border: 1px solid rgba(255, 61, 129, .38); }
.b4-stage-chips li.is-lime { color: #10200a; background: var(--b4-lime); border-color: var(--b4-lime); }
.b4-stage-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .3rem; }
.b4-stage-compact .b4-btn-xl { padding: .85rem 1.6rem; font-size: 1rem; }
.b4-stage-note { max-width: 640px; margin: 0; font-size: .86rem; color: var(--b4-dim); }
.b4-stage-tg { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 700; color: #7cc6ff; }
.b4-stage-tg:hover { color: #fff; }

/* ---------- Kampanya çip rayı (yatay kaydırma) ---------- */
.b4-rail-wrap { padding: .4rem 0 1rem; }
.b4-rail { display: flex; gap: .6rem; overflow-x: auto; padding: .35rem .1rem .6rem; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(255, 61, 129, .5) transparent; -webkit-overflow-scrolling: touch; }
.b4-rail::-webkit-scrollbar { height: 6px; }
.b4-rail::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(255, 61, 129, .45); }
.b4-rail-chip { flex: 0 0 auto; display: flex; flex-direction: column; min-width: 190px; max-width: 240px; padding: .7rem 1rem; border-radius: 18px; scroll-snap-align: start; background: var(--b4-s1); border: 1px solid var(--b4-line-2); color: var(--b4-text); transition: all .2s; }
.b4-rail-chip b { font-size: 1rem; font-weight: 900; color: #fff; }
.b4-rail-chip span { font-size: .76rem; color: var(--b4-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b4-rail-chip:hover { color: #fff; border-color: var(--b4-mag); box-shadow: var(--b4-glow); transform: translateY(-2px); }
.b4-rail-chip.is-hot { background: var(--b4-grad); border-color: transparent; }
.b4-rail-chip.is-hot span { color: rgba(255, 255, 255, .88); }

/* ---------- PİN karosu (2 sütunu kaplar) ---------- */
.b4-pin { grid-column: 1 / -1; position: relative; padding: 1.3rem; border-radius: 24px; background: linear-gradient(135deg, rgba(255, 61, 129, .2), rgba(38, 24, 74, .95) 45%, rgba(255, 159, 28, .12)); border: 1px solid rgba(255, 61, 129, .55); box-shadow: var(--b4-glow); }
.b4-pin-rank { position: absolute; top: -13px; left: 22px; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 900; letter-spacing: .1em; color: #10200a; background: var(--b4-lime); box-shadow: var(--b4-glow-lime); }
.b4-pin-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.4rem; align-items: center; }
.b4-pin-media { display: block; overflow: hidden; border-radius: 18px; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .9); }
.b4-pin-media img { display: block; width: 100%; aspect-ratio: 1200 / 740; object-fit: cover; transition: transform .35s; }
.b4-pin-media:hover img { transform: scale(1.03); }
.b4-pin-info { display: flex; flex-direction: column; gap: .75rem; }
.b4-pin-head { display: flex; align-items: center; gap: .8rem; }
.b4-pin-logo { width: 52px; height: 52px; padding: 5px; border-radius: 16px; object-fit: contain; background: var(--b4-s1); border: 1px solid rgba(255, 61, 129, .45); }
.b4-pin-name { margin: 0; font-size: 1.45rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.b4-ok { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 800; color: #10200a; background: var(--b4-lime); }
.b4-pin-alias { margin: .1rem 0 0; font-size: .82rem; color: var(--b4-mute); }
.b4-pin-amount { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; line-height: 1; background: var(--b4-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b4-pin-note { margin: 0; font-size: .9rem; color: #e6ddff; }
.b4-pin-cta { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Zula kampanya kartları ---------- */
.b4-zgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.b4-zgrid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b4-zcard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--b4-r); background: var(--b4-s1); border: 1px solid var(--b4-line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.b4-zcard:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--b4-glow); }
.b4-zcard-media { display: block; overflow: hidden; }
.b4-zcard-media img { display: block; width: 100%; aspect-ratio: 1200 / 740; object-fit: cover; transition: transform .35s; }
.b4-zcard:hover .b4-zcard-media img { transform: scale(1.04); }
.b4-zcard-body { display: flex; flex-direction: column; gap: .45rem; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.b4-zcard-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.b4-zcard-amount { font-size: 1.2rem; font-weight: 900; color: #fff; }
.b4-zcard-brand { display: inline-flex; align-items: center; gap: .3rem; flex-shrink: 0; padding: .18rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #ffd1e1; background: rgba(255, 61, 129, .12); }
.b4-zcard-brand img { border-radius: 4px; }
.b4-zcard-type { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .04em; color: var(--b4-org); }
.b4-zcard-note { margin: 0; font-size: .85rem; color: var(--b4-mute); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.b4-zcard-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .6rem; }
.b4-zcard-foot .b4-pill { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- CTA bandı ---------- */
.b4-band { display: flex; align-items: center; gap: 1.1rem; padding: 1.3rem 1.5rem; border-radius: 24px; background: linear-gradient(110deg, rgba(255, 61, 129, .25), rgba(38, 24, 74, .9) 50%, rgba(255, 159, 28, .2)); border: 1px solid rgba(255, 61, 129, .5); box-shadow: var(--b4-glow); }
.b4-band-logo { width: 60px; height: 60px; flex-shrink: 0; padding: 6px; border-radius: 18px; object-fit: contain; background: var(--b4-s1); }
.b4-band-text { flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.b4-band-text strong { font-size: 1.12rem; color: #fff; }
.b4-band-text span { font-size: .9rem; color: #e6ddff; }

/* ---------- Mobil sabit CTA çubuğu (alt menünün üstünde) ---------- */
.b4-mobcta {
  position: fixed; left: .6rem; right: .6rem; z-index: 1039;
  bottom: calc(var(--b4-dock-h) + env(safe-area-inset-bottom, 0px) + 8px);
  display: flex; align-items: center; gap: .6rem; padding: .45rem .45rem .45rem .6rem;
  border-radius: 999px; background: rgba(29, 18, 56, .97); border: 1px solid rgba(255, 61, 129, .55); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .8), 0 0 24px -6px rgba(255, 61, 129, .6);
  transform: translateY(130%); opacity: 0; transition: transform .3s, opacity .3s;
}
.b4-mobcta.is-on { transform: none; opacity: 1; }
.b4-mobcta img { border-radius: 50%; flex-shrink: 0; }
.b4-mobcta-text { flex: 1; min-width: 0; font-size: .84rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b4-mobcta-text b { color: var(--b4-lime); }

/* ---------- Telegram yüzen buton ---------- */
.b4-tgfloat { position: fixed; right: 18px; bottom: 22px; z-index: 1035; display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.05rem; border-radius: 999px; color: #fff; background: #2b8fd6; font-weight: 800; font-size: .9rem; box-shadow: 0 10px 26px -8px rgba(43, 143, 214, .85); }
.b4-tgfloat:hover { color: #fff; background: #3aa0e8; transform: translateY(-2px); }
.b4-tgfloat i { font-size: 1.25rem; }
@media (max-width: 991.98px) {
  .b4-tgfloat { right: 12px; bottom: calc(var(--b4-dock-h) + env(safe-area-inset-bottom, 0px) + 72px); padding: .65rem; }
  .b4-tgfloat-label { display: none; }
}

/* ---------- Popup ---------- */
.b4-pop { position: fixed; inset: 0; z-index: 1080; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(5, 2, 12, .78); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.b4-pop.is-open { opacity: 1; visibility: visible; }
.b4-pop-box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 2rem); overflow-y: auto; border-radius: 26px; padding: 3px; background: var(--b4-grad); box-shadow: 0 30px 80px -20px rgba(255, 61, 129, .8); transform: translateY(20px) scale(.97); transition: transform .3s; }
.b4-pop.is-open .b4-pop-box { transform: none; }
.b4-pop-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(18, 10, 36, .85); color: #fff; }
.b4-pop-badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: .7rem; }
.b4-pop-media { display: block; overflow: hidden; border-radius: 23px 23px 0 0; }
.b4-pop-media img { display: block; width: 100%; aspect-ratio: 1200 / 740; object-fit: cover; }
.b4-pop-body { padding: 1.1rem 1.3rem 1.3rem; border-radius: 0 0 23px 23px; background: var(--b4-s1); text-align: center; }
.b4-pop-kicker { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .35rem; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--b4-org); }
.b4-pop-kicker img { border-radius: 5px; }
.b4-pop-title { margin: 0 0 .35rem; font-size: 1.4rem; }
.b4-pop-desc { margin: 0 0 1rem; font-size: .88rem; color: var(--b4-mute); }
.b4-pop-tg { display: inline-flex; align-items: center; gap: .35rem; margin-top: .8rem; font-size: .85rem; font-weight: 700; color: #7cc6ff; }
body.b4-pop-open { overflow: hidden; }

/* ---------- Duyarlı ---------- */
@media (max-width: 991.98px) {
  .b4-zgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b4-pin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .b4-stage { padding: 2rem 0 1.8rem; }
  .b4-stage-compact { padding: 1.3rem 0; }
  .b4-stage-cta { flex-direction: column; width: 100%; }
  .b4-stage-cta .b4-btn { width: 100%; }
  .b4-banner { border-radius: 20px; }
  .b4-banner-frame { border-radius: 17px; }
  .b4-banner-tag { left: 10px; top: 10px; font-size: .7rem; }
  .b4-banner-amount { right: 10px; bottom: 10px; font-size: 1rem; }
  .b4-zgrid, .b4-zgrid-2 { grid-template-columns: 1fr; }
  .b4-pin { padding: 1.1rem 1rem 1rem; }
  .b4-pin-cta .b4-btn { flex: 1; }
  .b4-band { flex-direction: column; text-align: center; }
  .b4-band .b4-btn { width: 100%; }
  .b4-sticky-link { font-size: .8rem; gap: 8px; }
}
