* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 255, 0.02);
    pointer-events: none;
    z-index: -1;
    will-change: auto;
}

body {
    font-family: 'Orbitron', 'Rajdhani', 'Segoe UI', monospace;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    color: #e0e0e0;
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
}

/* Removed smooth scrolling for better performance during rapid scrolling */

body {
    /* Removed overflow: hidden to allow normal page scrolling */
}

/* Improved typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

/* Alert Rules Styles */
.subscription-status-panel {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 102, 255, 0.1));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.subscription-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.tier-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9em;
}

.tier-badge i {
    color: #000;
}

.usage-display {
    flex: 1;
    text-align: center;
}

.usage-bar {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 8px auto;
    overflow: hidden;
}

.usage-progress {
    height: 100%;
    background: linear-gradient(90deg, #00FF88, #00CCFF);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.btn-premium {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border: none;
    color: white;
    font-weight: bold;
}

.btn-premium:hover {
    background: linear-gradient(135deg, #F7931E, #FF6B35);
    transform: translateY(-2px);
}

/* Telegram Connection Status Panel */
.telegram-status-panel {
    background: linear-gradient(135deg, rgba(42, 171, 238, 0.1), rgba(0, 136, 204, 0.1));
    border: 1px solid rgba(42, 171, 238, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.telegram-connection-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.connection-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.connection-icon {
    background: linear-gradient(135deg, #2AABEE, #0088CC);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}

.connection-details h3 {
    color: #2AABEE;
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.connection-details p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.8;
}

.status-connected {
    color: #00FF88 !important;
}

.status-pending {
    color: #FFA500 !important;
}

.status-disconnected {
    color: #FF6B35 !important;
}

.connection-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Telegram Setup Modal Styles */
.telegram-setup-content {
    max-width: 600px;
}

.setup-step {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #2AABEE;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step-number {
    background: #2AABEE;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

.telegram-command {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(42, 171, 238, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.telegram-command code {
    background: transparent;
    color: #00CCFF;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    font-weight: bold;
    flex: 1;
}

.telegram-instructions {
    margin-top: 15px;
}

.telegram-instructions ol {
    padding-left: 20px;
}

.telegram-instructions li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.verification-status {
    margin: 15px 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.text-green {
    color: #00FF88;
}

.text-yellow {
    color: #FFA500;
}

.text-red {
    color: #FF6B35;
}

.polling-status {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    font-size: 0.9em;
    margin-top: 10px;
}

.loading-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    opacity: 0.8;
}

/* Alert Method Warning */
.alert-warning {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.alert-warning i {
    color: #FF6B35;
}

.link-btn {
    background: none;
    border: none;
    color: #00CCFF;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    margin: 0;
}

.link-btn:hover {
    color: #00FF88;
}

.alert-rules-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.alert-rule-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.alert-rule-card:hover {
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.1);
}

.alert-rule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.alert-rule-title {
    color: #00CCFF;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.alert-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    background: rgba(0, 255, 136, 0.2);
    color: #00FF88;
    border: 1px solid #00FF88;
}

.status-inactive {
    background: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
    border: 1px solid #FF6B35;
}

.alert-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.alert-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #00FF88;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.alert-criteria {
    margin-bottom: 15px;
}

.criteria-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
}

.criteria-label {
    color: #888;
    font-size: 0.9em;
}

.criteria-value {
    color: #e0e0e0;
    font-weight: 500;
}

.alert-method {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.alert-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85em;
}

.btn-edit {
    background: rgba(0, 204, 255, 0.2);
    border: 1px solid #00CCFF;
    color: #00CCFF;
}

.btn-edit:hover {
    background: rgba(0, 204, 255, 0.3);
}

.btn-delete {
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid #FF6B35;
    color: #FF6B35;
}

.btn-delete:hover {
    background: rgba(255, 107, 53, 0.3);
}

.btn-duplicate {
    background: rgba(247, 147, 30, 0.2);
    border: 1px solid #F7931E;
    color: #F7931E;
}

.btn-duplicate:hover {
    background: rgba(247, 147, 30, 0.3);
}

/* Modal Styles for Alert Rules */
.modal-content.large {
    max-width: 700px;
    width: 90%;
}

.alert-form-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.multi-select-container {
    position: relative;
}

.selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    min-height: 32px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
}

.selected-item {
    background: linear-gradient(135deg, #00CCFF, #0099CC);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-item .remove {
    cursor: pointer;
    font-weight: bold;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.selected-item .remove:hover {
    opacity: 1;
}

.multi-select-dropdown {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1em;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.1);
}

.radio-option input[type="radio"] {
    margin: 0;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #00CCFF;
    font-weight: bold;
}

.upgrade-info {
    text-align: center;
}

.upgrade-options {
    margin: 20px 0;
}

.upgrade-plan {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.upgrade-plan:hover {
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.plan-name {
    color: #00CCFF;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.plan-price {
    color: #FFD700;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

.plan-features {
    list-style: none;
    margin-bottom: 20px;
}

.plan-features li {
    padding: 5px 0;
    color: #e0e0e0;
}

.plan-features li:before {
    content: "✓ ";
    color: #00FF88;
    font-weight: bold;
}

.no-alert-rules {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.no-alert-rules i {
    font-size: 4em;
    margin-bottom: 20px;
    color: #444;
}

.no-alert-rules h3 {
    margin-bottom: 10px;
    color: #666;
}

@media (max-width: 768px) {
    .subscription-info {
        flex-direction: column;
        text-align: center;
    }
    
    .alert-rule-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .alert-status {
        justify-content: space-between;
        width: 100%;
    }
    
    .alert-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .radio-group {
        flex-direction: column;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.9)),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 255, 255, 0.03) 2px, rgba(0, 255, 255, 0.03) 4px);
    backdrop-filter: blur(15px);
    padding: 1.5rem 0;
    border-bottom: 3px solid #00ffff;
    box-shadow: 
        0 0 4px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.header:hover {
    box-shadow: 
        0 0 6px rgba(0, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
}

.header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066ff, #00ffff, #0066ff);
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #00ffff;
    font-size: 2.2rem;
    font-weight: 900;
    text-shadow: 
        0 0 2px #00ffff,
        0 0 4px #00ffff,
        0 0 6px #00ffff,
        0 0 8px #00ffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    -webkit-text-stroke: 1px #000000;
    text-stroke: 1px #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.header h1:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.header h1:focus {
    outline: 2px solid #00ffff;
    outline-offset: 4px;
    border-radius: 4px;
}

.site-title {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.site-title:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.site-title:focus {
    outline: 2px solid #00ffff;
    outline-offset: 4px;
    border-radius: 4px;
}

@keyframes cyber-glow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(76, 175, 80, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid #4CAF50;
}

.admin-settings-btn {
    background: none;
    border: none;
    color: #4CAF50;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.admin-settings-btn:hover {
    background: rgba(76, 175, 80, 0.1);
    opacity: 1;
    transform: rotate(90deg);
}

/* Vertical Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background: 
        linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(30, 30, 30, 0.95)),
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(0, 255, 255, 0.02) 20px, rgba(0, 255, 255, 0.02) 40px);
    border-right: 3px solid rgba(0, 255, 255, 0.4);
    box-shadow: 
        4px 0 20px rgba(0, 0, 0, 0.5),
        inset -1px 0 0 rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-nav {
    padding: 2rem 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    flex: 1;
}

.nav-item {
    background: 
        linear-gradient(135deg, rgba(40, 40, 40, 0.8), rgba(60, 60, 60, 0.6)),
        linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(0, 102, 255, 0.1));
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: #e0e0e0;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: left;
    justify-content: flex-start;
}

.nav-item i {
    font-size: 1.2rem;
    min-width: 20px;
}

.nav-text {
    font-size: 0.9rem;
}

.nav-item:hover {
    background: 
        linear-gradient(135deg, rgba(60, 60, 60, 0.9), rgba(80, 80, 80, 0.7)),
        linear-gradient(45deg, rgba(0, 255, 255, 0.2), rgba(0, 102, 255, 0.2));
    border-color: #00ffff;
    color: #00ffff;
    transform: translateX(5px);
    box-shadow: 
        0 8px 25px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-item:active {
    transform: translateX(2px);
}

.nav-item.active {
    background: 
        linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 102, 255, 0.2)),
        linear-gradient(45deg, rgba(80, 80, 80, 0.8), rgba(60, 60, 60, 0.9));
    border: 2px solid #0066ff;
    color: #0066ff;
    text-shadow: 0 0 2px #0066ff;
    box-shadow: 
        0 0 20px rgba(0, 102, 255, 0.4),
        inset 0 0 20px rgba(0, 102, 255, 0.1);
    transform: translateX(8px);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, #0066ff, #00ffff);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
}

/* Sidebar Logo */
.sidebar-logo {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-logo-img {
    height: 100px;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.4));
}

.sidebar-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.8));
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: rgba(0, 255, 255, 0.2);
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* Main content area adjustments */
.main-content {
    margin-left: 250px;
    min-height: 100vh;
    padding: 0;
    background: transparent;
}

.content-wrapper {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.page-header h1 {
    color: #00ffff;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 2px #00ffff,
        0 0 4px #00ffff,
        0 0 6px #00ffff;
    -webkit-text-stroke: 1px #0066ff;
    text-stroke: 1px #0066ff;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.page-header h1 i {
    font-size: 2rem;
}

/* Horizontal Filter Bar */
.filter-bar {
    background: 
        linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(40, 40, 40, 0.9)),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 255, 255, 0.03) 2px, rgba(0, 255, 255, 0.03) 4px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: end;
    flex-wrap: wrap;
}

/* Filter Indicator */
.filter-indicator {
    background: 
        linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 200, 255, 0.05)),
        linear-gradient(45deg, rgba(20, 20, 20, 0.9), rgba(30, 30, 30, 0.8));
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 16px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.3s ease-in;
}

.filter-indicator-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.filter-indicator-content i {
    color: #00ffff;
    font-size: 1rem;
}

.filter-indicator-content span {
    flex: 1;
    font-weight: 500;
}

.clear-filters-btn {
    background: rgba(255, 0, 100, 0.2);
    border: 1px solid rgba(255, 0, 100, 0.4);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ff6b9d;
}

.clear-filters-btn:hover {
    background: rgba(255, 0, 100, 0.3);
    border-color: rgba(255, 0, 100, 0.6);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 0, 100, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    flex: 1;
}

.filter-group label {
    color: #00ffff;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.filter-dropdown {
    background: 
        linear-gradient(145deg, rgba(40, 40, 40, 0.9), rgba(60, 60, 60, 0.7));
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: 
        linear-gradient(45deg, transparent 40%, #00ffff 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, #00ffff 50%, transparent 60%);
    background-size: 8px 8px;
    background-position: right 12px center;
    background-repeat: no-repeat;
    padding-right: 2.5rem;
}

.filter-dropdown:hover {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.filter-dropdown:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
}

.filter-dropdown:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(0, 255, 255, 0.1);
}

.filter-dropdown option {
    background: rgba(40, 40, 40, 0.95);
    color: #e0e0e0;
    padding: 0.5rem;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
}

.filter-actions .btn {
    white-space: nowrap;
}

/* Tab Container */
.tab-container {
    background: 
        linear-gradient(135deg, rgba(15, 15, 15, 0.95), rgba(35, 35, 35, 0.9));
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    min-height: 500px;
}

/* Responsive Design for New Layout */
@media (max-width: 1024px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-group {
        min-width: unset;
    }
    
    .filter-actions {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    /* Mobile sidebar behavior */
    .sidebar {
        transform: translateX(-100%);
        z-index: 1002;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .content-wrapper {
        padding: 1rem;
        margin-top: 4rem; /* Account for mobile toggle */
    }
    
    .page-header h1 {
        font-size: 1.8rem;
        gap: 0.5rem;
    }
    
    .page-header h1 i {
        font-size: 1.5rem;
    }
    
    .filter-bar {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .filter-group {
        margin-bottom: 0.5rem;
    }
    
    .filter-group label {
        font-size: 0.8rem;
    }
    
    .filter-dropdown {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .tab-container {
        padding: 1rem;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .filter-bar {
        padding: 0.75rem;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .nav-item {
        padding: 0.8rem 1rem;
    }
    
    .nav-text {
        font-size: 0.8rem;
    }
    
    .sidebar-logo {
        margin-bottom: 1rem;
        padding: 1rem 0.5rem;
    }
    
    .sidebar-logo-img {
        height: 120px;
    }
}

.tab-content {
    display: none;
    position: relative; /* Establish stacking context */
    z-index: 1; /* Ensure proper layering */
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    color: #00ffff;
    font-size: 2rem;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 2px #00ffff,
        0 0 4px #00ffff,
        0 0 6px #00ffff;
    -webkit-text-stroke: 1px #0066ff;
    text-stroke: 1px #0066ff;
    position: relative;
    background: linear-gradient(45deg, #00ffff, #0066ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: 
        linear-gradient(145deg, rgba(0, 255, 255, 0.8), rgba(0, 150, 255, 0.6)),
        linear-gradient(45deg, rgba(40, 40, 40, 0.9), rgba(60, 60, 60, 0.7));
    color: #000;
    font-weight: bold;
    border: 2px solid #00ffff;
    text-shadow: 0 0 1px rgba(0, 255, 255, 0.8);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: 
        linear-gradient(145deg, rgba(0, 255, 255, 1), rgba(0, 200, 255, 0.8)),
        linear-gradient(45deg, rgba(60, 60, 60, 0.9), rgba(80, 80, 80, 0.7));
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 0 35px rgba(0, 255, 255, 0.6),
        0 8px 25px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        0 4px 15px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(45deg, #5CBF60, #4CAF50);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(45deg, #757575, #616161);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #616161, #424242);
}

select {
    padding: 0.6rem;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 1rem;
}

.odds-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#odds-container {
    /* Performance optimizations for large datasets */
    contain: layout style;
    will-change: scroll-position;
    transform: translateZ(0);
}

.odds-card {
    background: rgba(25, 25, 25, 0.95);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style paint;
    display: flex;
    gap: 2rem;
    min-height: 220px;
    margin-bottom: 1.5rem;
}

/* Removed expensive pseudo-element for performance */

.odds-left-panel {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.odds-right-panel {
    flex: 1;
    min-width: 0;
}


.best-odds-title {
    font-family: 'Orbitron', monospace;
    color: #00ffff;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.5);
}

.best-odds-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #00ffff;
}

.best-odds-team {
    font-weight: bold;
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.best-odds-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.best-odds-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 1px rgba(0, 255, 255, 0.5);
}

.best-odds-book {
    font-size: 0.8rem;
    color: #0066ff;
    font-weight: bold;
}








.team-name-cell {
    text-align: left !important;
    font-weight: bold;
    color: #00ffff;
    padding: 0.8rem 0.5rem 0.8rem 1rem !important;
    border-right: 2px solid rgba(0, 255, 255, 0.6);
    position: sticky;
    left: 0;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.98), rgba(40, 40, 40, 0.95)) !important;
    z-index: 15;
    min-width: 180px;
    max-width: 180px;
    word-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    line-height: 1.2;
    font-size: 0.9rem;
}

.odds-value {
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.3rem;
    border-radius: 4px;
}

.odds-value:hover {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    text-shadow: 0 0 1px rgba(0, 255, 255, 0.8);
}

.best-odds-highlight {
    background: rgba(0, 255, 255, 0.3) !important;
    color: #00ffff !important;
    font-weight: bold !important;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.8) !important;
    border: 1px solid #00ffff !important;
}

.stake-calculator {
    background: linear-gradient(145deg, rgba(0, 40, 40, 0.9), rgba(0, 60, 60, 0.7));
    border: 2px solid rgba(0, 255, 255, 0.6);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.8rem;
}

.stake-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.stake-input-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.8rem;
    transition: all 0.3s ease;
}

.stake-input-card.primary-bet {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(0, 255, 255, 0.05);
}

.stake-input-card.secondary-bet {
    border-color: rgba(0, 102, 255, 0.4);
    background: rgba(0, 102, 255, 0.05);
}

.bet-details {
    margin-bottom: 0.6rem;
}

.bet-selection {
    font-weight: bold;
    color: #00ffff;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.bet-bookmaker {
    color: #e0e0e0;
    font-size: 0.8rem;
    margin-bottom: 0.1rem;
}

.bet-odds {
    color: #ffc107;
    font-weight: bold;
    font-size: 0.85rem;
}

.stake-controls {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stake-input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 8px;
    color: #00ffff;
    font-weight: bold;
    z-index: 2;
}

.stake-input {
    width: 100%;
    padding: 0.4rem 0.4rem 0.4rem 1.2rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.stake-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.stake-input.primary-input {
    border-color: rgba(0, 255, 255, 0.5);
}

.stake-input.secondary-input {
    border-color: rgba(0, 102, 255, 0.4);
}

.auto-payout {
    font-size: 0.8rem;
    color: #aaa;
    transition: all 0.3s ease;
}

.auto-payout.active {
    color: #00ffff;
    font-weight: bold;
}

.track-bet-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-top: 0.2rem;
}

.auto-profit-summary {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
}

.profit-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profit-label {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.profit-amount {
    color: #ffc107;
    font-weight: bold;
    font-size: 1rem;
}

.profit-amount.guaranteed {
    color: #4caf50;
}

.profit-amount.positive {
    color: #4caf50;
}

.profit-amount.negative {
    color: #f44336;
}

.profit-percentage {
    color: #aaa;
    font-size: 0.85rem;
}

/* NEW GAME DETAILS TABLE-BASED DESIGN */
.game-details-header {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 102, 255, 0.1));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.teams-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.team-info {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.team-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.team-score {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffc107;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
}

/* Team Logo Styles */
.team-logo {
    width: 80px;
    height: 80px;
    margin: 1rem auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.team-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.5));
}

.game-status-center {
    flex: 0 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.vs-indicator {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.game-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-status.status-live {
    background: linear-gradient(45deg, #ff4444, #ff6666);
    color: white;
    animation: pulse 2s infinite;
}

.game-status.status-upcoming {
    background: linear-gradient(45deg, #0066ff, #0088ff);
    color: white;
}

.game-status.status-completed {
    background: linear-gradient(45deg, #666, #888);
    color: white;
}

.game-meta-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-stat {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.meta-stat i {
    color: #00ffff;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.meta-label {
    font-size: 0.85rem;
    color: #aaa;
    margin-right: auto;
}

.meta-value {
    font-weight: bold;
    color: #fff;
}

.game-details-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.markets-table-section {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(40, 40, 40, 0.8));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.table-header {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 102, 255, 0.2));
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.table-header h3 {
    color: #00ffff;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.table-header h3 i {
    font-size: 1.2rem;
}

.table-subtitle {
    color: #aaa;
    font-size: 0.9rem;
}

.markets-table-container {
    overflow-x: auto;
    padding: 0;
}

.markets-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.markets-table thead th {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(20, 20, 20, 0.8));
    color: #00ffff;
    font-weight: bold;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Bookmaker column headers with logos */
.markets-table thead th.bookmaker-column {
    text-align: center;
    padding: 0.5rem;
}

.markets-table thead th .bookmaker-logo-small {
    height: 28px;
    max-width: 70px;
    border-radius: 4px;
}

.markets-table tbody td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.market-row:hover td {
    background: rgba(0, 255, 255, 0.05);
}

.market-row.market-start td {
    border-top: 2px solid rgba(0, 255, 255, 0.2);
}

.market-name-cell {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 102, 255, 0.1));
    border-right: 1px solid rgba(0, 255, 255, 0.3);
    vertical-align: middle;
}

.market-name {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: bold;
    color: #00ffff;
    font-size: 0.95rem;
}

.market-name i {
    font-size: 1.1rem;
}

.selection-cell {
    font-weight: 600;
    color: #fff;
    min-width: 120px;
}

.selection-name {
    font-size: 0.9rem;
}

.selection-point {
    font-size: 0.8rem;
    color: #ffc107;
    font-weight: bold;
    margin-top: 0.2rem;
}

.odds-cell {
    text-align: center;
    min-width: 80px;
    position: relative;
}

.odds-cell.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.odds-cell.clickable:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.05);
}

.odds-value {
    font-weight: bold;
    color: #ffc107;
    font-size: 0.95rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.odds-cell.empty {
    color: #666;
    text-align: center;
}

.best-odds-cell {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(56, 142, 60, 0.2));
    border-left: 1px solid rgba(76, 175, 80, 0.3);
    border-right: 1px solid rgba(76, 175, 80, 0.3);
    text-align: center !important;
    min-width: 100px;
}

.best-odds-cell .best-odds-value {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    gap: 0.25rem;
}

.best-odds-cell .best-odds-book {
    text-align: center !important;
}

.best-odds-column {
    border-right: 1px solid rgba(76, 175, 80, 0.3);
}

/* Odds Table Row Separation */
.odds-table tbody tr {
    border-bottom: 2px solid rgba(0, 102, 255, 0.6);
    transition: background-color 0.3s ease;
}

.odds-table tbody tr:last-child {
    border-bottom: none;
}

.odds-table tbody tr:hover {
    background-color: rgba(0, 255, 255, 0.05);
}

.best-odds-value {
    font-weight: bold;
    color: #4caf50;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.best-odds-bookmaker {
    font-size: 0.75rem;
    color: #aaa;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.25rem;
}

/* Bookmaker logos in game details */
.bookmaker-logo-small {
    height: 32px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

.best-odds-cell:hover .bookmaker-logo-small,
.prop-bookmaker-cell:hover .bookmaker-logo-small {
    opacity: 1;
}

.bookmaker-name {
    font-size: 0.75rem;
    color: #aaa;
    text-align: center;
    display: block;
}

/* Player Props Table Styling */
.player-props-table .prop-player-cell {
    font-weight: bold;
    color: #00ffff;
    min-width: 120px;
}

.player-props-table .prop-market-cell {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.player-props-table .prop-line-cell {
    text-align: center;
    font-weight: bold;
    color: #ffc107;
}

.player-props-table .prop-over-cell,
.player-props-table .prop-under-cell {
    text-align: center;
    min-width: 80px;
}

.player-props-table .prop-over-cell.clickable:hover,
.player-props-table .prop-under-cell.clickable:hover {
    background: rgba(0, 255, 255, 0.2);
}

.player-props-table .prop-bookmaker-cell {
    color: #aaa;
    font-size: 0.85rem;
    text-align: center;
}

/* Other Markets Grid */
.other-markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.other-market-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.other-market-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.1);
}

.other-market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.other-market-header h4 {
    color: #00ffff;
    font-size: 1rem;
    margin: 0;
}

.market-count {
    font-size: 0.8rem;
    color: #aaa;
}

.other-market-outcomes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.other-outcome-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.other-outcome-item:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(4px);
}

.other-outcome-name {
    flex: 1;
    color: #fff;
    font-size: 0.9rem;
}

.other-outcome-odds {
    color: #ffc107;
    font-weight: bold;
    margin: 0 0.5rem;
}

.other-outcome-bookmaker {
    color: #aaa;
    font-size: 0.8rem;
    min-width: 80px;
    text-align: right;
}

.calculator-title {
    font-family: 'Orbitron', monospace;
    color: #00ffff;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.5);
}

.stake-input-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.stake-input-label {
    color: #e0e0e0;
    font-weight: bold;
    font-size: 1rem;
}

.stake-input {
    padding: 0.6rem 1rem;
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #00ffff;
    font-size: 1rem;
    font-weight: bold;
    width: 120px;
    text-align: center;
}

.stake-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.calculation-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bet-input-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.6), rgba(20, 20, 20, 0.8));
    border: 2px solid rgba(0, 102, 255, 0.4);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.bet-input-card:hover {
    border-color: #0066ff;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
}

.bet-input-card.primary-bet {
    border-color: #00ff88;
    background: linear-gradient(145deg, rgba(0, 40, 20, 0.8), rgba(0, 60, 40, 0.6));
}

.bet-input-card.primary-bet:hover {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.bet-input-card.secondary-bet {
    border-color: #ffaa00;
    background: linear-gradient(145deg, rgba(40, 30, 0, 0.8), rgba(60, 45, 0, 0.6));
}

.bet-input-card.secondary-bet:hover {
    border-color: #ffaa00;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.4);
}

.bet-type-label {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    margin-bottom: 0.8rem;
    text-align: center;
}

.primary-bet .bet-type-label {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.4);
}

.secondary-bet .bet-type-label {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.4);
}

.primary-input {
    border-color: #00ff88 !important;
    color: #00ff88 !important;
    font-weight: bold;
}

.primary-input:focus {
    border-color: #00ff88 !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4) !important;
}

.secondary-input {
    border-color: #ffaa00 !important;
    color: #ffaa00 !important;
}

.bet-input-team {
    font-weight: bold;
    color: #0066ff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 102, 255, 0.5);
}

.bet-input-bookmaker {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.bet-input-odds {
    color: #00ffff;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 0 1px rgba(0, 255, 255, 0.5);
}

.individual-stake-input {
    padding: 0.6rem 1rem;
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #00ffff;
    font-size: 1rem;
    font-weight: bold;
    width: 100px;
    text-align: center;
    margin-right: 0.5rem;
}

.individual-stake-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.currency-symbol {
    color: #e0e0e0;
    font-weight: bold;
    font-size: 1rem;
}

.potential-payout {
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    color: #ccc;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.potential-payout.active {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 1px rgba(0, 255, 255, 0.5);
}

.calculation-summary {
    margin-top: 1.5rem;
}

.profit-summary.guaranteed {
    background: linear-gradient(45deg, rgba(0, 255, 0, 0.15), rgba(0, 200, 0, 0.25));
    border: 2px solid #00ff88;
}

.profit-summary.potential {
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.2));
    border: 2px solid #FFC107;
}

.outcome-range {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
    gap: 1rem;
}

.outcome-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.outcome-label {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: bold;
}

.outcome-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.outcome-value.profit {
    color: #00ff88;
    text-shadow: 0 0 2px rgba(0, 255, 136, 0.6);
}

.outcome-value.loss {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
}

.total-staked {
    text-align: center;
    color: #00ffff;
    font-weight: bold;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.bet-calculation {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.bet-calc-team {
    font-weight: bold;
    color: #0066ff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.bet-calc-bookmaker {
    color: #ccc;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.bet-calc-odds {
    color: #00ffff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.bet-calc-amount {
    color: #00ffff;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 0 1px rgba(0, 255, 255, 0.5);
}

.profit-summary {
    background: linear-gradient(45deg, rgba(0, 255, 0, 0.1), rgba(0, 200, 0, 0.2));
    border: 2px solid #00ff88;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.profit-label {
    color: #00ff88;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.profit-amount {
    color: #00ff88;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0, 255, 136, 0.6);
}

.profit-percentage {
    color: #00ff88;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.odds-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}

/* Removed expensive animations for performance */

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-title {
    font-size: 1.3rem;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
    color: #00ffff;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.5);
    letter-spacing: 1px;
}

.game-title-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.game-title-link:hover {
    color: #0066ff;
    text-shadow: 
        0 0 15px rgba(0, 102, 255, 0.8),
        0 0 25px rgba(0, 102, 255, 0.5);
    transform: translateY(-2px);
}

.game-title-link:active {
    transform: translateY(0px);
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.5);
    color: #00ffff;
}

/* Game Detail Page Styles */
.game-info-header {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 102, 255, 0.15));
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 
        0 8px 25px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
}

.game-meta-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.game-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
    font-size: 1rem;
}

.game-meta-item i {
    color: #00ffff;
}

.markets-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.market-section {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.market-section.main-market {
    border-color: rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.05);
}

.market-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.market-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #00ffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.5);
}

.market-count {
    background: linear-gradient(45deg, #00ffff, #0066ff);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.outcomes-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.outcome-card {
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.8), rgba(60, 60, 60, 0.6));
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(5px);
}

.outcome-card:hover {
    border-color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 255, 255, 0.2),
        0 0 20px rgba(0, 102, 255, 0.1);
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.1), rgba(0, 102, 255, 0.05));
}

.outcome-card.main-market {
    border-left: 3px solid #00ffff;
}

.outcome-card.prop-outcome {
    border-left: 3px solid #0066ff;
}

.outcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.outcome-name {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 1rem;
}

.outcome-odds {
    font-weight: 700;
    font-size: 1.2rem;
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    font-family: 'Orbitron', monospace;
}

.outcome-bookmaker {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
}

.outcome-point {
    color: #0066ff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.no-markets {
    text-align: center;
    padding: 4rem 2rem;
    color: #aaa;
    background: rgba(20, 20, 20, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-markets h3 {
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.no-markets p {
    margin-bottom: 2rem;
}

/* Status-specific styling */
.status-live {
    color: #dc3545 !important;
}

/* Market Group Styles */
.market-group {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(40, 40, 40, 0.8));
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.market-group.main-group {
    border: 2px solid rgba(0, 255, 255, 0.5);
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.08), rgba(0, 102, 255, 0.05));
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.15);
}

.market-group:hover {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.2);
}

.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.group-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 3px rgba(0, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.group-title i {
    font-size: 1.5rem;
}

.group-count {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.2), rgba(0, 102, 255, 0.2));
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    font-size: 0.9rem;
    font-weight: 600;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* Market Card Styles */
.market-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(50, 50, 50, 0.7));
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.market-card.main-market {
    border: 2px solid rgba(0, 255, 255, 0.4);
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.05), rgba(0, 102, 255, 0.03));
}

.market-card:hover {
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 255, 255, 0.2);
}

.market-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.market-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.market-card-title i {
    color: #00ffff;
    font-size: 1.1rem;
}

.market-card-count {
    background: rgba(0, 102, 255, 0.2);
    color: #0066ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 102, 255, 0.3);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Comparison Table Styles */
.comparison-table {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.comparison-header {
    display: grid;
    grid-template-columns: 180px repeat(auto-fit, minmax(120px, 1fr));
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 102, 255, 0.15));
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.bookmaker-header,
.outcome-header {
    padding: 1rem;
    font-weight: 700;
    color: #00ffff;
    text-align: center;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.5);
    border-right: 1px solid rgba(0, 255, 255, 0.2);
}

.outcome-header {
    font-size: 0.9rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: 180px repeat(auto-fit, minmax(120px, 1fr));
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.comparison-row:hover {
    background: rgba(0, 255, 255, 0.05);
}

.bookmaker-cell {
    padding: 1rem;
    border-right: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    align-items: center;
    background: rgba(30, 30, 30, 0.5);
}

.bookmaker-name {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.outcome-cell {
    padding: 0.8rem;
    border-right: 1px solid rgba(0, 255, 255, 0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(40, 40, 40, 0.3);
}

.outcome-cell:hover {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.1), rgba(0, 102, 255, 0.05));
    transform: scale(1.02);
}

.outcome-cell.empty {
    color: #666;
    cursor: default;
    opacity: 0.5;
}

.outcome-cell.empty:hover {
    background: rgba(40, 40, 40, 0.3);
    transform: none;
}

.cell-odds {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.cell-point {
    font-size: 0.8rem;
    color: #0066ff;
    margin-top: 0.2rem;
}

/* Horizontal Scrolling Bookmaker Cards */
.outcome-section {
    margin-bottom: 2rem;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.outcome-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.outcome-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bookmaker-count {
    background: rgba(0, 102, 255, 0.2);
    color: #0066ff;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 102, 255, 0.3);
    font-size: 0.8rem;
    font-weight: 600;
}

.bookmakers-scroll-container {
    position: relative;
    overflow: hidden;
}

.bookmakers-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
}

.bookmakers-scroll::-webkit-scrollbar {
    height: 6px;
}

.bookmakers-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.bookmakers-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00ffff, #0066ff);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.bookmakers-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #0066ff, #00ffff);
    box-shadow: 0 0 12px rgba(0, 102, 255, 0.6);
}

.bookmaker-card {
    flex: 0 0 auto;
    min-width: 160px;
    max-width: 180px;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.9), rgba(60, 60, 60, 0.7));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
}

.bookmaker-card:hover {
    border-color: #00ffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 25px rgba(0, 255, 255, 0.3),
        0 0 20px rgba(0, 102, 255, 0.2);
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.1), rgba(0, 102, 255, 0.05));
}

.bookmaker-card.best-odds {
    border: 2px solid #00ff88;
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 255, 0.05));
}

.bookmaker-card.best-odds:hover {
    border-color: #00ff88;
    box-shadow: 
        0 12px 25px rgba(0, 255, 136, 0.4),
        0 0 20px rgba(0, 255, 136, 0.3);
}

.bookmaker-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    min-height: 2rem;
}

.bookmaker-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e0e0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.best-badge {
    background: linear-gradient(45deg, #00ff88, #00ffaa);
    color: #000;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-shadow: none;
    margin-left: 0.5rem;
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

.bookmaker-odds {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    text-align: center;
    margin-bottom: 0.3rem;
}

.bookmaker-card.best-odds .bookmaker-odds {
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

.bookmaker-point {
    font-size: 0.8rem;
    color: #0066ff;
    text-align: center;
    margin-top: 0.3rem;
    font-weight: 600;
}

/* Simple Paired Betting View */
.simple-paired-betting {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.best-odds-summary {
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 255, 0.08));
    border: 2px solid rgba(0, 255, 136, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.best-odds-header h4 {
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
}

.best-odds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.best-odds-item {
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 255, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.best-odds-item:hover {
    border-color: #00ff88;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.best-team-name {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.best-team-odds {
    font-size: 1.4rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
    margin-bottom: 0.3rem;
}

.best-team-book {
    font-size: 0.9rem;
    color: #00ffff;
    font-weight: 600;
}

.paired-scroll-container {
    position: relative;
    overflow: hidden;
}

.paired-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
}

.paired-scroll::-webkit-scrollbar {
    height: 8px;
}

.paired-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.paired-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00ffff, #0066ff);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.paired-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #0066ff, #00ffff);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.8);
}

.simple-pair-card {
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 200px;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.9), rgba(60, 60, 60, 0.7));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.simple-pair-card:hover {
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.2);
}

.pair-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.sportsbook-name {
    font-size: 1rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.5);
}

.pair-bets {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.simple-bet {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.simple-bet:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
}

.simple-bet.is-best {
    border: 2px solid #00ff88;
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 255, 0.05));
}

.bet-team {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e0e0;
}

.bet-odds {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.simple-bet.is-best .bet-odds {
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}

.best-tag {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(45deg, #00ff88, #00ffaa);
    color: #000;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    text-shadow: none;
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

/* Unified Paired Betting View - Single Scroll for Both Sides */
.unified-paired-betting {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.unified-scroll-container {
    position: relative;
    overflow: hidden;
}

.unified-scroll {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
}

.unified-scroll::-webkit-scrollbar {
    height: 8px;
}

.unified-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.unified-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00ffff, #0066ff);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.unified-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #0066ff, #00ffff);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.8);
}

.unified-bookmaker-card {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 220px;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.9), rgba(60, 60, 60, 0.7));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.2rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.unified-bookmaker-card:hover {
    border-color: rgba(0, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}

.bookmaker-header {
    text-align: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.bookmaker-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.5);
}

.vs-bets-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.vs-bet {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
    position: relative;
}

.vs-bet:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.08);
    transform: scale(1.02);
}

.vs-bet.is-best-odds {
    border: 2px solid #00ff88;
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.12), rgba(0, 255, 255, 0.06));
}

.vs-bet.is-best-odds:hover {
    border-color: #00ff88;
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.18), rgba(0, 255, 255, 0.1));
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.team-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.team-odds {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.vs-bet.is-best-odds .team-odds {
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    color: #00ffaa;
}

.best-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #00ff88, #00ffaa);
    color: #000;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-shadow: none;
}

/* Player Prop Groups Styling */
.player-prop-groups {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.player-prop-group {
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.player-stat-header {
    font-size: 1.1rem;
    color: #00ffff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    text-align: center;
}

.over-row, .under-row {
    margin-bottom: 0.8rem;
}

.over-row:last-child, .under-row:last-child {
    margin-bottom: 0;
}

.outcome-label {
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.over-label {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.under-label {
    background: rgba(255, 136, 0, 0.2);
    color: #ff8800;
    border: 1px solid rgba(255, 136, 0, 0.3);
}

/* Player Prop Specific Scroll Container Adjustments */
.player-prop-group .bookmakers-scroll-container {
    max-width: calc(100vw - 4rem);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
}

.player-prop-group .bookmakers-odds-list {
    padding: 0.75rem 0.5rem;
}

.player-prop-group .bookmaker-odds-card {
    min-width: 160px;
    flex-shrink: 0;
}

.vs-divider {
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    text-align: center;
    margin: 0.3rem 0;
    opacity: 0.7;
}

/* Spread Group Styling - Groups by spread value */
.spread-group-card {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 320px;
    background: linear-gradient(145deg, rgba(50, 40, 60, 0.9), rgba(70, 60, 80, 0.7));
    border: 1px solid rgba(255, 100, 0, 0.4);
    border-radius: 12px;
    padding: 1.2rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.spread-group-card:hover {
    border-color: rgba(255, 100, 0, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 100, 0, 0.2);
}

.spread-group-header {
    text-align: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 100, 0, 0.3);
}

.spread-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff6400;
    text-shadow: 0 0 10px rgba(255, 100, 0, 0.5);
}

.spread-bookmakers {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.spread-bookmaker-row {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 100, 0, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
}

.spread-bookmaker-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff6400;
    text-align: center;
    margin-bottom: 0.6rem;
    text-shadow: 0 0 8px rgba(255, 100, 0, 0.4);
}

.spread-outcomes {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.spread-bet {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 100, 0, 0.2);
    border-radius: 6px;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
    position: relative;
}

.spread-bet:hover {
    border-color: #ff6400;
    background: rgba(255, 100, 0, 0.08);
    transform: scale(1.02);
}

.spread-bet.is-best-odds {
    border: 2px solid #00ff88;
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.12), rgba(255, 100, 0, 0.06));
}

.spread-bet.is-best-odds:hover {
    border-color: #00ff88;
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.18), rgba(255, 100, 0, 0.1));
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.spread-team-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.4rem;
}

.spread-team-odds {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff6400;
    text-shadow: 0 0 8px rgba(255, 100, 0, 0.4);
}

.spread-bet.is-best-odds .spread-team-odds {
    color: #00ff88;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}

.spread-best-indicator {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(45deg, #00ff88, #00ffaa);
    color: #000;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    text-shadow: none;
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

/* Responsive Design for Game Detail Page */
@media (max-width: 768px) {
    
    .game-info-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .game-meta-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .markets-container {
        gap: 2rem;
    }
    
    .market-group {
        padding: 1.5rem;
    }
    
    .group-title {
        font-size: 1.5rem;
    }
    
    .markets-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .outcome-section {
        padding: 1rem;
    }
    
    .outcome-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .bookmaker-card {
        min-width: 140px;
        max-width: 160px;
        padding: 0.8rem;
    }
    
    .bookmaker-odds {
        font-size: 1.1rem;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .simple-paired-betting {
        gap: 1.2rem;
    }
    
    .best-odds-summary {
        padding: 1rem;
    }
    
    .best-odds-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .simple-pair-card {
        min-width: 160px;
        max-width: 180px;
    }
    
    .unified-paired-betting {
        gap: 1.2rem;
    }
    
    .unified-bookmaker-card {
        min-width: 180px;
        max-width: 200px;
        padding: 1rem;
    }
    
    .vs-bet {
        padding: 0.8rem;
    }
    
    .team-odds {
        font-size: 1.2rem;
    }
    
    .spread-group-card {
        min-width: 240px;
        max-width: 280px;
        padding: 1rem;
    }
    
    .spread-bookmaker-row {
        padding: 0.6rem;
    }
    
    .spread-bet {
        padding: 0.5rem;
    }
    
    .spread-team-odds {
        font-size: 1rem;
    }
    
    .comparison-header {
        grid-template-columns: 140px repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .comparison-row {
        grid-template-columns: 140px repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .bookmaker-header,
    .outcome-header {
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .outcome-cell {
        padding: 0.6rem 0.3rem;
    }
    
    .cell-odds {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .game-info-header {
        padding: 1rem;
    }
    
    .group-title {
        font-size: 1.3rem;
    }
    
    .market-card {
        padding: 1rem;
    }
    
    .outcome-section {
        padding: 0.8rem;
    }
    
    .outcome-section-title {
        font-size: 1rem;
    }
    
    .bookmaker-card {
        min-width: 120px;
        max-width: 140px;
        padding: 0.6rem;
    }
    
    .bookmaker-name {
        font-size: 0.8rem;
    }
    
    .bookmaker-odds {
        font-size: 1rem;
    }
    
    .best-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }
    
    .best-odds-summary {
        padding: 0.8rem;
    }
    
    .best-odds-header h4 {
        font-size: 1.1rem;
    }
    
    .best-team-odds {
        font-size: 1.2rem;
    }
    
    .simple-pair-card {
        min-width: 140px;
        max-width: 160px;
        padding: 0.8rem;
    }
    
    .sportsbook-name {
        font-size: 0.9rem;
    }
    
    .bet-odds {
        font-size: 1rem;
    }
    
    .comparison-header {
        grid-template-columns: 120px repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .comparison-row {
        grid-template-columns: 120px repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .bookmaker-header,
    .outcome-header {
        padding: 0.6rem 0.3rem;
        font-size: 0.7rem;
    }
    
    .outcome-cell {
        padding: 0.5rem 0.2rem;
    }
    
    .cell-odds {
        font-size: 0.9rem;
    }
    
    .bookmaker-name {
        font-size: 0.8rem;
    }
}

.status-live i {
    color: #dc3545 !important;
    animation: pulse 2s infinite;
}

.status-upcoming,
.status-scheduled {
    color: #ffc107 !important;
}

.status-upcoming i,
.status-scheduled i {
    color: #ffc107 !important;
}

.status-completed {
    color: #28a745 !important;
}

.status-completed i {
    color: #28a745 !important;
}

.status-cancelled,
.status-postponed {
    color: #6c757d !important;
}

.status-cancelled i,
.status-postponed i {
    color: #6c757d !important;
}

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

/* Responsive design for game details */
@media (max-width: 768px) {
    .game-meta-info {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .outcomes-grid {
        grid-template-columns: 1fr;
    }
    
    .market-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .market-title {
        font-size: 1.2rem;
    }
    
    .outcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.event-time {
    color: #ccc;
    font-size: 0.9rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.8), rgba(255, 100, 100, 0.8));
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 0, 0.6);
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
    box-shadow: 
        0 0 10px rgba(255, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: live-pulse 2s ease-in-out infinite;
    margin-left: 0.5rem;
}

@keyframes live-pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
        box-shadow: 
            0 0 10px rgba(255, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
        box-shadow: 
            0 0 20px rgba(255, 0, 0, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.inline-score {
    color: #ff8800;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.9em;
    text-shadow: 0 0 5px rgba(255, 136, 0, 0.5);
    margin-left: 0.5rem;
}

.game-time-small {
    color: #aaa;
    font-family: 'Orbitron', monospace;
    font-size: 0.8em;
    margin: 0.3rem 0;
    opacity: 0.8;
}

.bookmaker-odds {
    margin: 0.5rem 0;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.bookmaker-name {
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.outcomes {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.outcome {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid #2196F3;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.outcome:hover {
    background: rgba(33, 150, 243, 0.4);
    transform: scale(1.05);
}

.arbitrage-card {
    background: 
        linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(40, 40, 40, 0.8)),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0, 255, 255, 0.02) 2px, rgba(0, 255, 255, 0.02) 4px);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 0.6rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-height: 60px;
}

.arbitrage-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(0, 255, 255, 0.2),
        0 0 30px rgba(0, 102, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: #00ffff;
}

.arbitrage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.profit-badge {
    background: linear-gradient(45deg, #00ffff, #0066ff);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.95rem;
    text-shadow: none;
}

.arbitrage-bets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.arb-bet {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.4rem;
    border-radius: 8px;
    border-left: 3px solid #00ffff;
}

/* Compact Arbitrage Styles */
.arbitrage-card.compact {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.arb-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.arb-event-info {
    flex: 1;
    min-width: 0;
}

.arb-event-name {
    font-size: 1rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.arb-market-name {
    font-size: 0.85rem;
    color: #e0e0e0;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.arb-game-time {
    font-size: 0.8rem;
    color: #aaa;
}

.arb-profit-info {
    text-align: right;
    flex-shrink: 0;
}

.profit-badge.compact {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: block;
}

.arb-implied-prob {
    font-size: 0.75rem;
    color: #aaa;
}

.arb-bets-compact {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.arb-bet-compact {
    flex: 1;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.6rem;
    border-radius: 6px;
    border-left: 3px solid #00ffff;
}

.arb-bet-selection {
    font-weight: bold;
    color: #00ffff;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.arb-bet-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.arb-bookmaker {
    color: #e0e0e0;
    font-weight: 600;
}

.arb-odds {
    color: #00ffff;
    font-weight: bold;
}

.arb-stake {
    color: #0066ff;
    font-weight: bold;
}

.arb-actions-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.arb-quick-actions {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.btn-xs {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    border-radius: 4px;
}

.arbitrage-calculator.compact {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.bet-input-card.compact {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
}

.bet-input-header {
    font-size: 0.85rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 0.4rem;
}

.stake-input-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stake-input-inline input {
    flex: 1;
    max-width: 80px;
    padding: 0.3rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.7);
    color: #e0e0e0;
}

.potential-payout-inline {
    font-size: 0.8rem;
    color: #00ffff;
    font-weight: bold;
    min-width: 60px;
    text-align: right;
}

.calculation-summary.compact {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.8rem;
}

.positive-ev-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.2));
    border: 2px solid #FFC107;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.positive-ev-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.ev-badge {
    background: linear-gradient(45deg, #FFC107, #FF9800);
    color: #000;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.bets-list {
    display: grid;
    gap: 1rem;
}

/* Low Holds Specific Styles */
.arbitrage-card.low-holds {
    background: 
        linear-gradient(145deg, rgba(20, 20, 30, 0.95), rgba(30, 40, 50, 0.8)),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0, 102, 255, 0.03) 2px, rgba(0, 102, 255, 0.03) 4px);
    border: 2px solid rgba(0, 102, 255, 0.5);
}

.arbitrage-card.low-holds:hover {
    box-shadow: 
        0 15px 40px rgba(0, 102, 255, 0.2),
        0 0 30px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: #0066ff;
}

.profit-info.low-holds .profit-percentage {
    color: #FF9800;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.6);
}

.profit-info.low-holds .profit-label {
    color: #FFB74D;
    font-weight: bold;
}

.profit-info.low-holds .total-implied {
    color: #FFA726;
}

/* Low Holds Profit Badge */
.profit-badge.low-holds {
    background: linear-gradient(45deg, #0066ff, #004499);
    color: white;
    font-weight: bold;
}

/* Low Holds Button Active State */
#low-holds-btn.active {
    background: linear-gradient(45deg, #0066ff, #004499);
    border-color: #0066ff;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
}

.bet-card {
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(30,30,30,0.9));
    border: 2px solid #2196F3;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.bet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.bet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bet-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending {
    background: #FFC107;
    color: #000;
}

.status-won {
    background: #4CAF50;
    color: #fff;
}

.status-lost {
    background: #f44336;
    color: #fff;
}

/* Arbitrage bet tracking styles */
.add-arb-bet-btn {
    margin-top: 0.5rem;
    width: 100%;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.bet-input-card {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.4);
}

.bet-input-card.primary-bet {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.bet-input-card.secondary-bet {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
}

.bet-type-label {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.bet-input-card.primary-bet .bet-type-label {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.bet-input-card.secondary-bet .bet-type-label {
    background: rgba(33, 150, 243, 0.3);
    color: #2196F3;
}

/* Positive EV Stake Modal Styles */
#ev-stake-modal .modal-content {
    max-width: 380px;
    width: 85%;
    padding: 1rem;
}

/* Manual Bet Modal Styles */
#manual-bet-modal .modal-content,
#edit-bet-modal .modal-content {
    max-width: 500px;
    width: 80%;
    padding: 1rem;
    max-height: 85vh;
    overflow-y: auto;
    margin: 7.5vh auto;
}

.modal-subtitle {
    color: #aaa;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.bet-form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bet-card-preview {
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(30,30,30,0.9));
    border: 2px solid #2196F3;
    border-radius: 15px;
    padding: 1rem;
    height: fit-content;
    margin-top: 1rem;
}

.bet-card-preview .bet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bet-card-preview .bet-header h3 {
    color: #00ffff;
    margin: 0;
    font-size: 1.1rem;
}

.bet-card-preview .bet-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    color: #e0e0e0;
    font-size: 0.85rem;
}

.bet-card-preview .bet-details > div {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bet-card-preview .bet-details > div:last-child {
    border-bottom: none;
}

.form-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-sections .form-group {
    margin-bottom: 1rem;
}

.form-sections .form-group:last-child {
    grid-column: span 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bet-form-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-sections {
        grid-template-columns: 1fr;
    }
    
    .form-sections .form-group:last-child {
        grid-column: span 1;
    }
}

#ev-stake-modal h2 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.ev-bet-summary {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #FFC107;
    border-radius: 6px;
    padding: 0.6rem;
    margin-bottom: 0.8rem;
}

.ev-bet-info h4 {
    color: #FFC107;
    margin: 0 0 0.6rem 0;
    font-size: 1rem;
}

.bet-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
    font-size: 0.8rem;
}

#ev-stake-modal .form-group {
    margin-bottom: 0.8rem;
}

#ev-stake-modal .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

#ev-stake-modal .form-help {
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.form-help {
    color: #aaa;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

#ev-stake-modal .calculation-preview {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    border-radius: 6px;
    padding: 0.6rem;
    margin-top: 0.8rem;
}

#ev-stake-modal .calculation-preview h4 {
    color: #4CAF50;
    margin: 0 0 0.6rem 0;
    font-size: 0.95rem;
}

#ev-stake-modal .calc-row {
    padding: 0.2rem 0;
    font-size: 0.85rem;
}

#ev-stake-modal .calc-row.profit {
    font-size: 0.9rem;
    margin-top: 0.3rem;
    padding-top: 0.5rem;
}

#ev-stake-modal .modal-buttons {
    margin-top: 1rem;
}

#ev-stake-modal .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.calculation-preview {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.calculation-preview h4 {
    color: #4CAF50;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row.profit {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.calc-value {
    font-weight: bold;
    color: #fff;
}

.calc-value.positive {
    color: #4CAF50;
}

.calc-value.negative {
    color: #f44336;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Odds modification styles */
.odds-modified {
    border-color: #FFC107 !important;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3) !important;
    background: rgba(255, 193, 7, 0.1) !important;
}

.odds-change, .ev-change {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 5px;
    margin-bottom: 0.5rem;
    padding: 0.5rem !important;
    font-weight: bold;
}

.ev-change {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.ev-badge-small {
    background: linear-gradient(45deg, #FFC107, #FF9800);
    color: #000;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.bet-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* When 6 cards can't fit, show 3 per line */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Single column on mobile */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.stat-card {
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(30,30,30,0.9));
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 0; /* Prevent cards from overflowing grid */
    width: 100%; /* Ensure cards fill their grid cell */
    box-sizing: border-box; /* Include padding and border in width */
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.stat-card h3 {
    color: #4CAF50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.stat-subtitle {
    display: block;
    margin-top: 0.5rem;
    color: #aaa;
    font-size: 0.8rem;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value.positive {
    color: #4CAF50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.stat-value.negative {
    color: #f44336;
    text-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

/* Enhanced button styling for bet management */
.btn-info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
}

.btn-info:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d32f2f, #c62828);
    transform: translateY(-1px);
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-card {
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(30,30,30,0.9));
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 1.5rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    margin: 5% auto;
    padding: 2rem;
    border: 2px solid #4CAF50;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Compact modal for short notifications */
.modal-content-compact {
    max-width: 400px;
    width: 60%;
    padding: 1rem 1.5rem;
    margin: 15% auto;
    text-align: center;
    min-height: auto;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content-compact h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    line-height: 1.2;
}

.modal-content-compact #notification-message {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.modal-content-compact #notification-message p {
    margin: 0;
}

.modal-content-compact .modal-buttons {
    margin: 0.75rem 0 0 0;
}

.modal-content-compact .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.modal-content-compact .close {
    top: 0.5rem;
    right: 0.75rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #fff;
}

.auth-container {
    margin-top: 1rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(45deg, #4CAF50, #45a049);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    color: #4CAF50;
    text-align: center;
    margin-bottom: 1.5rem;
}

.privacy-note {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    padding: 0.5rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4CAF50;
    font-weight: bold;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn:hover {
    background: linear-gradient(45deg, #5CBF60, #4CAF50);
    transform: translateY(-2px);
}

.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #4CAF50;
}

.hidden {
    display: none !important;
}

.auth-required {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.auth-required p {
    font-size: 1.2rem;
    color: #ccc;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-items {
        justify-content: center;
        gap: 0.3rem;
    }
    
    .nav-item {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 12px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .odds-card {
        flex-direction: column;
        gap: 1.5rem;
        min-height: auto;
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .odds-left-panel {
        flex: none;
    }
    
    .odds-right-panel {
        overflow-x: auto;
    }
    
    .odds-table {
        min-width: 600px;
    }
    
    .best-odds-section {
        margin-bottom: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Database Explorer Styles */
.clickable-row {
    transition: all 0.2s ease;
}

.clickable-row:hover {
    background-color: rgba(0, 255, 255, 0.1) !important;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.2);
}

.table-source-indicator {
    background-color: rgba(255, 165, 0, 0.1);
    font-weight: bold;
}

/* Detailed View Modal */
.details-header {
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.details-header h4 {
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.bookmakers-section {
    margin: 1.5rem 0;
}

.bookmaker-card {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
}

.bookmaker-card h6 {
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.bookmaker-card ul {
    list-style: none;
    padding-left: 1rem;
}

.bookmaker-card li {
    margin: 0.25rem 0;
    color: #ccc;
}

.events-list ul {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

.events-list li {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem;
    margin: 0.5rem 0;
}

.json-display {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.raw-data-section, .row-data-section {
    margin-top: 1.5rem;
}

.help-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Table styling improvements */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid #333;
    font-weight: bold;
}

.table td {
    padding: 0.75rem;
    border-bottom: 1px solid #333;
    vertical-align: top;
}

.table-striped tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 255, 255, 0.05);
}

/* Admin Panel Styles */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.admin-card {
    background: linear-gradient(145deg, rgba(25, 25, 35, 0.9), rgba(45, 45, 55, 0.8));
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0; /* Remove padding here, add to header/body */
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.5);
}

.admin-card-full-width {
    grid-column: 1 / -1; /* Make card span full width if in a grid */
    /* If not in a grid, it should behave like a normal block, taking available width.
       We can add width: 100%; if it's not already behaving as such,
       but usually, a div will take full width by default if its parent allows.
       Let's assume default block behavior is sufficient for now, or it's handled by .admin-card. */
}

/* Remove old settings-section-header and settings-divider as they are replaced by sub-card structure */
/*
.settings-section-header { ... }
.settings-divider { ... }
*/

/* New Sub-Card Styles */
.settings-sub-card {
    background: rgba(20, 20, 30, 0.5); /* Subtle dark background */
    border: 1px solid rgba(0, 255, 255, 0.2); /* Cyan border */
    border-radius: 8px; /* Rounded corners */
    margin-bottom: 1.5rem; /* Space between sub-cards */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 255, 0.05) inset; /* Soft drop shadow + inner glow */
    overflow: hidden; /* To contain headers and bodies properly */
}

.settings-sub-card:last-child {
    margin-bottom: 0;
}

/* Optional: Transparent card for button containers if needed */
.settings-sub-card.transparent-card {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Sub-card headers (re-using .data-source-header structure) */
.settings-sub-card .data-source-header {
    background: rgba(0, 255, 255, 0.05); /* Slight highlight for header */
    padding: 0.75rem 1rem; /* Adjusted padding */
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.settings-sub-card .data-source-header .toggle-label .toggle-text {
    font-size: 1rem; /* Slightly larger text for sub-card titles */
    font-weight: 600;
    color: #00ffff; /* Cyan color for titles */
}
.settings-sub-card .data-source-header .toggle-label .toggle-text .fas {
    margin-right: 0.5rem;
    font-size: 1em;
}


/* Styles for headers in sub-cards that don't have a toggle (e.g., Manual Triggers) */
.settings-sub-card .data-source-header.no-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align title to the left */
}

.settings-section-header.sub-card-section-header {
    font-family: 'Orbitron', monospace;
    color: #00ffff; /* Cyan to match other headers */
    font-size: 1rem; /* Match toggle text size */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0; /* Remove default h4 margins */
    padding: 0; /* Remove default h4 padding */
    border-bottom: none; /* No border needed as header has it */
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.settings-section-header.sub-card-section-header .fas {
    font-size: 1em;
}


/* Sub-card body (re-using .data-source-settings structure) */
.settings-sub-card .data-source-settings {
    padding: 1rem 1.5rem 1.5rem 1.5rem; /* More padding for content area */
}

/* Input Field Redesign */
.admin-card .form-group label {
    color: #00ffff;
    font-size: 0.9rem; /* Slightly smaller label */
    margin-bottom: 0.3rem; /* Reduced space */
    display: flex; /* Align icon with text */
    align-items: center;
    gap: 0.4rem;
}
.admin-card .form-group label .fas {
    font-size: 0.9em;
    opacity: 0.8;
}


.input-wrapper {
    position: relative;
    display: flex; /* Use flex to align input and unit */
}

.input-wrapper .admin-input {
    padding-right: 70px !important; /* Space for the unit */
    flex-grow: 1; /* Input takes available space */
    border-top-right-radius: 0 !important; /* Align with unit span */
    border-bottom-right-radius: 0 !important;
}

.input-unit {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    background: rgba(0, 0, 0, 0.5); /* Darker part of the input */
    color: #aaa;
    font-size: 0.9rem;
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-left: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    pointer-events: none; /* Makes it non-interactive */
}

/* Focus state for admin inputs */
.admin-input:focus,
.admin-select:focus { /* Added admin-select for consistency if used elsewhere */
    outline: none;
    border-color: #00ffff !important; /* Cyan glow */
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3) inset !important;
}
/* Ensure focus on wrapper also highlights unit consistently if needed, though input focus is primary */
.input-wrapper:focus-within .admin-input {
    border-color: #00ffff !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3) inset !important;
}
.input-wrapper:focus-within .input-unit {
    border-color: #00ffff !important;
    color: #00ffff; /* Highlight unit text on focus */
}


.human-readable-time {
    display: block;
    font-size: 0.75rem;
    color: #888; /* Muted color */
    margin-top: 0.4rem;
    font-style: italic;
    padding-left: 2px; /* Slight indent */
}

/* Compact Arbitrage Layout Styles */

/* Compact Arbitrage Card */
.arbitrage-card.compact {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(40, 40, 40, 0.8));
    border: 2px solid rgba(0, 255, 255, 0.4);
    min-height: auto;
    transition: all 0.3s ease;
}

.arbitrage-card.compact:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 30px rgba(0, 255, 255, 0.2),
        0 0 25px rgba(0, 102, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: #00ffff;
}

/* Compact Header */
.arb-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.arb-event-info {
    flex: 1;
    min-width: 0;
}

.arb-event-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 1.6px rgba(0, 255, 255, 0.4);
}

.arb-game-time {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.25rem;
}

.arb-opportunities-count {
    font-size: 0.8rem;
    color: #0066ff;
    font-weight: 600;
}

.arb-best-profit {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.profit-badge.compact {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    background: linear-gradient(45deg, #00ffff, #0066ff);
    color: #000;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.3);
}

.profit-badge.compact.low-holds {
    background: linear-gradient(45deg, #0066ff, #004499);
    color: white;
}

.arb-implied-prob {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
}

/* Opportunities List */
.arb-opportunities-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.arb-opportunity-compact {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.arb-opportunity-compact:hover {
    border-color: rgba(0, 255, 255, 0.4);
    background: rgba(0, 255, 255, 0.05);
}

.arb-opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.arb-market-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.arb-market-name {
    font-weight: bold;
    color: #00ffff;
    font-size: 0.9rem;
}

.arb-market-desc {
    font-size: 0.8rem;
    color: #aaa;
}

.arb-profit-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.profit-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.implied-prob {
    font-size: 0.75rem;
    color: #888;
}

/* Compact Bets */
.arb-bets-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.arb-bet-compact {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.6rem;
    border-left: 3px solid #00ffff;
}

.arb-bet-selection {
    font-weight: bold;
    color: #00ffff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.arb-bet-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.arb-bet-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.arb-bookmaker {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.85rem;
}

.arb-odds {
    color: #00ffff;
    font-weight: bold;
    font-size: 1rem;
    font-family: 'Orbitron', monospace;
}

.arb-bet-stake {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.arb-stake-percentage {
    color: #0066ff;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Compact Actions */
.arb-actions-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.arb-quick-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.btn-xs {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-xs:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.arb-timing-info {
    text-align: right;
}

.time-to-start {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 500;
}

/* Compact Calculator */
.arb-calculator-compact {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
}

.calculator-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stake-input-section-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stake-input-label-compact {
    color: #00ffff;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 80px;
}

.stake-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
}

.currency-symbol {
    color: #00ffff;
    font-weight: bold;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 255, 255, 0.1);
    border-right: 1px solid rgba(0, 255, 255, 0.3);
}

.stake-input-compact {
    border: none;
    background: transparent;
    color: #e0e0e0;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 100px;
    outline: none;
}

.stake-input-compact:focus {
    color: #00ffff;
}

.bet-stakes-compact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bet-stake-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.bet-stake-row:last-child {
    border-bottom: none;
}

.bet-stake-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.bet-selection {
    font-weight: 600;
    color: #e0e0e0;
}

.bet-bookmaker {
    color: #aaa;
    font-size: 0.8rem;
}

.bet-stake-amount {
    color: #00ffff;
    font-weight: bold;
    margin: 0 0.75rem;
}

.bet-payout {
    color: #00ff88;
    font-weight: bold;
    min-width: 80px;
    text-align: right;
}

.profit-summary-compact {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.6rem;
}

.profit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    font-size: 0.85rem;
}

.profit-row.profit-final {
    font-weight: bold;
    font-size: 0.95rem;
    margin-top: 0.3rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.profit-row .positive {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.profit-row .negative {
    color: #ff4444;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.4);
}

/* Success Notification Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Design for Compact Layout */
@media (max-width: 768px) {
    .arb-header-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .arb-best-profit {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .arb-bets-compact {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .arb-bet-details {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .arb-bet-stake {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .arb-actions-compact {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .arb-quick-actions {
        justify-content: center;
    }
    
    .arb-timing-info {
        text-align: center;
    }
    
    .stake-input-section-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .stake-input-label-compact {
        min-width: auto;
        text-align: center;
    }
    
    .bet-stake-row {
        flex-direction: column;
        gap: 0.3rem;
        align-items: stretch;
        text-align: left;
    }
    
    .bet-payout {
        text-align: left;
        min-width: auto;
    }
}

/* New Compact Horizontal Arbitrage Layout */
.arbitrage-card.compact-layout {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(40, 40, 40, 0.8));
    border: 2px solid rgba(0, 255, 255, 0.4);
    min-height: auto;
    transition: all 0.3s ease;
}

.arbitrage-card.compact-layout:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 255, 255, 0.2),
        0 0 20px rgba(0, 102, 255, 0.1);
    border-color: #00ffff;
}

.market-info {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #bbb;
}

.compact-arbitrage-layout {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin-top: 0.75rem;
}

.compact-bet-container {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 0.75rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.compact-bet-container.primary-bet {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(0, 255, 255, 0.05);
}

.compact-bet-container.secondary-bet {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.bet-info {
    margin-bottom: 0.75rem;
    text-align: center;
}

.bet-selection-compact {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #00ffff;
    font-size: 0.95rem;
    line-height: 1.2;
}

.bet-details-compact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.bet-bookmaker {
    color: #fff;
    font-weight: 600;
}

.bet-odds {
    color: #00ff80;
    font-weight: bold;
}

.bet-stake-percent {
    color: #aaa;
    font-size: 0.8rem;
}

.stake-controls-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stake-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    overflow: hidden;
}

.currency-symbol {
    padding: 0.5rem 0.75rem;
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    font-weight: bold;
    border-right: 1px solid rgba(0, 255, 255, 0.3);
}

.stake-input {
    flex: 1;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    outline: none;
}

.stake-input:focus {
    background: rgba(0, 255, 255, 0.05);
}

.auto-payout.compact {
    font-size: 0.8rem;
    color: #00ff80;
    text-align: center;
    padding: 0.25rem;
    background: rgba(0, 255, 80, 0.1);
    border-radius: 3px;
}

.track-bet-btn.compact {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
    background: linear-gradient(145deg, #00aa44, #00cc55);
    border: 1px solid #00ff66;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track-bet-btn.compact:hover {
    background: linear-gradient(145deg, #00cc55, #00dd66);
    transform: translateY(-1px);
}

.center-profit-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    max-width: 140px;
}

.auto-profit-summary.centered {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.profit-display.vertical {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.profit-label {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 500;
}

.profit-amount {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00ff80;
    font-family: 'Orbitron', monospace;
}

.profit-percentage {
    font-size: 0.9rem;
    color: #00ffff;
    font-weight: 600;
}

/* Point display styling */
.point-value, .point-display {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    font-weight: normal;
}

/* Enhanced point display for compact layout */
.point-spread {
    background: linear-gradient(145deg, rgba(255, 165, 0, 0.3), rgba(255, 140, 0, 0.2));
    color: #ffa500;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 0.5rem;
    border: 1px solid rgba(255, 165, 0, 0.4);
    text-shadow: 0 0 4px rgba(255, 165, 0, 0.3);
}

.point-total {
    background: linear-gradient(145deg, rgba(0, 255, 80, 0.3), rgba(0, 200, 60, 0.2));
    color: #00ff50;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 0.5rem;
    border: 1px solid rgba(0, 255, 80, 0.4);
    text-shadow: 0 0 4px rgba(0, 255, 80, 0.3);
}

.point-value {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.3), rgba(0, 200, 255, 0.2));
    color: #00ffff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 0.5rem;
    border: 1px solid rgba(0, 255, 255, 0.4);
    text-shadow: 0 0 4px rgba(0, 255, 255, 0.3);
}

/* Additional Markets Row-Based Scrolling Styling */
.additional-market-container {
    margin-bottom: 1.5rem;
    background: linear-gradient(145deg, rgba(25, 25, 25, 0.95), rgba(15, 15, 15, 0.8));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.additional-market-header {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.1), rgba(0, 150, 255, 0.05));
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.additional-market-header h4 {
    margin: 0;
    color: #00ffff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 1.6px rgba(0, 255, 255, 0.4);
}

.additional-market-header h4 i {
    margin-right: 0.5rem;
    color: #00ffff;
}

.outcome-count {
    font-size: 0.85rem;
    color: #aaa;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Selections List Styling */
.selections-list {
    padding: 1rem;
}

.selection-row {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.selection-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.selection-name {
    font-size: 1rem;
    font-weight: 600;
    color: #00ffff;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 1.6px rgba(0, 255, 255, 0.4);
}

/* Individual Row Scrolling Container */
.bookmakers-scroll-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.4) rgba(0, 0, 0, 0.2);
    max-width: 100%;
    width: 100%;
}

.bookmakers-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.bookmakers-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin: 0 0.5rem;
}

.bookmakers-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.5), rgba(0, 200, 255, 0.7));
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.bookmakers-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.7), rgba(0, 200, 255, 0.9));
}

.bookmakers-odds-list {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    min-width: fit-content;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Bookmaker Odds Cards */
.bookmaker-odds-card {
    min-width: 150px;
    flex-shrink: 0;
    max-width: 160px;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.9), rgba(20, 20, 20, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.bookmaker-odds-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.bookmaker-odds-card.best-odds {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.15), rgba(255, 200, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.bookmaker-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookmaker-odds-card.best-odds .bookmaker-name {
    color: #ffd700;
}

.odds-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00ff80;
    font-family: 'Orbitron', monospace;
    margin-bottom: 0.25rem;
}

.bookmaker-odds-card.best-odds .odds-price {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.best-indicator {
    font-size: 0.7rem;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
    margin-top: 0.25rem;
}


/* Mobile responsiveness for additional markets */
@media (max-width: 768px) {
    .additional-market-container {
        margin-bottom: 1rem;
    }
    
    .additional-market-header {
        padding: 0.5rem 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .additional-market-header h4 {
        font-size: 0.9rem;
    }
    
    .outcome-count {
        font-size: 0.75rem;
    }
    
    .selections-list {
        padding: 0.75rem;
    }
    
    .selection-row {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .selection-name {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        padding: 0.25rem 0;
    }
    
    .bookmaker-odds-card {
        min-width: 120px;
        max-width: 140px;
        padding: 0.5rem;
    }
    
    .bookmaker-name {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
    }
    
    .odds-price {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .best-indicator {
        font-size: 0.65rem;
        margin-top: 0.2rem;
    }
    
    .bookmakers-scroll-container::-webkit-scrollbar {
        height: 6px;
    }
    
    .bookmakers-odds-list {
        gap: 0.75rem;
        padding: 0.25rem 0;
    }
}

/* Responsive adjustments for compact layout */
@media (max-width: 768px) {
    .compact-arbitrage-layout {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .center-profit-display {
        order: -1;
        min-width: auto;
        max-width: none;
    }
    
    .auto-profit-summary.centered {
        padding: 0.5rem;
    }
    
    .compact-bet-container {
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .arbitrage-card.compact {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .arb-event-name {
        font-size: 1rem;
    }
    
    .profit-badge.compact {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .site-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .stake-inputs-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .stake-input-card {
        padding: 0.6rem;
    }
    
    .profit-display {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    /* Game Details Mobile Responsive */
    .game-details-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .teams-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team-info {
        padding: 0;
    }
    
    .team-name {
        font-size: 1.4rem;
    }
    
    .team-score {
        font-size: 2rem;
    }
    
    .team-logo {
        width: 60px;
        height: 60px;
        margin: 0.5rem auto;
    }
    
    .game-status-center {
        padding: 0;
        order: -1;
    }
    
    .game-meta-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .meta-stat {
        padding: 0.6rem;
    }
    
    .table-header {
        padding: 1rem;
    }
    
    .table-header h3 {
        font-size: 1.2rem;
    }
    
    .markets-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .markets-table {
        min-width: 600px;
    }
    
    .markets-table thead th {
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .markets-table tbody td {
        padding: 0.6rem 0.5rem;
    }
    
    .market-name {
        font-size: 0.85rem;
    }
    
    .selection-name {
        font-size: 0.8rem;
    }
    
    .odds-value {
        font-size: 0.85rem;
        padding: 0.2rem 0.4rem;
    }
    
    .other-markets-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .arb-opportunity-compact {
        padding: 0.6rem;
    }
    
    .arb-calculator-compact {
        padding: 0.6rem;
    }
    
    .btn-xs {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .arb-quick-actions {
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* Enhanced Toggle Animations */
.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    transition: background-color 0.4s ease, border-color 0.4s ease; /* Added background-color and border-color transition */
    border: 2px solid rgba(0, 255, 255, 0.3);
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px; /* Knob size */
    height: 16px; /* Knob size */
    background: #ccc;
    border-radius: 50%;
    transition: transform 0.4s ease, background-color 0.4s ease; /* Added background-color transition for knob */
}

.toggle-label input:checked + .toggle-slider {
    background: linear-gradient(45deg, #00ffff, #00b8d4); /* Cyan gradient when active */
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.toggle-label input:checked + .toggle-slider::before {
    transform: translateX(26px); /* Movement distance */
    background: #1a1a2e; /* Darker knob for contrast on active toggle */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Improved Readability for Data Source Descriptions */
.data-source-desc {
    font-size: 0.88rem; /* Slightly larger */
    color: #bbb; /* Brighter than #aaa */
    font-style: italic;
    text-align: right; /* Align to the right if space allows */
    flex-grow: 1; /* Allow it to take space if header is flex */
    margin-left: 1rem; /* Add some space from the toggle text */
}


.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-tab-btn {
    background: 
        linear-gradient(145deg, rgba(40, 40, 40, 0.8), rgba(60, 60, 60, 0.6)),
        linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(0, 102, 255, 0.1));
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: #e0e0e0;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.admin-tab-btn:hover {
    background: 
        linear-gradient(145deg, rgba(60, 60, 60, 0.9), rgba(80, 80, 80, 0.7)),
        linear-gradient(45deg, rgba(0, 255, 255, 0.2), rgba(0, 102, 255, 0.2));
    border-color: #00ffff;
    color: #00ffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.admin-tab-btn.active {
    background: 
        linear-gradient(145deg, rgba(0, 255, 255, 0.2), rgba(0, 102, 255, 0.2)),
        linear-gradient(45deg, rgba(80, 80, 80, 0.8), rgba(60, 60, 60, 0.9));
    border: 2px solid #0066ff;
    color: #0066ff;
    text-shadow: 0 0 2px #0066ff;
    box-shadow: 
        0 0 20px rgba(0, 102, 255, 0.4),
        inset 0 0 20px rgba(0, 102, 255, 0.1);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

.admin-card-header {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.1), rgba(0, 102, 255, 0.1));
    padding: 1rem 1.5rem;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
    border-top-left-radius: 10px; /* Match card's border-radius */
    border-top-right-radius: 10px; /* Match card's border-radius */
}

.admin-card-header h3 {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.admin-card-header h3 .fas {
    font-size: 1.2em; /* Make icon slightly larger than text */
}

.admin-card-body {
    padding: 1.5rem;
    flex-grow: 1; /* Allow body to take remaining space */
}

.admin-card-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.admin-card-body p strong {
    color: #00ffff;
    font-weight: bold;
}

.admin-card .form-group {
    margin-bottom: 1.5rem;
}

.admin-card .form-group label {
    color: #00ffff; /* Brighter labels for admin panel */
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.admin-card .current-value {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
    margin-top: -0.25rem; /* Pull closer to label */
}

.admin-card .current-value span {
    font-weight: bold;
    color: #e0e0e0;
}

.admin-input, .admin-select {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid rgba(0, 255, 255, 0.4) !important;
    color: #e0e0e0 !important;
    padding: 0.75rem !important;
    border-radius: 6px !important;
    width: 100%;
    transition: all 0.3s ease;
}

.admin-input:focus, .admin-select:focus {
    outline: none;
    border-color: #0066ff !important;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.4) !important;
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group .admin-input {
    flex-grow: 1;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important; /* Avoid double border */
}

.input-group .admin-select { /* For select within input-group if needed */
    flex-grow: 1;
}

.input-group .input-group-text {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-left: none;
    padding: 0.75rem;
    color: #aaa;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.input-group button.btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    box-shadow: none; /* remove individual button shadow if it's part of group */
}
.input-group input.admin-input + button.btn { /* Ensure button is same height as input */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    height: calc(1.5rem + 1.5rem + 4px); /* text + padding + border */
}

/* Toggle Switch Styles for Data Source Controls */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
}

.toggle-label input[type="checkbox"] {
    display: none; /* Hide default checkbox */
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 255, 255, 0.3);
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-label input:checked + .toggle-slider {
    background: linear-gradient(45deg, #00ffff, #0066ff);
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.toggle-label input:checked + .toggle-slider::before {
    transform: translateX(26px);
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.toggle-text {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.95rem;
}

.toggle-description {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.25rem;
    margin-left: 66px; /* Align with toggle text */
    font-style: italic;
    line-height: 1.3;
}

/* Data Source Section Styles */
.data-source-section {
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
}

.data-source-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.data-source-header .toggle-label {
    margin-bottom: 0;
    padding: 0;
}

.data-source-desc {
    font-size: 0.85rem;
    color: #aaa;
    font-style: italic;
}

.data-source-settings {
    padding: 1rem;
    transition: all 0.3s ease;
}

.data-source-settings.disabled {
    opacity: 0.4;
    pointer-events: none;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.info-text {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
    padding: 0.5rem 0;
}

.info-text i {
    margin-right: 0.5rem;
    color: #00ffff;
}

.admin-card .btn-block {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.db-explorer-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-results-container {
    margin-top: 1.5rem;
    overflow-x: auto; /* Ensure table is scrollable if too wide */
}

/* Adjustments for existing table styles within admin context if needed */
#admin-tab .table th {
    background: rgba(0, 255, 255, 0.15); /* Slightly more pronounced header for admin tables */
    color: #00ffff;
}

#admin-tab .table td {
    border-color: rgba(0, 255, 255, 0.15);
}

#admin-tab .table-hover tbody tr:hover {
    background-color: rgba(0, 255, 255, 0.1);
}

#admin-tab .results-info {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #ccc;
    padding: 0.5rem;
    background: rgba(0,0,0,0.3);
    border-left: 3px solid #00ffff;
    border-radius: 4px;
}

/* Filter Page Specific Styles */
.filter-form-container.card, .current-filters-container.card {
    max-width: 700px; /* Max width for the form and list containers */
    margin: 20px auto; /* Center the containers */
    background: rgba(20, 20, 30, 0.85); /* Slightly different background for emphasis */
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 1.5rem; /* Standardized padding */
}

.filter-form-container h3, .current-filters-container h3 {
    color: #00ffff;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 0.75rem;
}

#sportsbooks-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    gap: 15px; /* Increased gap for better spacing */
    padding: 10px 0; /* Padding around the checkbox area */
    margin-bottom: 1.5rem; /* Space before the submit button */
}

.checkbox-label {
    display: flex; /* Align checkbox and text nicely */
    align-items: center;
    padding: 10px; /* More padding inside each checkbox item */
    border: 1px solid #444;
    border-radius: 6px; /* Slightly more rounded */
    background-color: #333;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.checkbox-label:hover {
    background-color: #3a3a3a;
    border-color: #00ffff;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px; /* Space between checkbox and label text */
    accent-color: #00ffff; /* Style the checkbox itself */
    width: 18px;
    height: 18px;
}

#filter-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
}

#filter-message.success {
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

#filter-message.error {
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

.filter-item.card {
    background-color: #2a2a3a; /* Darker background for individual filter items */
    border: 1px solid #555;
    margin-bottom: 1rem;
    padding: 1rem;
}

.filter-item h4 {
    color: #0066ff; /* Magenta for filter names */
    margin-bottom: 0.5rem;
}

.filter-item p {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}
.filter-item p small {
    color: #aaa;
}

.auth-required-filters p {
    text-align: center;
    font-size: 1.1rem;
    color: #ccc;
}
.auth-required-filters a {
    color: #00ffff;
    text-decoration: underline;
}

/* Connection Status Indicator */
.connection-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    margin-right: 10px;
    border: 1px solid;
    white-space: nowrap;
    user-select: none;
    cursor: help;
    transition: all 0.3s ease;
}

.connection-status.connected {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

.connection-status.disconnected {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Update Notifications */
.update-notification {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #34d399;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Live Score Updates Animation */
.score-updated {
    animation: scoreUpdate 1s ease-out;
}

@keyframes scoreUpdate {
    0% {
        background-color: rgba(34, 197, 94, 0.3);
        transform: scale(1.05);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

/* Show connection status when user is logged in */
.user-info:not(.hidden) ~ #connection-status,
#user-info:not(.hidden) + .connection-status {
    display: block !important;
}

/* Player Props Styling */
.player-prop-card {
    border-left: 4px solid #00ccff !important;
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.1), rgba(0, 102, 255, 0.05));
}

.player-prop-details {
    padding: 0.75rem 0;
}

.player-prop-details .player-name {
    font-size: 1.1em;
    color: #00ccff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.player-prop-details .prop-info {
    font-size: 1em;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.player-prop-details .bet-source {
    font-size: 0.9em;
    color: #b0b0b0;
}

.point-value {
    display: inline-block;
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
    margin-left: 0.5rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.point-display {
    color: #00ccff;
    font-size: 0.9em;
    font-weight: 500;
}

.player-prop-bet {
    border-left: 3px solid #00ccff;
    background: rgba(0, 204, 255, 0.05);
}

.player-prop-bet-header {
    margin-bottom: 0.5rem;
}

.player-prop-bet-header strong {
    color: #00ccff;
    font-size: 1em;
}

.prop-selection {
    color: #ffffff;
    font-weight: 500;
    margin-top: 0.25rem;
}

.player-prop-calc {
    border-left: 3px solid #00ccff;
}

.player-prop-calc .bet-input-team {
    color: #00ccff;
    font-weight: 600;
}

.ev-stats {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.75rem;
    font-size: 0.9em;
    color: #b0b0b0;
}

.ev-stats div {
    margin-bottom: 0.25rem;
}

/* Enhanced player prop indicators */
.player-prop-card::before {
    content: '👤';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2em;
    opacity: 0.7;
}

.positive-ev-card, .arbitrage-card {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .connection-status {
        font-size: 10px;
        padding: 3px 6px;
        margin-right: 5px;
    }
    
    .update-notification {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .player-prop-details .player-name {
        font-size: 1em;
    }
    
    .player-prop-details .prop-info {
        font-size: 0.9em;
    }
    
    .player-prop-calc .bet-input-team {
        font-size: 0.9em;
    }
}

/* Futures Betting Styles */
.futures-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.futures-filters .filter-group {
    flex: 1;
}

.dutch-betting-info {
    margin-bottom: 1.5rem;
}


.dutch-betting-info .info-card {
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
}

.dutch-betting-info .info-card h3 {
    color: #00ccff;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dutch-betting-info .warning {
    color: #ffaa00;
    font-weight: 600;
    margin-top: 0.75rem;
}

.futures-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.futures-market-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.futures-market-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.15);
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.market-header h3 {
    color: #00ccff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.market-meta {
    font-size: 0.9rem;
    color: #aaa;
}

.bookmaker-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bookmaker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.bookmaker-header h4 {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.dutch-betting-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.total-probability {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.total-probability.profitable {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 0, 0.4);
}

.total-probability.not-profitable {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6666;
    border: 1px solid rgba(255, 100, 100, 0.4);
}

.profit-indicator {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.profit-indicator.profit {
    background: rgba(0, 255, 0, 0.3);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 0, 0.5);
}

.profit-indicator.loss {
    background: rgba(128, 128, 128, 0.2);
    color: #aaa;
    border: 1px solid rgba(128, 128, 128, 0.4);
}

.dutch-betting-note {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dutch-betting-note.profitable {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.dutch-betting-note.not-profitable {
    background: rgba(255, 165, 0, 0.1);
    color: #ffaa00;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.outcome-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.outcome-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-1px);
}

.outcome-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.outcome-odds {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00ccff;
    margin-bottom: 0.5rem;
}

.implied-probability {
    font-size: 0.85rem;
    color: #aaa;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

/* Responsive design for futures */
@media (max-width: 768px) {
    .futures-filters {
        flex-direction: column;
    }
    
    .bookmaker-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dutch-betting-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .outcomes-grid {
        grid-template-columns: 1fr;
    }
}

/* User Settings Styles */
.settings-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
}

.settings-message.success {
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.settings-message.error {
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

/* User Settings Tab Specific Styles */
#user-settings-tab {
    height: auto;
    min-height: auto;
}

#user-settings-content {
    margin-top: 0;
}

.settings-container {
    padding: 0;
    margin: 0;
}

/* Note: Tab visibility is now handled dynamically by JavaScript updateTabVisibility() function */

/* Filter Management Styles */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Filters Empty State */
.filters-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.filters-empty i {
    font-size: 4rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.filters-empty p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0;
}

.filter-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s;
}

.filter-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filter-header h4 {
    margin: 0;
    color: var(--text-primary);
}

.filter-content p {
    margin: 10px 0 5px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.sportsbook-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 5px 0 15px;
}

.sportsbook-tags .tag {
    background: var(--primary);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.filter-date {
    color: var(--text-tertiary) !important;
    font-size: 0.75rem !important;
}

/* Filter Creation Modal */
#filter-creation-modal .modal-content {
    max-width: 500px;
}

.sportsbooks-checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: var(--bg-secondary);
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

/* Floating toggle button when sidebar is hidden - Available on all screen sizes */
.floating-sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--color-cyber-surface);
    color: var(--color-cyber-primary);
    border: 1px solid var(--color-cyber-border);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: none;
}

/* Show button when sidebar is hidden on desktop */
.sidebar-layout.sidebar-hidden .floating-sidebar-toggle {
    display: block;
}

/* Default: Show button on mobile when sidebar is closed (default state) */
@media (max-width: 1023px) {
    .floating-sidebar-toggle {
        display: block;
    }
    
    /* Hide button when sidebar is open on mobile */
    .sidebar-layout:has(.sidebar-container.sidebar-open) .floating-sidebar-toggle {
        display: none;
    }
}

.floating-sidebar-toggle:hover {
    background: var(--color-cyber-hover);
    transform: scale(1.05);
}

/* Desktop sidebar hiding functionality */
@media (min-width: 1024px) {
    .sidebar-layout.sidebar-hidden {
        grid-template-columns: 1fr;
    }
    
    .sidebar-layout.sidebar-hidden .sidebar-container {
        display: none;
    }
}

/* Remove text-shadow and use solid dark blue for specific page headers */
#filters-tab .section-header h2,
#positive-ev-tab .section-header h2,
#bets-tab .section-header h2,
#analytics-tab .section-header h2,
#user-settings-tab .section-header h2,
#admin-tab .section-header h2,
#alerts-tab .section-header h2 {
    text-shadow: none !important;
    color: #0066ff !important; /* Solid dark blue */
    background: none !important; /* Remove gradient */
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #0066ff !important; /* Solid dark blue fill */
    background-clip: initial !important;
    -webkit-text-stroke: 1px #003d99 !important; /* Darker blue outline */
    text-stroke: 1px #003d99 !important;
}

/* ==================== COMPACT ODDS VIEW ==================== */
/* Space-efficient best-odds-only display for main markets */

.compact-game-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.compact-game-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.1);
}

.compact-game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.compact-teams {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compact-game-link {
    color: #00ccff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.compact-game-link:hover {
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.compact-time {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
    margin-left: auto;
    text-align: right;
}

.compact-markets {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compact-market-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.compact-market-label {
    min-width: 70px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compact-odds-group {
    display: flex;
    gap: 0.75rem;
    flex: 1;
}

.compact-odds-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex: 1;
    min-width: 0;
}

.compact-odds-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-1px);
}

.compact-outcome {
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.compact-odds {
    font-size: 0.85rem;
    font-weight: 700;
    color: #00ccff;
    margin-left: auto;
}

.compact-book {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compact-book-logo {
    height: 16px;
    width: auto;
    max-width: 40px;
    object-fit: contain;
    vertical-align: middle;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    border-radius: 4px;
}

.compact-odds-item:hover .compact-book-logo {
    opacity: 1;
}

/* Live indicator in compact view */
.compact-teams .live-indicator {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    margin-left: 0;
}

/* Mobile responsiveness for compact view */
@media (max-width: 768px) {
    .compact-game-card {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
    }

    .compact-market-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .compact-market-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .compact-odds-group {
        width: 100%;
        gap: 0.5rem;
    }

    .compact-odds-item {
        padding: 0.35rem 0.5rem;
    }
}

/* Ultra-compact mode for very small screens */
@media (max-width: 480px) {
    .compact-outcome {
        font-size: 0.75rem;
    }

    .compact-odds {
        font-size: 0.8rem;
    }

    .compact-book {
        font-size: 0.6rem; /* Smaller text on mobile */
    }
    
    .compact-book-logo {
        height: 14px; /* Slightly smaller logos on mobile */
        max-width: 35px;
    }
}