/* ==========================================================================
   GTA 6 Kod Avı — kod kartı (giriş, sonuç, takip çağrısı, kazanan formu, kazandın)
   ========================================================================== */
.eb-kart {
    position: relative; padding: 22px 18px 20px; border-radius: var(--eb-r);
    background: linear-gradient(180deg, rgba(16, 26, 68, .92) 0%, rgba(8, 14, 38, .94) 100%);
    border: 1px solid rgba(120, 150, 255, .22);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 40px -18px rgba(47, 123, 255, .6);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
/* Nişangah köşeleri */
.eb-kose { position: absolute; width: 22px; height: 22px; border: 3px solid var(--eb-kirmizi); filter: drop-shadow(0 0 6px rgba(225, 29, 46, .8)); pointer-events: none; }
.eb-kose--1 { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.eb-kose--2 { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.eb-kose--3 { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.eb-kose--4 { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

.eb-ekran { animation: eb-gir .35s ease both; }
@keyframes eb-gir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eb-kart__ust { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--eb-cam); letter-spacing: .04em; }
.eb-kart__ust--basari { color: var(--eb-yesil); }
.eb-kart__ust--bekle { color: var(--eb-soluk); }
.eb-kart__baslik { margin: 6px 0 14px; font-family: var(--eb-baslik-font); font-size: 24px; line-height: 1.15; font-weight: 700; color: var(--eb-beyaz); }
.eb-kart__not { margin: -6px 0 14px; color: var(--eb-metin); font-size: 15px; }
.eb-nokta { width: 9px; height: 9px; border-radius: 50%; background: var(--eb-kirmizi-2); box-shadow: 0 0 0 0 rgba(255, 59, 74, .7); animation: eb-nabiz 1.6s ease-out infinite; flex: 0 0 auto; }
.eb-nokta--mavi { background: var(--eb-cam); animation: none; box-shadow: 0 0 10px rgba(34, 211, 238, .8); }
@keyframes eb-nabiz { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 74, .7); } 100% { box-shadow: 0 0 0 10px rgba(255, 59, 74, 0); } }

/* ---------- Kod girişi ---------- */
.eb-kod__alan { position: relative; }
.eb-kod__ikon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--eb-kirmizi-2); pointer-events: none; }
#ebKod {
    width: 100%; height: 66px; padding: 0 50px 0 46px; border-radius: 14px;
    font-family: var(--eb-mono-font); font-weight: 700; font-size: 28px; letter-spacing: .14em; text-align: center;
    color: var(--eb-beyaz); caret-color: var(--eb-kirmizi-2);
    background: rgba(3, 7, 22, .78); border: 2px solid rgba(34, 211, 238, .35);
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0), inset 0 2px 10px rgba(0, 0, 0, .5);
    transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
#ebKod::placeholder { color: rgba(143, 156, 200, .38); letter-spacing: .14em; }
#ebKod:focus { outline: none; border-color: var(--eb-cam); box-shadow: 0 0 0 4px rgba(34, 211, 238, .16), 0 0 24px -4px rgba(34, 211, 238, .55), inset 0 2px 10px rgba(0, 0, 0, .5); }
.eb-kod--titre #ebKod { animation: eb-salla .38s ease; border-color: var(--eb-kirmizi); }
@keyframes eb-salla { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
/* Bilgi ikonu + tooltip (masaüstü: üzerine gel / odak; telefon: dokun — js/enesbatur/kod-bilgi.js) */
.eb-kod__alan { margin-bottom: 14px; }
.eb-bilgi {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--eb-soluk); cursor: pointer;
    transition: color .15s, background .15s;
}
.eb-bilgi:hover, .eb-bilgi:focus-visible, .eb-bilgi[aria-expanded="true"] { color: var(--eb-cam); background: rgba(34, 211, 238, .12); outline: none; }
.eb-bilgi__balon {
    position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 5;
    width: max-content; max-width: min(300px, calc(100vw - 48px));
    padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; text-align: left;
    color: var(--eb-metin); background: #0b1636; border: 1px solid rgba(34, 211, 238, .4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
    opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
    pointer-events: none;
}
.eb-bilgi__balon::after { content: ''; position: absolute; right: 18px; top: 100%; border: 7px solid transparent; border-top-color: rgba(34, 211, 238, .4); }
.eb-bilgi__balon b { color: var(--eb-beyaz); font-weight: 600; }
.eb-bilgi:hover + .eb-bilgi__balon, .eb-bilgi:focus-visible + .eb-bilgi__balon, .eb-bilgi[aria-expanded="true"] + .eb-bilgi__balon {
    opacity: 1; visibility: visible; transform: none;
}
.eb-ts { display: flex; justify-content: center; }
.eb-ts:not(:empty) { margin: 0 0 12px; }
#ebKodBtn { --eb-btn-yuk: 54px; font-size: 18px; }

/* ---------- Sonuç kutusu ---------- */
.eb-sonuc-kutu:empty { display: none; }
.eb-sonuc-kutu { margin-top: 14px; }
.eb-sonuc { padding: 12px 14px; border-radius: 12px; font-size: 15px; border: 1px solid; animation: eb-gir .3s ease both; }
.eb-sonuc p { margin: 0; }
.eb-sonuc--hata { background: rgba(225, 29, 46, .12); border-color: rgba(255, 59, 74, .45); color: #ffd5d9; }
.eb-sonuc--uyari { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .4); color: #ffe9b3; }
.eb-sonuc--bilgi { background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .35); color: #cff7ff; }
.eb-sonuc--basari { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .45); color: #d2fbe0; }
.eb-sonuc__sira { display: flex; align-items: center; gap: 10px; }
.eb-sonuc__sira .eb-cubuk-sira { flex: 1; height: 4px; border-radius: 4px; background: rgba(34, 211, 238, .18); overflow: hidden; position: relative; }
.eb-sonuc__sira .eb-cubuk-sira::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--eb-cam); border-radius: 4px; animation: eb-kay 1.1s ease-in-out infinite; }
@keyframes eb-kay { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.eb-sonuc .eb-takip { margin-top: 12px; }

/* ---------- Takip çağrısı ---------- */
.eb-takip { display: grid; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 14px; background: rgba(16, 53, 149, .26); border: 1px solid rgba(120, 150, 255, .25); }
.eb-takip__metin { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--eb-metin); }
.eb-takip__metin svg { color: var(--eb-sari); flex: 0 0 auto; margin-top: 1px; }
.eb-takip .eb-btn--ig { width: 100%; }
.eb-takip--vurgu { background: linear-gradient(180deg, rgba(225, 29, 46, .16), rgba(225, 29, 46, .06)); border-color: rgba(255, 59, 74, .45); box-shadow: 0 0 30px -14px rgba(225, 29, 46, .8); }
.eb-takip--sonuc { padding: 10px 12px; background: rgba(5, 10, 28, .45); border-color: rgba(120, 150, 255, .2); grid-template-columns: 1fr; color: var(--eb-metin); }
.eb-takip--sonuc .eb-takip__metin { font-size: 13px; }
@media (min-width: 420px) {
    .eb-takip--sonuc { grid-template-columns: 1fr auto; align-items: center; }
    .eb-takip--sonuc .eb-btn--ig { width: auto; }
}

/* ---------- Kazanan formu ---------- */
.eb-sayac { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 14px; border-radius: 12px; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .3); font-size: 14px; color: var(--eb-metin); }
.eb-sayac svg { color: var(--eb-cam); flex: 0 0 auto; }
.eb-sayac b { margin-left: auto; font-family: var(--eb-mono-font); font-size: 22px; letter-spacing: .06em; color: var(--eb-beyaz); }
.eb-sayac--son { background: rgba(225, 29, 46, .14); border-color: rgba(255, 59, 74, .6); animation: eb-son 1s ease-in-out infinite; }
.eb-sayac--son svg, .eb-sayac--son b { color: var(--eb-kirmizi-2); }
@keyframes eb-son { 50% { box-shadow: 0 0 22px -6px rgba(225, 29, 46, .9); } }
.eb-sayac__not { margin: -6px 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 14px; background: rgba(225, 29, 46, .14); color: #ffd5d9; border: 1px solid rgba(255, 59, 74, .45); }

.eb-form { display: grid; gap: 12px; }
.eb-alan { display: grid; gap: 6px; }
.eb-alan > label { font-size: 13px; font-weight: 600; color: var(--eb-metin); }
.eb-alan input[type="text"], .eb-alan input[type="tel"], .eb-alan input[type="email"], .eb-alan textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; font: inherit; font-size: 16px;
    color: var(--eb-beyaz); background: rgba(3, 7, 22, .7); border: 1.5px solid rgba(120, 150, 255, .28);
    transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.eb-alan textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.eb-alan input::placeholder, .eb-alan textarea::placeholder { color: rgba(143, 156, 200, .5); }
.eb-alan input:focus, .eb-alan textarea:focus { outline: none; border-color: var(--eb-cam); box-shadow: 0 0 0 4px rgba(34, 211, 238, .14); }
.eb-alan__on { position: relative; }
.eb-alan__on span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--eb-soluk); font-weight: 700; pointer-events: none; }
.eb-alan__on input[type="text"] { padding-left: 32px; }
.eb-alan__hata { display: none; font-size: 13px; color: #ff9aa3; }
.eb-alan--hata .eb-alan__hata { display: block; }
.eb-alan--hata input, .eb-alan--hata textarea { border-color: var(--eb-kirmizi) !important; box-shadow: 0 0 0 4px rgba(225, 29, 46, .16) !important; }
.eb-onay { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--eb-metin); cursor: pointer; }
.eb-onay input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--eb-kirmizi); cursor: pointer; }
.eb-alan--hata .eb-onay span { color: #ffd5d9; }
.eb-form__not { margin: 2px 0 0; font-size: 13px; color: var(--eb-soluk); text-align: center; }
#ebKayitBtn { --eb-btn-yuk: 54px; font-size: 18px; margin-top: 4px; }

/* ---------- Kazandın ---------- */
.eb-kazandi { text-align: center; }
.eb-kazandi__kupa { width: 84px; height: 84px; margin: 4px auto 6px; display: grid; place-items: center; border-radius: 50%; color: var(--eb-sari); background: radial-gradient(circle, rgba(251, 191, 36, .25), rgba(251, 191, 36, 0) 70%); animation: eb-kupa 1.6s ease-in-out infinite; }
@keyframes eb-kupa { 50% { transform: scale(1.06); } }
.eb-kazandi__odul { margin: -6px 0 14px; font-size: 17px; color: var(--eb-beyaz); }
.eb-kazandi__odul small { display: block; font-size: 13px; color: var(--eb-soluk); margin-top: 2px; }
.eb-kazandi__kod { display: grid; gap: 8px; justify-items: center; padding: 16px; border-radius: 14px; background: rgba(3, 7, 22, .7); border: 2px dashed rgba(34, 211, 238, .55); }
.eb-kazandi__kod > span { font-size: 13px; color: var(--eb-soluk); }
.eb-kazandi__kod strong { font-size: 34px; letter-spacing: .12em; text-shadow: 0 0 18px rgba(34, 211, 238, .6); word-break: break-all; }
.eb-uyari-not { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .4); color: #ffe9b3; }
.eb-kazandi .eb-takip { text-align: left; }
.eb-kazandi__geri { margin-top: 14px; font-size: 14px; }

@media (min-width: 720px) {
    .eb-kart { padding: 28px 26px 24px; }
    .eb-kart__baslik { font-size: 28px; }
    #ebKod { font-size: 32px; height: 72px; }
}
