/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 1xBet Inspired Colors */
    --bg-darkest: #1a1d1f;
    --bg-dark: #242629;
    --bg-medium: #2d3135;
    --bg-light: #35393d;
    --bg-hover: #3a3e42;
    
    --text-primary: #ffffff;
    --text-secondary: #b8bcc2;
    --text-muted: #888c92;
    
    --accent-green: #2ecc71;
    --accent-red: #e74c3c;
    --accent-blue: #3498db;
    --accent-gold: #f1c40f;
    
    --border-color: #3a3e42;
    --odds-bg: #ffffff;
    --odds-text: #1a1d1f;
    --odds-hover: #f8f9fa;
    
    /* Spacing */
    --header-height: 56px;
    --sidebar-width: 220px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-darkest);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.4;
    overflow-x: hidden;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input {
    font-family: inherit;
    outline: none;
}

/* ============================================
   TOP HEADER
   ============================================ */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    max-width: 500px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-gold);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo span {
    color: var(--text-primary);
}

.search-box {
    flex: 1;
    display: flex;
    background: var(--bg-medium);
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 8px 12px;
    background: transparent;
    color: var(--text-muted);
    transition: color 0.2s;
}

.search-btn:hover {
    color: var(--text-primary);
}

.header-center {
    display: flex;
    gap: 8px;
}

.match-type-btn {
    padding: 8px 16px;
    background: var(--bg-medium);
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-type-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.match-type-btn.active {
    background: var(--accent-red);
    color: var(--text-primary);
}

.live-dot {
    color: var(--text-primary);
    font-size: 10px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-display {
    font-size: 12px;
    color: var(--text-muted);
}

.balance-btn {
    padding: 8px 16px;
    background: var(--bg-medium);
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.2s;
}

.balance-btn strong {
    color: var(--accent-gold);
}

.balance-btn:hover {
    background: var(--bg-hover);
}

/* User Menu */
.user-menu {
    position: relative;
    margin-right: 12px;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-medium);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.2s;
}

.user-menu-btn:hover {
    background: var(--bg-hover);
}

.user-icon {
    font-size: 16px;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1001;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.user-dropdown-header strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.user-dropdown-header small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}

.user-dropdown-item {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.user-dropdown-item:hover {
    background: var(--bg-medium);
}

.user-dropdown-item span {
    font-size: 16px;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.main-layout {
    display: flex;
    height: calc(100vh - var(--header-height));
}

:root {
    --right-sidebar-width: 320px;
}

/* ============================================
   LEFT SIDEBAR - SPORTS LIST
   ============================================ */
.left-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-dark);
    border-right: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 3px;
}

.all-sports-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-medium);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.all-sports-btn:hover {
    background: var(--bg-hover);
}

.sidebar-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-text {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
}

.sidebar-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-dark);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

/* Sport Items */
.sport-item {
    border-bottom: 1px solid var(--border-color);
}

.sport-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.sport-header:hover {
    background: var(--bg-hover);
}

.sport-header.active {
    background: var(--bg-medium);
}

.sport-toggle-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.3s;
    width: 12px;
}

.sport-header.expanded .sport-toggle-arrow {
    transform: rotate(90deg);
}

.sport-name-wrap {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

/* League Items Under Sport */
.leagues-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--bg-darkest);
}

.leagues-list.expanded {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

/* Country Items Under Sport */
.country-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.country-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 32px; /* Indented */
    cursor: pointer;
    transition: background 0.2s;
    background: var(--bg-darkest);
}

.country-header:hover {
    background: var(--bg-hover);
}

.country-header.active {
    background: var(--bg-medium);
}

.country-toggle-arrow {
    font-size: 10px;
    color: var(--text-muted);
    width: 12px;
}

.country-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.country-count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-medium);
    padding: 2px 6px;
    border-radius: 10px;
}

.country-leagues-list {
    /* Hidden by default, handled by JS toggle */
    background: var(--bg-darkest);
}

.league-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 48px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

.league-item:hover {
    background: var(--bg-hover);
    border-left-color: var(--accent-gold);
}

.league-item.active {
    background: var(--bg-medium);
    border-left-color: var(--accent-gold);
}

.league-name {
    flex: 1;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.league-match-count {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   MAIN CONTENT - MATCHES TABLE
   ============================================ */
.main-content {
    flex: 1;
    background: var(--bg-darkest);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}

.main-content::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}

/* Table Header - Fixed Column Names */
.table-header {
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    border-bottom: 2px solid var(--border-color);
    display: grid;
    grid-template-columns: 60px 1fr 200px 150px 150px 80px;
    gap: 8px;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    z-index: 100;
}

.col-time {
    text-align: center;
}

.col-match {
    padding-left: 8px;
}

.col-odds {
    text-align: center;
}

.odds-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.odds-title {
    font-size: 11px;
}

.odds-labels {
    display: flex;
    gap: 4px;
    justify-content: center;
    font-size: 10px;
    color: var(--text-muted);
}

.odds-labels span {
    flex: 1;
    text-align: center;
}

.col-more {
    text-align: center;
}

/* League Section */
.league-section {
    border-bottom: 1px solid var(--border-color);
}

.league-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-dark);
    cursor: pointer;
    transition: background 0.2s;
    border-top: 1px solid var(--border-color);
}

.league-title-row:hover {
    background: var(--bg-medium);
}

.league-toggle-icon {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.league-title-row.collapsed .league-toggle-icon {
    transform: rotate(-90deg);
}

.league-title-text {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.league-match-count-badge {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-darkest);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Match Rows */
.matches-table {
    flex: 1;
    transition: opacity 0.15s ease-in-out;
}

.league-matches {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.league-matches.collapsed {
    max-height: 0;
}

.match-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

.match-row.expanded {
    background: var(--bg-dark);
}

.match-row-main {
    display: grid;
    grid-template-columns: 60px 1fr 200px 150px 150px 80px;
    gap: 8px;
    padding: 8px 16px;
    align-items: center;
    cursor: pointer;
}

.match-row-main:hover {
    background: var(--bg-hover);
}

/* Time Column */
.match-time {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.match-time.live {
    color: var(--accent-red);
    font-weight: 600;
}

/* Match Info Column */
.match-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 8px;
    cursor: pointer;
}

.match-teams {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.match-score {
    font-size: 12px;
    color: var(--accent-gold);
    font-weight: 700;
}

/* Odds Buttons */
.odds-group-row {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.odd-btn {
    flex: 1;
    padding: 6px 4px;
    background: var(--odds-bg);
    color: var(--odds-text);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s;
    min-width: 0;
}

.odd-btn:hover {
    background: var(--odds-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.odd-btn.selected {
    background: var(--accent-green);
    color: var(--text-primary);
}

.odd-btn .odd-value {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.odd-btn .odd-param {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* More Markets Column */
.more-markets {
    text-align: center;
}

.more-btn {
    padding: 6px 12px;
    background: var(--bg-medium);
    color: var(--accent-gold);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s;
}

.more-btn:hover {
    background: var(--bg-hover);
    transform: scale(1.05);
}

/* Match Details Accordion */
.match-details {
    background: var(--bg-medium);
    border-top: 1px solid var(--border-color);
    padding: 16px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.match-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* ============================================
   KATEGORILI MARKET GÖRÜNÜMÜ
   ============================================ */
.match-details-categorized {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Kategori Tab Navigasyonu */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 8px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-tab:hover {
    background: var(--bg-hover);
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.category-tab.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-darkest);
    font-weight: 600;
}

.category-tab .category-icon {
    font-size: 14px;
}

.category-tab .category-name {
    white-space: nowrap;
}

.category-tab .category-count {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

.category-tab.active .category-count {
    background: rgba(0, 0, 0, 0.3);
}

/* Kategori İçerikleri */
.category-contents {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-section {
    background: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border-color);
}

.category-header .category-icon {
    font-size: 18px;
}

.category-header .category-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-markets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding: 16px;
}

.market-section {
    background: var(--bg-dark);
    border-radius: 6px;
    padding: 12px;
}

.market-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.market-section-odds {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.detail-odd-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.detail-odd-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-gold);
    transform: translateY(-1px);
}

.detail-odd-btn.locked {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-darker);
    border-color: #555;
}

.detail-odd-btn.locked:hover {
    transform: none;
    background: var(--bg-darker);
    border-color: #555;
}

.detail-odd-btn .lock-icon {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.7;
}

.detail-odd-label {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-odd-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.no-details, .loading-details {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.loading-details {
    color: var(--accent-gold);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Loading & Empty States */
.table-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-medium);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.table-loading p {
    color: var(--text-muted);
    font-size: 13px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 16px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

.hidden {
    display: none !important;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-dialog {
    background: var(--bg-dark);
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-hover);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 18px;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: var(--accent-red);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}

/* Modal Match Info */
.modal-match-header {
    text-align: center;
    padding: 20px;
    background: var(--bg-medium);
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-teams {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-league {
    font-size: 13px;
    color: var(--text-muted);
}

/* Modal Markets Grid */
.modal-markets {
    display: grid;
    gap: 16px;
}

.market-card {
    background: var(--bg-medium);
    border-radius: 8px;
    padding: 16px;
}

.market-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-gold);
}

.market-odds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.market-odd-btn {
    padding: 12px;
    background: var(--odds-bg);
    color: var(--odds-text);
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.market-odd-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.market-odd-name {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.market-odd-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

/* Small Modal for Odds Change */
.small-modal {
    max-width: 400px !important;
    width: 90% !important;
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--bg-hover);
    color: var(--text-primary);
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-light);
}

.btn-primary {
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--bg-primary);
    border-radius: 4px;
    font-weight: 700;
    transition: background 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .table-header,
    .match-row {
        grid-template-columns: 60px 1fr 180px 130px 130px 70px;
    }
}

@media (max-width: 992px) {
    .header-left {
        max-width: 300px;
    }
    
    .search-box input {
        font-size: 12px;
    }
    
    :root {
        --sidebar-width: 200px;
    }
    
    .table-header,
    .match-row {
        grid-template-columns: 50px 1fr 160px 120px 120px 60px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .header-center {
        display: none;
    }
    
    :root {
        --sidebar-width: 60px;
    }
    
    .left-sidebar {
        width: 60px;
    }
    
    .sidebar-text,
    .sidebar-count,
    .sport-name-wrap,
    .leagues-list {
        display: none;
    }
    
    .all-sports-btn,
    .sport-header {
        justify-content: center;
    }
}

/* ============================================
   RIGHT SIDEBAR - BET SLIP
   ============================================ */
.right-sidebar {
    width: var(--right-sidebar-width);
    background: var(--bg-dark);
    border-left: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bet-slip {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bet-slip-tabs {
    display: flex;
    background: var(--bg-medium);
    border-bottom: 1px solid var(--border-color);
}

.bet-slip-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.bet-slip-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.bet-slip-tab.active {
    background: var(--bg-dark);
    color: var(--text-primary);
    border-bottom-color: var(--accent-gold);
}

.bet-count {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent-red);
    color: white;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    margin-left: 6px;
}

.bet-slip-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.bet-slip-content.hidden {
    display: none;
}

.bet-slip-empty,
.my-bets-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
    text-align: center;
}

.bet-slip-empty svg,
.my-bets-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.bet-slip-empty p,
.my-bets-empty p {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

.bet-slip-empty small {
    font-size: 12px;
    color: var(--text-muted);
}

/* My Coupons List */
.my-coupons-list {
    padding: 12px;
    overflow-y: auto;
    height: 100%;
}

.coupon-card {
    background: var(--bg-medium);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.coupon-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.coupon-card-header strong {
    display: block;
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 2px;
}

.coupon-date {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.coupon-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coupon-card-bets {
    margin-bottom: 12px;
}

.coupon-bet-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.coupon-bet-item:last-child {
    border-bottom: none;
}

.coupon-bet-match {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.coupon-bet-selection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.coupon-bet-selection strong {
    color: var(--accent-gold);
    font-size: 12px;
}

.coupon-card-footer {
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.coupon-card-info {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.coupon-card-info strong {
    color: var(--text-primary);
    font-size: 12px;
}

.loading-spinner {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.bet-slip-bets {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bet-slip-bets.hidden {
    display: none;
}

.bet-slip-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.bet-slip-item {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 8px;
    position: relative;
}

.bet-slip-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.bet-slip-item-title {
    flex: 1;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.bet-slip-item-remove {
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s;
}

.bet-slip-item-remove:hover {
    color: var(--accent-red);
}

.bet-slip-item-match {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.bet-slip-item-selection {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bet-slip-item-pick {
    font-size: 12px;
    color: var(--text-secondary);
}

.bet-slip-item-odd {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-gold);
    padding: 4px 8px;
    background: var(--bg-light);
    border-radius: 3px;
}

.bet-slip-summary {
    padding: 16px;
    background: var(--bg-medium);
    border-top: 1px solid var(--border-color);
}

.bet-slip-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 12px;
}

.bet-slip-total span {
    font-size: 13px;
    color: var(--text-secondary);
}

.bet-slip-total strong {
    font-size: 18px;
    color: var(--accent-gold);
}

.bet-slip-stake {
    margin-bottom: 12px;
}

.bet-slip-stake label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.bet-slip-stake input {
    width: 100%;
    padding: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.bet-slip-stake input:focus {
    border-color: var(--accent-gold);
    outline: none;
}

.quick-stakes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.quick-stakes button {
    padding: 6px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
}

.quick-stakes button:hover {
    background: var(--bg-hover);
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.bet-slip-payout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 4px;
    margin-bottom: 12px;
}

.bet-slip-payout span {
    font-size: 13px;
    color: var(--text-secondary);
}

.bet-slip-payout strong {
    font-size: 16px;
    color: var(--accent-green);
    font-weight: 700;
}

.btn-place-bet {
    width: 100%;
    padding: 14px;
    background: var(--accent-green);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.btn-place-bet:hover:not(:disabled) {
    background: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.btn-place-bet:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-clear-bet {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-clear-bet:hover {
    background: var(--bg-hover);
    border-color: var(--accent-red);
    color: var(--accent-red);
}
