/* Spor Bahisleri Sayfası */
.sp-wrap {
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* Sol Panel */
.sp-left {
    background: #1a1f3a;
    border-radius: 10px;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sp-left-head {
    background: linear-gradient(135deg, #ff6b00, #ffa500);
    color: #fff;
    padding: 15px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px 10px 0 0;
}

.sp-search {
    padding: 15px;
    position: relative;
}

.sp-search i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.sp-search input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    background: #0a0e27;
    border: 1px solid #2a2f4a;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
}

.sp-search input:focus {
    outline: none;
    border-color: #ffa500;
}

.sp-time-filters {
    display: flex;
    gap: 5px;
    padding: 0 15px 15px;
}

.sp-tf {
    flex: 1;
    padding: 8px;
    background: #0a0e27;
    border: 1px solid #2a2f4a;
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.sp-tf:hover {
    border-color: #ffa500;
}

.sp-tf.active {
    background: linear-gradient(135deg, #ff6b00, #ffa500);
    border-color: #ffa500;
}

.sp-sport-list {
    padding: 0 15px 15px;
}

.sp-sport-item {
    margin-bottom: 5px;
}

.sp-sport-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #0a0e27;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.sp-sport-header:hover {
    background: #2a2f4a;
}

.sp-sport-header.active {
    background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(255,165,0,0.2));
    border-left: 3px solid #ffa500;
}

.sp-sport-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.sp-badge {
    background: #ffa500;
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

/* Orta Panel */
.sp-center {
    background: #1a1f3a;
    border-radius: 10px;
    padding: 20px;
    min-height: 600px;
}

.sp-center-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2a2f4a;
}

.sp-center-head h2 {
    color: #ffa500;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.sp-view-toggle {
    display: flex;
    gap: 5px;
}

.sp-view-btn {
    width: 35px;
    height: 35px;
    background: #0a0e27;
    border: 1px solid #2a2f4a;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-view-btn:hover {
    border-color: #ffa500;
}

.sp-view-btn.active {
    background: #ffa500;
    color: #000;
    border-color: #ffa500;
}

.sp-loading {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 50px;
    color: #888;
    font-size: 16px;
    gap: 10px;
}

#sp-matches-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#sp-matches-container.sp-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

/* Maç Kartı */
.sp-match-card {
    background: #0a0e27;
    border: 1px solid #2a2f4a;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
}

.sp-match-card:hover {
    border-color: #ffa500;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,165,0,0.2);
}

.sp-match-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2f4a;
}

.sp-match-league {
    color: #888;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sp-match-time {
    color: #ffa500;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sp-match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sp-team {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    flex: 1;
}

.sp-team-away {
    text-align: right;
}

.sp-vs {
    color: #888;
    font-size: 12px;
    padding: 0 10px;
}

.sp-match-odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.sp-odd-btn {
    background: #2a2f4a;
    border: 1px solid #3a3f5a;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.sp-odd-btn:hover {
    background: #3a3f5a;
    border-color: #ffa500;
}

.sp-odd-btn.selected {
    background: linear-gradient(135deg, #ff6b00, #ffa500);
    border-color: #ffa500;
}

.sp-odd-label {
    color: #888;
    font-size: 11px;
    font-weight: 600;
}

.sp-odd-btn.selected .sp-odd-label {
    color: #fff;
}

.sp-odd-val {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

/* Sağ Panel - Kupon */
.sp-right {
    background: #1a1f3a;
    border-radius: 10px;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sp-betslip {
    border-radius: 10px;
    overflow: hidden;
}

.sp-betslip-head {
    background: linear-gradient(135deg, #ff6b00, #ffa500);
    color: #fff;
    padding: 15px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-bet-count {
    background: #fff;
    color: #ff6b00;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.sp-empty-slip {
    padding: 40px 20px;
    text-align: center;
    color: #888;
}

.sp-empty-slip i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.sp-empty-slip p {
    margin: 10px 0 5px;
    font-size: 16px;
}

.sp-empty-slip small {
    font-size: 13px;
}

.sp-bet-item {
    padding: 15px;
    border-bottom: 1px solid #2a2f4a;
    position: relative;
}

.sp-bet-match {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    padding-right: 30px;
}

.sp-bet-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sp-bet-type {
    background: #ffa500;
    color: #000;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
}

.sp-bet-odds {
    color: #ffa500;
    font-weight: 700;
}

.sp-bet-stake {
    width: 100%;
    padding: 8px;
    background: #0a0e27;
    border: 1px solid #2a2f4a;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
}

.sp-bet-stake:focus {
    outline: none;
    border-color: #ffa500;
}

.sp-bet-win {
    margin-top: 8px;
    color: #00e676;
    font-size: 13px;
}

.sp-bet-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4444;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.sp-bet-remove:hover {
    background: #ff0000;
    transform: scale(1.1);
}

.sp-bet-total {
    padding: 15px;
    background: #0a0e27;
}

.sp-bet-total > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #fff;
}

.sp-win-text {
    color: #00e676;
}

.sp-place-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00c853, #00e676);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sp-place-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,200,83,0.4);
}

.sp-place-btn.disabled {
    background: #2a2f4a;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Mobil */
.sp-mob-slip-btn {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b00, #ffa500);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,107,0,0.4);
    z-index: 999;
    align-items: center;
    gap: 8px;
}

.sp-mob-slip-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
}

.sp-mob-slip-drawer {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #1a1f3a;
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    transition: bottom 0.3s;
    max-height: 80vh;
    overflow-y: auto;
}

.sp-mob-slip-drawer.open {
    bottom: 0;
}

.sp-drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1100px) {
    .sp-wrap {
        grid-template-columns: 220px 1fr 260px;
    }
}

@media (max-width: 900px) {
    .sp-wrap {
        grid-template-columns: 200px 1fr;
    }
    
    .sp-right {
        display: none;
    }
    
    .sp-mob-slip-btn {
        display: flex;
    }
}

@media (max-width: 640px) {
    .sp-wrap {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .sp-left {
        position: static;
        max-height: none;
    }
    
    .sp-match-teams {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .sp-team-away {
        text-align: center;
    }
    
    .sp-vs {
        padding: 5px 0;
    }
}

/* ===== KUPON SEKMELERİ ===== */
.sp-betslip-tabs {
    display: flex;
    align-items: center;
    background: #1a1f35;
    border-bottom: 1px solid #2a2f4a;
    padding: 0 8px;
    gap: 4px;
}
.sp-tab {
    flex: 1;
    background: none;
    border: none;
    color: #aaa;
    padding: 12px 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all .2s;
}
.sp-tab.active {
    color: #ffa500;
    border-bottom-color: #ffa500;
}
.sp-tab:hover { color: #fff; }

/* ===== KUPON GEÇMİŞİ ===== */
#sp-coupon-history-content {
    max-height: 520px;
    overflow-y: auto;
    padding: 8px;
}
.sp-hist-item {
    background: #1a1f35;
    border: 1px solid #2a2f4a;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 12px;
}
.sp-hist-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.sp-hist-code { font-weight: 700; color: #ffa500; font-size: 13px; }
.sp-hist-status { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.sp-status-pending  { background: #2a2f4a; color: #aaa; }
.sp-status-won      { background: #0d3320; color: #00c853; }
.sp-status-lost     { background: #3a1010; color: #ff4444; }
.sp-status-cancelled{ background: #2a2a2a; color: #888; }
.sp-hist-detail {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid #2a2f4a;
    color: #ccc;
}
.sp-hist-pick { color: #ffa500; font-weight: 600; }
.sp-hist-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: #aaa;
    font-size: 11px;
}
.sp-hist-foot strong { color: #fff; }
.sp-hist-date { color: #555; font-size: 10px; margin-top: 4px; text-align: right; }
.sp-hist-pages { display: flex; gap: 4px; justify-content: center; margin-top: 8px; }
.sp-hist-page {
    background: #2a2f4a; border: none; color: #aaa;
    padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 12px;
}
.sp-hist-page.active { background: #ffa500; color: #000; font-weight: 700; }

/* ===== TEMİZLE BUTONU ===== */
.sp-clear-btn {
    width: 100%;
    background: #2a2f4a;
    color: #aaa;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 6px;
    transition: all .2s;
}
.sp-clear-btn:hover { background: #3a1010; color: #ff4444; }

/* ===== BİLDİRİM ===== */
.sp-notify {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1f35;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all .3s;
    max-width: 90vw;
    text-align: center;
    border-left: 4px solid #ffa500;
    box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.sp-notify-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sp-notify-success { border-left-color: #00c853; }
.sp-notify-error   { border-left-color: #ff4444; }
