/* CricketBook Pro - Main Stylesheet */
/* White & Orange Theme */

:root {
    --primary: #ffffff;
    --secondary: #f5f5f5;
    --accent: #ff6600;
    --accent-dark: #e55c00;
    --accent-green: #00d09c;
    --accent-blue: #1a73e8;
    --gold: #ff9800;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --back-color: #72bbef;
    --lay-color: #f994ba;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ff9800;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --header-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: var(--text-primary);
    min-height: 100vh;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== LIVE STREAM SECTION ==================== */
.live-stream-container {
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.live-stream-container.minimized .stream-player {
    display: none;
}

.live-stream-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
}

.stream-header {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stream-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 600;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #dc3545;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    animation: liveGlow 1.5s infinite;
}

.live-indicator i {
    font-size: 0.5rem;
    animation: blink 1s infinite;
}

@keyframes liveGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(220, 53, 69, 0.5); }
    50% { box-shadow: 0 0 15px rgba(220, 53, 69, 0.8); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.stream-controls {
    display: flex;
    gap: 10px;
}

.stream-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-btn:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.stream-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    outline: none;
}

.stream-select:hover {
    border-color: var(--accent);
}

.stream-select option {
    background: #1a1a1a;
    color: #ffffff;
}

.stream-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #ffffff;
}

.stream-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000000;
}

.stream-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stream-notice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 20px;
    text-align: center;
}

.stream-link-btn {
    transition: all 0.3s ease;
}

.stream-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.stream-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #ffffff;
}

.stream-animation {
    position: relative;
    margin-bottom: 20px;
}

.stream-animation i {
    font-size: 4rem;
    color: var(--accent);
    animation: pulse 2s infinite;
}

.signal-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.signal-waves span {
    position: absolute;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: wave 2s infinite;
}

.signal-waves span:nth-child(1) {
    width: 80px;
    height: 80px;
    margin: -40px;
    animation-delay: 0s;
}

.signal-waves span:nth-child(2) {
    width: 120px;
    height: 120px;
    margin: -60px;
    animation-delay: 0.3s;
}

.signal-waves span:nth-child(3) {
    width: 160px;
    height: 160px;
    margin: -80px;
    animation-delay: 0.6s;
}

@keyframes wave {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

.stream-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.stream-info {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.stream-options {
    display: flex;
    gap: 10px;
}

.quality-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.quality-btn:hover {
    background: rgba(255, 102, 0, 0.3);
    border-color: var(--accent);
}

.quality-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}

/* ==================== END LIVE STREAM ==================== */

/* Header Styles */
.header {
    background: var(--header-bg);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.logo i {
    color: var(--accent);
    font-size: 1.8rem;
}

.logo .pro {
    background: linear-gradient(135deg, var(--accent), #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.9rem;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #ffffff;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.balance {
    background: linear-gradient(135deg, var(--accent-green), #00a67d);
    padding: 8px 16px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.btn-deposit {
    background: var(--gold);
    color: var(--primary);
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-deposit:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-login {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-register {
    background: var(--accent);
    border: 2px solid var(--accent);
    color: white;
}

.btn-login:hover, .btn-register:hover {
    transform: scale(1.05);
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.user-avatar:hover {
    background: var(--accent);
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--secondary);
    border-radius: 10px;
    min-width: 180px;
    display: none;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: var(--accent-blue);
}

.dropdown-menu a i {
    width: 20px;
}

/* Live Ticker */
.live-ticker {
    background: linear-gradient(90deg, var(--accent), #ff6b6b);
    padding: 10px 15px;
    border-radius: 10px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.ticker-label {
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.ticker-label i {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ticker-content {
    overflow: hidden;
    flex: 1;
}

.ticker-content span {
    display: inline-block;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Content Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 20px;
    margin-top: 15px;
}

/* Sidebar */
.sidebar {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.sidebar-header {
    background: var(--accent);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #ffffff;
}

.sidebar-header.upcoming {
    background: #333333;
    margin-top: 10px;
}

.sidebar-header h3 {
    font-size: 1rem;
    color: #ffffff;
}

.sidebar-header span {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.match-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
    background: var(--card-bg);
}

.match-item:hover,
.match-item.active {
    background: #fff5ee;
}

.match-item.active {
    border-left: 3px solid var(--accent);
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.match-teams .vs {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.match-score {
    color: var(--accent);
    font-weight: bold;
    margin-top: 5px;
}

.match-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 5px;
}

.live-dot {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

/* Main Panel */
.main-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Match Score Card */
.match-score-card {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.match-series {
    color: #cccccc;
    font-size: 0.9rem;
}

.live-badge {
    background: #ff0000;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
}

.live-badge i {
    font-size: 0.6rem;
    animation: pulse 1s infinite;
}

.teams-score {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
}

.teams-score .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.team-flag {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.team-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.team-score {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
}

.team-overs {
    color: #cccccc;
    font-size: 0.9rem;
}

.teams-score .vs {
    font-size: 1.2rem;
    color: #cccccc;
    font-weight: bold;
}

.match-status {
    text-align: center;
    padding: 10px;
    background: rgba(255, 102, 0, 0.2);
    border-radius: 8px;
    color: var(--accent);
    font-weight: 500;
    margin: 10px 0;
}

.current-batsmen {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.batsman, .bowler {
    text-align: center;
}

.batsman .name, .bowler .name {
    display: block;
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.batsman .runs {
    font-weight: bold;
    color: var(--accent);
}

.bowler .figures {
    font-weight: bold;
    color: var(--gold);
}

/* Betting Tabs */
.betting-tabs {
    display: flex;
    gap: 5px;
    background: var(--card-bg);
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 12px 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: #f5f5f5;
}

.tab-btn.active {
    background: var(--accent);
    color: white;
}

/* Betting Sections */
.betting-section {
    display: none;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.betting-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.section-header h3 i {
    color: var(--accent);
}

.ball-counter, .over-counter {
    background: var(--accent);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
}

/* Ball Betting Grid */
.ball-betting-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ball-option {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--border-color);
}

.ball-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.ball-option.selected {
    border-color: var(--accent);
    background: #fff5ee;
}

.ball-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.ball-odds {
    display: block;
    color: var(--accent);
    font-weight: 600;
}

.ball-option.four {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-color: #4caf50;
}

.ball-option.four .ball-value { color: #2e7d32; }

.ball-option.six {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-color: var(--accent);
}

.ball-option.six .ball-value { color: var(--accent); }

.ball-option.wicket {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-color: #f44336;
}

.ball-option.wicket .ball-value { color: #c62828; }

.ball-option.wide {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-color: #2196f3;
}

.ball-option.wide .ball-value { color: #1565c0; }

/* Recent Balls */
.recent-balls {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.recent-balls .label {
    color: var(--text-secondary);
    font-weight: 600;
}

.balls-display {
    display: flex;
    gap: 8px;
}

.balls-display .ball {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.balls-display .ball.newest {
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.8);
    transform: scale(1.1);
}

@keyframes ballPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.ball.dot {
    background: #9e9e9e;
}

.ball.run {
    background: #1976d2;
}

.ball.four {
    background: #4caf50;
    animation: pulse 0.5s ease;
}

.ball.six {
    background: var(--accent);
    animation: pulse 0.5s ease;
}

.ball.wicket {
    background: #f44336;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Over Betting */
.over-betting-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.over-runs-bet h4, .over-events h4 {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.over-range-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.over-option {
    background: #f8f9fa;
    padding: 18px 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--border-color);
}

.over-option:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.over-option .range {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.over-option .odds {
    color: var(--accent);
    font-weight: 600;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.event-option {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.event-option .event {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
}

.odds-box {
    display: flex;
    gap: 10px;
}

.odds-box .yes, .odds-box .no {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.odds-box .yes {
    background: var(--back-color);
    color: #1a1a1a;
}

.odds-box .no {
    background: var(--lay-color);
    color: #1a1a1a;
}

.odds-box .yes:hover, .odds-box .no:hover {
    transform: scale(1.05);
}

/* Session Markets */
.session-markets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-market {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.market-title {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f0f0f0;
}

.market-title span {
    color: var(--text-primary);
    font-weight: 500;
}

.market-title .status {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 5px;
}

.status.open, .status.running {
    background: var(--accent-green);
    color: #ffffff;
}

.status.suspended {
    background: var(--warning);
    color: #ffffff;
}

.status.closed {
    background: var(--danger);
    color: #ffffff;
}

.market-odds {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.market-odds .back, .market-odds .lay {
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.market-odds .back {
    background: var(--lay-color);
    color: #1a1a1a;
}

.market-odds .lay {
    background: var(--back-color);
    color: #1a1a1a;
}

.market-odds .back:hover, .market-odds .lay:hover {
    filter: brightness(1.1);
}

.market-odds .label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: 3px;
}

.market-odds .value {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
}

.market-odds .rate {
    font-size: 0.85rem;
}

/* Match Winner */
.match-winner-markets {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.winner-market {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.team-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--border-color);
}

.team-box:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.team-box img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.team-box .name {
    display: block;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.odds-wrapper {
    display: flex;
    gap: 10px;
}

.back-odds, .lay-odds {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.back-odds {
    background: var(--back-color);
    color: #1a1a1a;
}

.lay-odds {
    background: var(--lay-color);
    color: #1a1a1a;
}

.back-odds .label, .lay-odds .label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.back-odds .value, .lay-odds .value {
    font-size: 1.2rem;
    font-weight: bold;
}

.toss-market {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.toss-market h4 {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.toss-result {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.toss-result .winner {
    font-weight: bold;
    color: var(--accent-green);
}

.toss-result .decision {
    color: var(--text-secondary);
}

/* Fancy Markets */
.fancy-markets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.fancy-market {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.fancy-market .title {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.fancy-odds {
    display: flex;
    gap: 10px;
}

.no-btn, .yes-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.no-btn {
    background: var(--lay-color);
    color: #1a1a1a;
}

.yes-btn {
    background: var(--back-color);
    color: #1a1a1a;
}

.no-btn:hover, .yes-btn:hover {
    transform: scale(1.03);
}

.no-btn span, .yes-btn span {
    display: block;
    font-size: 1.2rem;
    margin-top: 3px;
}

.player-odds {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.player-odds span {
    background: #e0e0e0;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    color: var(--text-primary);
}

.player-odds span:hover {
    background: var(--accent);
    color: #ffffff;
}

.player-odds span b {
    color: var(--accent);
}

/* Bet Slip Panel */
.bet-slip-panel {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.bet-slip-header {
    background: var(--accent);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.bet-slip-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.bet-count {
    background: white;
    color: var(--accent);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
}

.bet-slip-content {
    padding: 20px;
    min-height: 150px;
}

.empty-slip {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px 0;
}

.empty-slip i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.bet-slip-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
    border: 1px solid var(--border-color);
}

.bet-slip-item .selection {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.bet-slip-item .odds {
    color: var(--accent);
    font-size: 0.9rem;
}

.bet-slip-item .remove-bet {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.2rem;
}

.bet-slip-item .stake-input-mini {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.bet-slip-item input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #ffffff;
    color: var(--text-primary);
    font-size: 1rem;
}

.bet-slip-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
}

.total-stake, .potential-win {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.potential-win {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
}

.place-bet-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent), #ff8c00);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.place-bet-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(255, 102, 0, 0.4);
}

/* Recent Bets */
.recent-bets {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.recent-bets h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.recent-bets-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.recent-bet {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-left: 3px solid var(--text-secondary);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.recent-bet.won {
    border-left-color: var(--success);
    background: #e8f5e9;
}

.recent-bet.lost {
    border-left-color: var(--danger);
    background: #ffebee;
}

.recent-bet.pending {
    border-left-color: var(--warning);
    background: #fff8e1;
}

.recent-bet .bet-type {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.recent-bet .bet-amount {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.recent-bet .bet-potential {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
}

.recent-bet .bet-result {
    font-weight: bold;
    font-size: 0.85rem;
}

.recent-bet.won .bet-result {
    color: var(--success);
}

.recent-bet.lost .bet-result {
    color: var(--danger);
}

.recent-bet.pending .bet-result {
    color: var(--warning);
}

/* Profit/Loss Section */
.profit-loss-section {
    background: #ffffff;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 0;
}

.profit-loss-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.profit-loss-section h4 i {
    color: var(--accent);
}

#profitLossSection {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pl-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.pl-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pl-item .label {
    color: var(--text-secondary);
}

.pl-item .value {
    font-weight: 600;
    color: var(--text-primary);
}

.pl-item .value.profit {
    color: var(--success);
}

.pl-item .value.loss {
    color: var(--danger);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    animation: modalSlide 0.3s ease;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
}

@keyframes modalSlide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: var(--accent);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.modal-header h3 {
    color: #ffffff;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 25px;
}

.bet-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.bet-selection {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.bet-odds {
    color: var(--accent);
}

.stake-input {
    margin-bottom: 20px;
}

.stake-input label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.stake-input input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text-primary);
    font-size: 1.2rem;
    text-align: center;
}

.stake-input input:focus {
    outline: none;
    border-color: var(--accent);
}

.quick-stakes {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.quick-stake {
    flex: 1;
    min-width: 60px;
    padding: 10px;
    background: #f0f0f0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.3s;
}

.quick-stake:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.potential-return {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    padding: 15px;
    background: #fff5ee;
    border-radius: 10px;
    border: 1px solid var(--accent);
}

.potential-return span:last-child {
    color: var(--accent);
    font-weight: bold;
}

.modal-footer {
    padding: 20px;
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--border-color);
}

.btn-cancel, .btn-confirm {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background: #f0f0f0;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-confirm {
    background: var(--accent);
    color: white;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-confirm:hover {
    background: var(--accent-dark);
}

/* Auth Modal */
.auth-modal {
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--accent-dark);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    padding: 15px 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error {
    background: var(--danger);
}

.toast i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 250px 1fr 280px;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .bet-slip-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 50vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .bet-slip-panel.show {
        transform: translateY(0);
    }
    
    .ball-betting-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .over-range-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fancy-markets {
        grid-template-columns: 1fr;
    }
    
    .winner-market {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .header .container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .ball-betting-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .over-range-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .teams-score {
        flex-direction: column;
        gap: 15px;
    }
    
    .teams-score .vs {
        margin: 10px 0;
    }
}

/* ==================== LIVE BALL BY BALL SECTION ==================== */
.live-ball-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ball-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.ball-section-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-primary);
}

.ball-info {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ball-info span strong {
    color: var(--accent);
}

.ball-commentary-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.ball-item {
    display: grid;
    grid-template-columns: 60px 45px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: var(--secondary);
    border-radius: 8px;
    border-left: 4px solid var(--border-color);
    transition: all 0.3s;
}

.ball-item:first-child {
    background: #fff9f2;
    border-left-color: var(--accent);
    animation: newBallHighlight 2s ease;
}

@keyframes newBallHighlight {
    0% { background: #ffe4cc; transform: translateX(-5px); }
    100% { background: #fff9f2; transform: translateX(0); }
}

.ball-item.ball-4 { border-left-color: #28a745; }
.ball-item.ball-6 { border-left-color: var(--accent); }
.ball-item.ball-W { border-left-color: #dc3545; }

.ball-number {
    font-weight: bold;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.ball-result {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.ball-result.dot { background: #e0e0e0; color: #666; }
.ball-result.run { background: #e3f2fd; color: #1976d2; }
.ball-result.four { background: #e8f5e9; color: #2e7d32; }
.ball-result.six { background: #fff3e0; color: #e65100; }
.ball-result.wicket { background: #ffebee; color: #c62828; }

.ball-desc {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* This Over Summary */
.this-over-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.over-balls {
    display: flex;
    gap: 8px;
}

.over-balls .ball {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
}

.over-balls .ball.dot { background: #e0e0e0; color: #666; }
.over-balls .ball.run { background: #e3f2fd; color: #1976d2; }
.over-balls .ball.four { background: #28a745; color: #fff; }
.over-balls .ball.six { background: var(--accent); color: #fff; }
.over-balls .ball.wicket { background: #dc3545; color: #fff; }
.over-balls .ball.upcoming { background: #f5f5f5; color: #ccc; border: 2px dashed #ddd; }

.over-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.over-stats span {
    color: var(--text-secondary);
}

.over-stats span strong {
    color: var(--accent);
}

.over-stats .req-rate strong {
    color: #dc3545;
}

/* ==================== BOOKMAKER ODDS PANEL (BETFAIR STYLE) ==================== */
.bookmaker-odds-panel {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.odds-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #ffffff;
}

.odds-panel-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.odds-panel-header h3 i {
    color: var(--accent);
}

.odds-source {
    font-size: 0.8rem;
    color: #00d09c;
    display: flex;
    align-items: center;
    gap: 5px;
}

.odds-source::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #00d09c;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.odds-table {
    padding: 0;
}

.odds-header {
    display: grid;
    grid-template-columns: 1.5fr 2fr 2fr 0.8fr;
    gap: 5px;
    padding: 12px 15px;
    background: #f8f9fa;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.back-col { text-align: center; color: #0d47a1; }
.lay-col { text-align: center; color: #880e4f; }
.position-col { text-align: center; }

.odds-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 2fr 0.8fr;
    gap: 5px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background 0.3s;
}

.odds-row:hover {
    background: #fafafa;
}

.odds-row:last-child {
    border-bottom: none;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.team-info .mini-flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
}

.team-info i {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.back-prices, .lay-prices {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.price-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 55px;
}

.price-box.back {
    background: var(--back-color);
}

.price-box.back:hover {
    background: #5eb2e8;
    transform: scale(1.05);
}

.price-box.back.active {
    background: #4aa8e0;
}

.price-box.lay {
    background: var(--lay-color);
}

.price-box.lay:hover {
    background: #f57ea8;
    transform: scale(1.05);
}

.price-box.lay.active {
    background: #f26699;
}

/* Odds Change Animations */
.price-box.odds-changed {
    animation: oddsFlash 0.5s ease;
}

@keyframes oddsFlash {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); background: #ffeb3b; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.ball-option.odds-flash {
    animation: ballOddsFlash 0.3s ease;
}

@keyframes ballOddsFlash {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 15px rgba(255, 102, 0, 0.8); }
}

.live-dot-small {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00d09c;
    border-radius: 50%;
    margin-right: 5px;
    animation: blink 1s infinite;
}

/* Odds Up/Down Indicators */
.odds-up::after {
    content: '▲';
    color: #28a745;
    font-size: 0.7rem;
    margin-left: 3px;
}

.odds-down::after {
    content: '▼';
    color: #dc3545;
    font-size: 0.7rem;
    margin-left: 3px;
}

.price-box .odds {
    font-weight: bold;
    font-size: 0.95rem;
    color: #000;
    transition: all 0.3s ease;
}

.price-box .volume {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.6);
}

.position-display {
    text-align: center;
}

.position {
    font-weight: bold;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 4px;
}

.position.profit {
    color: #28a745;
    background: #e8f5e9;
}

.position.loss {
    color: #dc3545;
    background: #ffebee;
}

.odds-info {
    padding: 10px 15px;
    background: #f8f9fa;
    text-align: center;
}

.odds-info small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.odds-info i {
    color: var(--accent);
    margin-right: 5px;
}

/* ==================== POSITION TRACKER ==================== */
.position-tracker {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.position-tracker h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.position-tracker h4 i {
    color: var(--accent);
}

.position-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.position-item {
    background: var(--secondary);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.position-item .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.position-item .value {
    font-size: 1.1rem;
    font-weight: bold;
}

.position-item .value.positive { color: #28a745; }
.position-item .value.negative { color: #dc3545; }

/* ==================== ODDS EXPLANATION ==================== */
.odds-explanation {
    background: linear-gradient(135deg, #fff9f2, #ffffff);
    border: 1px solid #ffe4cc;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.odds-explanation h5 {
    color: var(--accent);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.odds-explanation ul {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.odds-explanation li {
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.odds-explanation li::before {
    content: '•';
    color: var(--accent);
    font-weight: bold;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==================== RESPONSIVE ODDS PANEL ==================== */
@media (max-width: 768px) {
    .odds-header {
        display: none;
    }
    
    .odds-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .team-info {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .back-prices, .lay-prices {
        flex-wrap: wrap;
    }
    
    .position-display {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed var(--border-color);
    }
    
    .ball-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .ball-item {
        grid-template-columns: 50px 40px 1fr;
    }
    
    .over-stats {
        flex-direction: column;
        gap: 5px;
    }
}
