/* ======================================================
   🎡 CLASSIC WHEEL (KIRMIZI 2X / SİYAH 2X / YEŞİL 20X)
   ====================================================== */

.wheel-modal {
    background: linear-gradient(180deg, #0e121d 0%, #090c15 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.95), 0 0 50px rgba(245, 158, 11, 0.15);
    transform: scale(0.96) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .wheel-modal {
    transform: scale(1) translateY(0);
}

.wheel-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    min-height: 520px;
}

@media (max-width: 860px) {
    .wheel-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

/* Sol Çark Alanı */
.wheel-canvas-container {
    background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05) 0%, #07090f 80%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-right: 1px solid #1c2235;
    overflow: hidden;
}

/* Çarkın Kendisi & İğnesi */
.wheel-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wheelCanvas {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(0,0,0,0.8);
    transition: transform 5s cubic-bezier(0.15, 0.9, 0.2, 1);
}

.wheel-pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 24px solid #f8fafc;
    z-index: 20;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8)) drop-shadow(0 0 8px rgba(255,255,255,0.6));
}

.wheel-center-hub {
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #0f121d;
    border: 3px solid #20273d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    z-index: 10;
}

/* Çark Ortası Canlı Sonuç Rozeti (Toast Alert Yerine Modern Bildirim) */
.wheel-result-overlay {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 18, 29, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 30;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wheel-result-overlay.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.wheel-result-overlay.win {
    border-color: rgba(52, 211, 153, 0.5);
    color: #34d399;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.wheel-result-overlay.lose {
    border-color: rgba(244, 63, 94, 0.4);
    color: #fb7185;
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.25);
}

/* Üst Geçmiş Ticker */
.wheel-history-bar {
    position: absolute;
    top: 16px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    z-index: 10;
}

.wheel-history-pill {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.wheel-history-pill.red {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.35);
}

.wheel-history-pill.black {
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.wheel-history-pill.green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

/* Sağ Panel: 3 Renk Bahis Masası */
.wheel-controls {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #0d101a;
}

.wheel-bet-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.wheel-bet-slot {
    background: #131726;
    border: 1px solid #1f263c;
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.wheel-bet-slot:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.wheel-bet-slot.selected {
    box-shadow: 0 0 20px currentColor;
}

.wheel-bet-slot.red-slot {
    border-left: 4px solid #f43f5e;
}
.wheel-bet-slot.black-slot {
    border-left: 4px solid #64748b;
}
.wheel-bet-slot.green-slot {
    border-left: 4px solid #10b981;
}

.wheel-slot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.wheel-slot-name {
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wheel-slot-mult {
    font-size: 12px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 6px;
}

.red-slot .wheel-slot-name { color: #fb7185; }
.red-slot .wheel-slot-mult { background: rgba(244, 63, 94, 0.2); color: #fb7185; }

.black-slot .wheel-slot-name { color: #cbd5e1; }
.black-slot .wheel-slot-mult { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }

.green-slot .wheel-slot-name { color: #34d399; }
.green-slot .wheel-slot-mult { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.wheel-slot-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px 10px;
}

.wheel-slot-input-wrap input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    width: 100%;
}

/* Çevir Butonu */
.btn-wheel-spin {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 10px 30px -8px rgba(245, 158, 11, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-wheel-spin:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px -8px rgba(245, 158, 11, 0.7);
}

.btn-wheel-spin:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

@media (max-width: 860px) {
    .wheel-modal {
        max-width: 100%;
        height: 94vh;
        max-height: 94vh;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        display: flex;
        flex-direction: column;
    }

    .wheel-body {
        grid-template-columns: 1fr;
        min-height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .wheel-canvas-container {
        height: auto;
        min-height: 250px;
        padding: 12px 10px;
        border-right: none;
        border-bottom: 1px solid #1c2235;
        flex-shrink: 0;
    }

    .wheel-wrapper, #wheelCanvas {
        width: 220px;
        height: 220px;
    }

    .wheel-controls {
        padding: 16px 14px 24px;
        flex-grow: 1;
    }

    .btn-wheel-spin {
        padding: 14px;
        font-size: 14px;
    }
}
