/* --- MODAL FIX (TEMİZ) --- */

/* Modalın kendisi en üstte olsun */
.modal {
    z-index: 100050 !important; /* Bootstrap varsayılanından yüksek */
}

/* Arka plandaki karartma perdesi */
.modal-backdrop {
    z-index: 100040 !important; /* Modalın hemen altında */
}

/* Modalın ekranın ortasında durması ve görünmesi için */
.modal-dialog {
    z-index: 100060 !important;
    margin-top: 10vh; /* Yukarıdan biraz boşluk */
}

/* Eğer 'fade' class'ı varken görünmüyorsa opacity sorununu çözer */
.modal.fade.in {
    opacity: 1 !important;
    display: block !important;
}

.modal-backdrop {
    background-color: #1f2129c2!important;
}

/* --- TOASTIFY PREMIUM STYLE --- */
.toastify {
    border-radius: 5px !important; /* Yuvarlak köşeler */
    padding: 15px 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; /* Derin gölge */
    font-weight: 500 !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important; /* İkon ile yazı arası boşluk */
    max-width: 350px !important;
    z-index: 999999 !important; /* En üstte */
    opacity: 0.9;
}

/* Başarılı (Yeşil Çizgi) */
.toast-success {
    background: #242730!important;
    border-left: 4px solid #22c55e !important;
    color: #fff !important;
}

/* Hatalı (Kırmızı Çizgi) */
.toast-error {
    background: #242730!important;
    border-left: 4px solid #ef4444 !important;
    color: #fff !important;
}

/* =========================================
   JACKPOT BOX BACKGROUND (DÜZELTİLMİŞ)
   ========================================= */

/* 1. Kapsayıcı (Jackpot Kutusu) */
.jackpot-hero-section {
    position: relative !important;
    overflow: hidden !important; /* Dışarı taşanları kes */
    z-index: 1;
    /* Arka plan rengin yoksa ekle ki net görünsün */
  background: #1a1d24;
}

/* 2. Çark ve Yazılar (Öne Çıkar) */
.jp-wheel-container {
    position: relative;
    z-index: 10 !important; 
}

/* 3. Animasyon Katmanı */
.bg-knife-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* En arkada */
}

/* 4. Yüzen Bıçak */
.ghost-knife {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15; /* Görünürlük */
    z-index: 1;
    will-change: transform, opacity;
}

/* 5. Animasyon (YENİLENMİŞ) */
/* Bıçaklar kutunun altından (-10%) başlayıp üstüne (-120%) gidecek */
@keyframes ghostFloatBox {
    0% {
        top: 110%; /* Kutunun hemen altı */
        transform: rotate(0deg) scale(0.7);
        opacity: 0;
    }
    10% {
        opacity: 0.2; /* Hemen görünür ol */
    }
    90% {
        opacity: 0.2;
    }
    100% {
        top: -20%; /* Kutunun tepesinden çık */
        transform: rotate(360deg) scale(1);
        opacity: 0;
    }
}


/* =========================================
   🔥 NEW GEN LAST WINNER CARD
   ========================================= */

.last-winner-card {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 50; /* En üstte */
    
    /* Boyut ve Düzen */
    min-width: 260px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    gap: 15px;
    
    /* CAM GÖRÜNÜMÜ (GLASSMORPHISM) */
    background: rgba(20, 23, 30, 0.75); /* Yarı saydam siyah */
    backdrop-filter: blur(12px); /* Arka planı flulaştır */
    -webkit-backdrop-filter: blur(12px);
    
    /* Kenarlık ve Köşeler */
    border: 1px solid rgba(228, 174, 57, 0.2); /* Silik Altın Çerçeve */
    border-radius: 12px;
    
    /* Gölge */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Animasyon */
    animation: slideInTop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden; /* Parlama dışarı taşmasın */
}

/* Kupa İkonu */
.lw-trophy {
    font-size: 18px;
    color: #e4ae39;
    filter: drop-shadow(0 0 5px rgba(228, 174, 57, 0.6));
    animation: trophyBounce 2s infinite ease-in-out;
}

/* Avatar ve İsim Grubu */
.lw-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1; /* Ortayı kapla */
}

.avatar-container {
    position: relative;
    width: 38px;
    height: 38px;
}

.lw-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #e4ae39;
    object-fit: cover;
}

.text-container {
    display: flex;
    flex-direction: column;
}

.text-container .label {
    font-size: 9px;
    color: #7d8b96;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.text-container .username {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Para ve Şans Grubu */
.lw-money-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lw-money-info .amount {
    font-size: 14px;
    font-weight: 800;
    color: #22c55e; /* Yeşil */
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.lw-money-info .chance {
    font-size: 10px;
    color: #e4ae39; /* Altın */
    font-weight: 600;
}

/* Arkadan geçen parlama efekti */
.glow-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
    pointer-events: none;
}

/* --- ANİMASYONLAR --- */
@keyframes slideInTop {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes trophyBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* =========================================
   MOBILE RESPONSIVE LAST WINNER CARD
   ========================================= */

@media (max-width: 768px) {
    .last-winner-card {
        /* Pozisyonu Ortala */
        top: 15px !important;       /* En üstten biraz boşluk */
        left: 0 !important;         
        right: 0 !important;
        margin: 0 auto !important;  /* Yatayda tam ortala */
        
        /* Genişlik Ayarı */
        width: 90% !important;      /* Ekranın %90'ını kaplasın */
        max-width: 350px;           /* Çok da devasa olmasın */
        min-width: auto !important; /* Masaüstü genişliğini ez */
        
        /* Mobilde daha kompakt görünüm */
        padding: 8px 12px !important;
        background: rgba(20, 23, 30, 0.9) !important; /* Mobilde biraz daha koyu olsun */
    }

    /* Mobilde Avatarı Biraz Küçült */
    .avatar-container {
        width: 32px !important;
        height: 32px !important;
    }

    /* Yazı Boyutlarını Ayarla */
    .text-container .label { font-size: 8px !important; }
    .text-container .username { font-size: 12px !important; max-width: 80px !important; }
    .lw-money-info .amount { font-size: 13px !important; }
    
    /* Kupa ikonunu mobilde biraz küçült veya gizle (Opsiyonel) */
    .lw-trophy { font-size: 14px !important; }
}


/* =========================================
   CSGOBUBBLE JACKPOT - MAIN STYLES
   ========================================= */

/* Hero Alanı: Çarkı ortalar */
.jackpot-hero-section {
    width: 100%;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 2px solid #282b34;
}

/* Çark Kapsayıcı */
.jp-wheel-container {
    position: relative;
    width: 420px;
    height: 420px;
    padding: 10px; /* Dış boşluk */
    border-radius: 50%;
    background: #282b34; /* Çarkın dış çerçevesi */
    box-shadow: 0 0 50px rgba(0,0,0,0.3);
    border: 5px solid #2f323b;
}

/* Dönen Çark */
.jp-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#1f2129 0% 100%);
    transition: transform 8s cubic-bezier(0.1, 0, 0.1, 1);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

/* Ok İşareti */
.jp-marker {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #fff;
    z-index: 20;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* --- JACKPOT CORE (GÖBEK) - ELEGANT STYLE --- */
.jp-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 280px; height: 280px;
    border-radius: 50%;
    
    /* Elegant Stil Birleştirildi */
    background: radial-gradient(circle, #1f2129 0%, #0b0d12 100%);
    border: 4px solid #1a1d24; 
    box-shadow: 0 0 50px rgba(0,0,0,0.6), inset 0 0 20px rgba(0,0,0,0.8);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Core İçindeki Yazılar */
.core-label { 
    font-size: 10px; 
    font-weight: 700; 
    color: #555; 
    letter-spacing: 2px; 
    text-transform: uppercase;
    margin-bottom: 5px;
}

.core-val { 
    font-size: 38px; 
    font-weight: bold; 
    color: #fff; 
    line-height: 1; 
    margin: 5px 0; 
    /* Gradient class'ı (text-gradient-glow) HTML'de buna verilecek */
}

.core-timer { 
    font-size: 12px; 
    font-weight: 700; 
    color: #fff; 
    margin-top: 8px;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
    animation: trophyBounce 2s infinite ease-in-out;
}

.core-users { 
    font-size: 11px; 
    font-weight: 600; 
    color: #666; 
    margin-top: 10px;
    background: rgba(255,255,255,0.05); 
    padding: 4px 10px; 
    border-radius: 20px;
}

/* Yazı Parlama Efekti (Kırmızı) */
.text-gradient-glow {
    background-image: linear-gradient(to bottom, #fee2e2 35%, #ef4444 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.3));
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

/* --- WHEEL AVATARS (Hexagon) --- */
.wheel-avatar-img {
    position: absolute;
    width: 32px;
    height: 32px;
    top: 50%;
    left: 50%;
    z-index: 5;
    object-fit: cover;
    background-color: #1a1d24;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.8));
}

/* Responsive Düzeltme */
@media (max-width: 768px) {
    .jp-wheel-container { width: 300px; height: 300px; }
    .jp-core { width: 200px; height: 200px; }
    .core-val { font-size: 32px; }
}

/* =========================================
   BAHİS KARTLARI (TÜM VERSİYONLAR)
   ========================================= */

/* 1. Versiyon: Eski Liste Tipi (Yedek) */
.jp-bet-card {
    background: #282b34;
    border: 1px solid #3e4148;
    border-radius: 3px;
    margin-bottom: 15px;
    padding: 10px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.jp-bet-card .stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.jp-bet-card .avatar { width: 50px; height: 50px; border-radius: 3px; margin-right: 15px; border: 1px solid #3e4148; }
.jp-bet-card .info { flex: 1; }
.jp-bet-card .info .username { font-weight: bold; color: #f0f0f0; font-size: 14px; display: block; }
.jp-bet-card .info .stats { font-size: 11px; color: #9c9c9c; }
.jp-bet-card .value { background: #1f2129; padding: 8px 15px; border-radius: 3px; color: #fff; font-weight: bold; border: 1px solid #3e4148; }
.jp-bet-items { display: flex; gap: 2px; margin-right: 15px; }
.jp-bet-items img { width: 40px; height: 30px; object-fit: contain; }

/* 2. Versiyon: PRO Izgara Tipi (Yedek/Alternatif) */
.jp-bets-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); gap: 15px;
}
@media(min-width: 992px) { .jp-bets-grid { grid-template-columns: repeat(2, 1fr); } }

.pro-bet-card {
    background: #15181e;
    border: 1px solid #23272e;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: 0.2s;
}
.pro-bet-card:hover { border-color: #333; background: #181b21; }
.pro-bet-card .accent-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; box-shadow: 2px 0 10px; }
.card-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.02); }
.user-wrap { display: flex; align-items: center; gap: 12px; }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid; padding: 2px; }
.user-info h6 { margin: 0; font-size: 14px; font-weight: 700; color: #eee; }
.user-info span { font-size: 10px; font-weight: 600; opacity: 0.6; }
.bet-val { font-size: 18px; text-align: right; }
.card-items { padding: 10px 15px; background: rgba(0,0,0,0.2); display: flex; gap: 8px; overflow-x: auto; }
.card-items::-webkit-scrollbar { height: 4px; }
.card-items::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
.mini-item { min-width: 70px; background: #1a1d24; border: 1px solid #2a2e38; border-radius: 4px; padding: 4px; text-align: center; transition: 0.2s; }
.mini-item:hover { border-color: #444; transform: translateY(-2px); }
.mini-item img { width: 40px; height: 30px; object-fit: contain; margin-bottom: 2px; }
.mini-item .i-name { display: block; font-size: 9px; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60px; }
.mini-item .i-price { display: block; font-size: 9px; color: #fff; font-weight: 700; }

/* 3. Versiyon: PREMIUM BET ROWS (Aktif Olan - Yatay Şeritler) */
.bet-card-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(30, 34, 42, 0.8) 0%, rgba(20, 23, 30, 0.9) 100%);
    border-radius: 5px;
    padding: 10px 20px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.bet-card-row:hover {
    transform: translateX(5px);
    background: linear-gradient(90deg, rgba(40, 45, 55, 0.9) 0%, rgba(25, 28, 35, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.15);
}

.bet-accent {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    box-shadow: 2px 0 15px currentColor;
}

.user-section {
    display: flex; align-items: center; gap: 15px; min-width: 180px; z-index: 2;
}
.user-section .avatar {
    width: 45px; height: 45px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.1); box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.user-meta { display: flex; flex-direction: column; }
.user-meta .username { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.user-meta .stats { font-size: 11px; font-weight: 600; opacity: 0.9; margin-top: 2px; }

.items-section {
    flex-grow: 1; display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 0 20px; overflow-x: auto; mask-image: linear-gradient(to right, black 90%, transparent 100%); z-index: 2;
}

.mini-skin-img {
    width: 55px; height: 45px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,0.5)); transition: transform 0.2s;
}
.mini-skin-img:hover { transform: scale(1.2) rotate(-5deg); z-index: 10; }

.more-items-badge {
    font-size: 11px; color: #888; background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; white-space: nowrap;
}

.price-section { z-index: 2; }
.price-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #22c55e;
    font-size: 14px; font-weight: 800;
    padding: 6px 16px; border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.bet-bg-glow {
    position: absolute; top: 50%; left: 0; transform: translateY(-50%); width: 40%; height: 100%;
    background: radial-gradient(circle at left, currentColor 0%, transparent 70%);
    opacity: 0.1; z-index: 0; pointer-events: none;
}

/* =========================================
   ENVANTER DÜZENİ (KIRILMAZ YAPI)
   ========================================= */

#steam-inventory {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    list-style: none;
    justify-content: flex-start; 
}

/* KART KUTUSU */
.inventory-item {
    position: relative;
    border: 0px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    padding: 10px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

@media (max-width: 400px) {
    #steam-inventory { justify-content: center; }
    .inventory-item { flex: 0 0 45%; width: 45% !important; max-width: 45%; }
}

.inventory-item:hover {
    transform: translateY(-5px);
    background: radial-gradient(circle at center, rgba(60, 65, 75, 0.8) 0%, rgba(25, 28, 35, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.inventory-item.active-item,
.inventory-item.selected {
    border: 1px solid #22c55e !important;
    box-shadow: inset 0 0 25px rgba(34, 197, 94, 0.2) !important;
}

.inventory-item.active-item::after {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    top: 6px; right: 6px;
    color: #22c55e; font-size: 14px;
    background: rgba(0,0,0,0.5);
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 20;
}

/* SİLAH ARKASINDAKİ IŞIK */
.skin-image::before {
    content: '';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    filter: blur(8px);
    z-index: -1;
    transition: opacity 0.3s;
}

/* RESİM ALANI */
.skin-image {
    position: relative; width: 100%; height: 90px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 5px; z-index: 2;
}
.skin-image img {
    max-width: 95%; max-height: 85px; object-fit: contain;
    filter: drop-shadow(0 5px 8px rgba(0,0,0,0.5)); transition: transform 0.3s;
}
.inventory-item:hover .skin-image img { transform: scale(1.1); }

/* YAZI ALANI */
.skin-info { width: 100%; text-align: center; z-index: 2; flex-grow: 1; }
.skin-info .name {
    font-size: 10px; font-weight: 600; color: #ddd; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
}
.skin-info .condition { font-size: 9px; color: #777; margin-top: 2px; }

/* FİYAT */
.price {
    margin-top: auto;
    font-size: 11px; font-weight: 700; color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 10px; 
    border-radius: 5px;
    z-index: 3;
}
.inventory-item:hover .price { background: #22c55e; border-color: #22c55e; }

/* Alt Çizgi Temeli */
.inventory-item::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: #555; opacity: 0.8;
}

/* =========================================
   RARITY RENKLERİ (VERİTABANI ODAKLI)
   ========================================= */

.inventory-item.rarity-gold::before { background: #e4ae39; box-shadow: 0 -2px 6px rgba(228, 174, 57, 0.5); }
.inventory-item.rarity-red::before { background: #eb4b4b; box-shadow: 0 -2px 6px rgba(235, 75, 75, 0.5); }
.inventory-item.rarity-pink::before { background: #d32ce6; box-shadow: 0 -2px 6px rgba(211, 44, 230, 0.5); }
.inventory-item.rarity-purple::before { background: #8847ff; box-shadow: 0 -2px 6px rgba(136, 71, 255, 0.5); }
.inventory-item.rarity-blue::before { background: #4b69ff; box-shadow: 0 -2px 6px rgba(75, 105, 255, 0.5); }
.inventory-item.rarity-common::before { background: #b0c3d9; box-shadow: none; }


/* =========================================
   🏆 PROFESSIONAL WINNER MODAL
   ========================================= */

/* Modal Body Düzeni */
.winner-burst-bg {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgb(37 40 49) 0%, rgba(20, 23, 30, 0.95) 70%);
    animation: rotateBg 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.winner-stage {
    position: relative;
    padding: 40px 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- AVATAR ALANI --- */
.avatar-wrapper-pro {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 1. Dönen Renkli Halka */
.spin-ring {
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #2379dc; /* Mavi */
    border-right-color: #e4ae39; /* Altın */
    border-bottom-color: #d32ce6; /* Pembe */
    animation: spinRing 2s linear infinite;
    box-shadow: 0 0 15px rgba(35, 121, 220, 0.5);
    z-index: 1;
}

/* 2. Arkadaki Nabız Işığı */
.glow-pulse {
    position: absolute;
    width: 90%; height: 90%;
    border-radius: 50%;
    background: rgba(35, 121, 220, 0.5);
    filter: blur(20px);
    animation: pulseGlow 2s infinite ease-in-out;
    z-index: 0;
}

/* 3. Ana Resim */
.winner-img-pro {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1f2129;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* 4. Kupa Rozeti */
.winner-badge {
    position: absolute;
    bottom: -10px;
    background: linear-gradient(45deg, #e4ae39, #fcd34d);
    color: #1a1d24;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    border: 3px solid #1f2129;
    z-index: 5;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s both;
}

/* --- YAZI ALANI --- */
.winner-details {
    text-align: center;
    position: relative;
    z-index: 2;
}

.winner-name-pro {
    font-size: 28px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Yanar Döner Yazı (Gradient Text) */
    background: linear-gradient(to right, #fff, #2379dc, #fff);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineText 3s linear infinite;
    
    filter: drop-shadow(0 0 5px rgba(35, 121, 220, 0.5));
}

.winner-sub {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    letter-spacing: 2px;
    margin-top: 5px;
    margin-bottom: 20px;
}

/* --- PARA KUTUSU --- */
.winner-amount-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    
    background: rgba(35, 121, 220, 0.1);
    border: 1px solid rgba(35, 121, 220, 0.3);
    padding: 10px 30px;
    border-radius: 50px; /* Hap şeklinde */
    
    color: #22c55e; /* Para Yeşili */
    font-size: 32px;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    
    transform: scale(1);
    transition: transform 0.2s;
}

.winner-amount-box .currency {
    font-size: 24px;
    color: #fff;
    opacity: 0.5;
    font-weight: 400;
}

/* --- ANIMASYONLAR (KEYFRAMES) --- */

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

@keyframes shineText {
    to { background-position: 200% center; }
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* =========================================
   PROVABLY FAIR MODAL (ORIGINAL THEME)
   ========================================= */


/* Bilgi Kutusu */
.pf-info-box {
    background: #1f2129; /* Koyu zemin */
    border: 1px solid #3e4148;
    border-left: 3px solid #2379dc; /* Mavi vurgu */
    padding: 12px 15px;
    font-size: 13px; color: #ccc;
    margin-bottom: 25px;
    border-radius: 3px;
}

/* Input Grupları */
.pf-group { margin-bottom: 20px; }
.pf-group label {
    font-size: 11px; font-weight: 700; color: #9c9c9c; 
    text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 6px;
}

.pf-input-wrapper {
    position: relative;
    display: flex; align-items: center;
}

.input-icon {
    position: absolute; left: 12px; color: #666; z-index: 2;
}

/* Input Alanı (Site Standartlarına Uygun) */
.pf-input {
    width: 100%;
    background: #1f2129; /* Input içi koyu */
    border: 1px solid #3e4148;
    color: #fff; /* Beyaz yazı */
    font-family: 'Courier New', Courier, monospace; /* Kod fontu kalabilir */
    font-size: 13px;
    padding: 12px 12px 12px 35px; /* İkon boşluğu */
    border-radius: 3px;
    transition: 0.2s;
}

.pf-input:focus {
    border-color: #2379dc; /* Focus olunca site mavisi */
    box-shadow: 0 0 10px rgba(35, 121, 220, 0.1);
    outline: none;
    background: #181a20;
}

/* Secret Field (Farklı Renk - Altın/Turuncu) */
.secret-field { color: #e4ae39; font-weight: 600; }

/* Kopyala Butonu */
.pf-copy-btn {
    position: absolute; right: 5px; top: 5px; bottom: 5px;
    background: #282b34; border: 1px solid #3e4148;
    color: #9c9c9c; width: 34px; border-radius: 3px;
    cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.pf-copy-btn:hover { background: #2379dc; color: #fff; border-color: #2379dc; }

.pf-hint { font-size: 11px; color: #666; margin-top: 4px; display: block; }

/* Sonuç Hesaplama Kutusu */
.pf-result-box {
    margin-top: 15px;
    background: #1f2129;
    border: 1px dashed #3e4148;
    padding: 15px;
    border-radius: 3px;
    text-align: center;
}

.pf-label { font-size: 10px; font-weight: 700; color: #666; margin-bottom: 5px; text-transform: uppercase; }

.pf-formula {
    font-family: 'Courier New', monospace;
    font-size: 12px; color: #9c9c9c;
    margin-bottom: 10px;
}
.pf-formula .var { color: #fff; font-weight: bold; }

.pf-final-ticket {
    font-size: 16px; font-weight: bold; color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
    padding: 8px 20px; border-radius: 3px;
    display: inline-block; border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Doğrulama Linki */
.pf-verify-link {
    font-size: 12px; color: #9c9c9c; text-decoration: none; transition: 0.2s; display: inline-block; margin-top: 10px;
}
.pf-verify-link:hover { color: #2379dc; text-decoration: underline; }

/* =========================================
   PROFESSIONAL HEADER MARKET BUTTON
   ========================================= */

/* Liste Öğesi Hizalaması */
.header-market-li {
    display: inline-block;
    vertical-align: middle;
    margin-left: 15px;
}

/* 1. BUTONUN KENDİSİ (Kasa) */
.pro-market-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #2a2d36 0%, #242730f0 100%);
    border: 1px solid rgba(228, 174, 57, 0.2);
    padding: 10px;
    border-radius: 5px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    width: 100% !important;
}

/* 2. IŞIK YANSIMASI (SHEEN EFFECT) */
/* Butonun üzerinden kayıp giden ışık */
.btn-shine {
    position: absolute;
    top: 0; left: -100%; /* Başlangıçta solda gizli */
    width: 50%; height: 100%;
    
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); /* Işığı eğik yap */
    pointer-events: none;
    z-index: 1;
    
    /* Otomatik animasyon: 3 saniyede bir parlar */
    animation: sheen 3s infinite;
}

/* 3. İKON (KARAMBIT) */
.pro-market-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

/* 4. YAZI GRUBU */
.pro-market-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    z-index: 2;
}

.pro-market-text span {
    font-size: 9px;
    font-weight: 600;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

/* "MARKET" Kelimesi (Vurgulu) */
.pro-market-text .highlight {
    font-size: 11px;
    font-weight: 800;
    color: #e4ae39; /* Altın Rengi */
    text-shadow: 0 0 10px rgba(228, 174, 57, 0.2);
}

/* --- HOVER (ÜZERİNE GELİNCE) EFEKTLERİ --- */

.pro-market-btn:hover {
    background: linear-gradient(180deg, #333640 0%, #22252c 100%);
    border-color: #e4ae39; /* Tüm çerçeve altın olsun */
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3), 0 0 10px rgba(228, 174, 57, 0.1);
}

.pro-market-btn:hover .pro-market-icon {
    transform: scale(1.15) rotate(-10deg); /* İkon hafif büyüsün ve dönsün */
}

.pro-market-btn:hover .pro-market-text span {
    color: #ccc; /* Üst yazı parlasın */
}

.pro-market-btn:hover .pro-market-text .highlight {
    color: #fff; /* Alt yazı beyazlaşsın (Altın arkaplanla kontrast için) */
    text-shadow: 0 0 15px rgba(228, 174, 57, 0.8);
}

/* Işık Animasyonu */
@keyframes sheen {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 200%; opacity: 0; } /* Sağdan çıkıp gitsin */
}