* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --dark: #0a0e27;
    --darker: #05070f;
    --light: #ffffff;
    --gray: #8892b0;
    --card-bg: #151a30;
    --accent: #5865f2;
    --sidebar-width: 260px;
    --header-height: 100px;
    --success: #00ff88;
    --warning: #ffc107;
    --danger: #ff4757;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--dark);
    border-right: 1px solid rgba(0, 255, 136, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(136, 146, 176, 0.1);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.logo-image {
    max-width: 180px;
    height: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                filter 0.4s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

.logo-image:hover {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 8px 24px rgba(0, 255, 136, 0.4));
    animation: none;
}

.logo-icon {
    font-size: 32px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.logo-text {
    flex: 1;
    width: 100%;
}

.logo {
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.tagline {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(0, 255, 136, 0.05);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-item.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-item .icon {
    font-size: 20px;
    margin-right: 12px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(136, 146, 176, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(136, 146, 176, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-status {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

.btn-logout {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(136, 146, 176, 0.1);
    color: var(--gray);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 71, 87, 0.1);
    color: var(--danger);
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    opacity: 1;
    transition: opacity 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success {
    border-color: var(--success);
}

.notification-error {
    border-color: var(--danger);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notification-header strong {
    font-size: 16px;
    color: var(--light);
}

.notification-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: var(--light);
}

.notification-body {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
}

.connection-status {
    font-size: 14px;
    font-weight: 600;
}

.connection-status.success {
    color: var(--success);
}

.connection-status.error {
    color: var(--danger);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(136, 146, 176, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 71, 87, 0.1);
    color: var(--danger);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(136, 146, 176, 0.1);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-footer .btn {
    min-width: 120px;
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */
.loading-state,
.error-state {
    padding: 60px 20px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 136, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    background: var(--darker);
}

.header {
    height: var(--header-height);
    background: var(--dark);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--gray);
}

.stats-mini {
    display: flex;
    gap: 30px;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-mini .stat-label {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-mini .stat-value {
    font-size: 20px;
    font-weight: 700;
    margin-top: 5px;
}

.stat-mini .stat-value.profit {
    color: var(--success);
}

/* ============================================
   PAGE SECTIONS
   ============================================ */
.page {
    display: none;
    padding: 40px;
    animation: fadeIn 0.3s ease-in;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CALCULATOR PAGE
   ============================================ */
.calculator-container {
    max-width: 1400px;
    margin: 0 auto;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 32px;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--light);
}

.stat-value.arb-status {
    font-size: 18px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.calculator-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(136, 146, 176, 0.1);
}

.form-section {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light);
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--darker);
    border: 1px solid rgba(136, 146, 176, 0.2);
    border-radius: 8px;
    color: var(--light);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.input-group {
    position: relative;
}

.input-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-weight: 600;
}

.input-group .form-input {
    padding-left: 35px;
}

.form-help {
    font-size: 12px;
    color: var(--gray);
    margin-top: 5px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.flex-1 {
    flex: 1;
}

.odds-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.sportsbook-section {
    background: var(--darker);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(136, 146, 176, 0.1);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.book-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-badge.book-1 {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
}

.book-badge.book-2 {
    background: rgba(88, 101, 242, 0.1);
    color: var(--accent);
}

.book-badge.book-3 {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-icon {
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #00dd77);
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: var(--accent);
    color: var(--light);
}

.btn-secondary:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(0, 255, 136, 0.1);
}

.btn-calculate {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    margin-top: 30px;
}

/* ============================================
   RESULTS
   ============================================ */
.results-card {
    display: flex;
    flex-direction: column;
}

.results-container {
    flex: 1;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--gray);
    max-width: 300px;
}

.results-content {
    animation: fadeIn 0.5s ease-in;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert.warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert.error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.bet-breakdown,
.profit-breakdown,
.scenario-analysis {
    margin-bottom: 25px;
}

.breakdown-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
}

.bet-card {
    background: var(--darker);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(136, 146, 176, 0.1);
}

.bet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.bet-outcome {
    font-weight: 600;
    font-size: 16px;
}

.bet-book {
    font-size: 13px;
    color: var(--gray);
}

.bet-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.bet-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: var(--card-bg);
    border-radius: 4px;
}

.bet-detail .label {
    color: var(--gray);
    font-size: 13px;
}

.bet-detail .value {
    font-weight: 600;
}

.profit-grid {
    display: grid;
    gap: 12px;
}

.profit-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--darker);
    border-radius: 8px;
}

.profit-item.highlight {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
}

.profit-item .label {
    color: var(--gray);
    font-weight: 500;
}

.profit-item .value {
    font-weight: 700;
    font-size: 18px;
}

.profit-item .value.profit {
    color: var(--success);
}

.scenario-card {
    background: var(--darker);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary);
}

.scenario-header {
    font-weight: 600;
    margin-bottom: 8px;
}

.scenario-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.scenario-details .label {
    color: var(--gray);
}

.scenario-details .value {
    color: var(--success);
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.action-buttons .btn {
    flex: 1;
}

/* ============================================
   OPPORTUNITIES PAGE
   ============================================ */
.opportunities-container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.filters-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
}

.filter-select {
    padding: 8px 12px;
    background: var(--darker);
    border: 1px solid rgba(136, 146, 176, 0.2);
    border-radius: 6px;
    color: var(--light);
    font-size: 14px;
}

.opportunities-list {
    display: grid;
    gap: 20px;
}

.opportunity-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s;
}

.opportunity-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.opportunity-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.opportunity-meta {
    font-size: 13px;
    color: var(--gray);
}

.opportunity-roi {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 20px;
}

.opportunity-bets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.opp-bet {
    background: var(--darker);
    padding: 15px;
    border-radius: 8px;
}

.opp-bet-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.opp-book {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
}

.opp-odds {
    font-weight: 700;
    color: var(--primary);
}

.opp-outcome {
    font-weight: 600;
}

.opportunity-actions {
    display: flex;
    gap: 10px;
}

.opportunity-actions .btn {
    flex: 1;
}

/* ============================================
   TRACKER PAGE
   ============================================ */
.tracker-container {
    max-width: 1400px;
    margin: 0 auto;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    display: flex;
    gap: 20px;
}

.summary-icon {
    font-size: 48px;
}

.summary-info {
    flex: 1;
}

.summary-label {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 5px;
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-change {
    font-size: 13px;
    color: var(--gray);
}

.summary-change.positive {
    color: var(--success);
}

.chart-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    margin-bottom: 30px;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--darker);
    border-radius: 8px;
    color: var(--gray);
    font-size: 18px;
}

.recent-bets {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.bets-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 15px;
    background: var(--darker);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(136, 146, 176, 0.1);
}

tr:hover {
    background: var(--darker);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.settled {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

/* ============================================
   BANKROLL PAGE
   ============================================ */
.bankroll-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.bankroll-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.total-bankroll {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(88, 101, 242, 0.1));
    border-color: var(--primary);
}

.bankroll-amount {
    display: flex;
    align-items: baseline;
    margin: 20px 0;
}

.currency {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-right: 8px;
}

.amount {
    font-size: 48px;
    font-weight: 900;
    color: var(--light);
}

.bankroll-change {
    font-size: 16px;
}

.add-book {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-book {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px;
    background: transparent;
    border: 2px dashed rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}

.btn-add-book:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.05);
}

.add-icon {
    font-size: 32px;
}

.sportsbooks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sportsbook-balance-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.sportsbook-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sportsbook-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark);
}

.sportsbook-name {
    font-weight: 600;
    font-size: 16px;
}

.balance {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.balance-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .sportsbooks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .quick-stats,
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .odds-container,
    .opportunity-bets {
        grid-template-columns: 1fr;
    }
    
    .bankroll-grid,
    .sportsbooks-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        padding: 0 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-right {
        width: 100%;
        overflow-x: auto;
    }
    
    .stats-mini {
        gap: 15px;
        justify-content: flex-start;
    }
    
    .page {
        padding: 20px;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .opportunities-list {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .quick-stats,
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-mini {
        font-size: 12px;
    }
    
    .opportunity-card {
        padding: 15px;
    }
    
    .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* ============================================
   LIGHT MODE THEME
   ============================================ */
[data-theme="light"] {
    --dark: #ffffff;
    --card-bg: #f8f9fa;
    --bg-secondary: #e9ecef;
    --text: #1a1a2e;
    --gray: #6c757d;
    --border: #dee2e6;
    --primary: #00d084;
    --secondary: #007bff;
    --danger: #dc3545;
    --success: #28a745;
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    color: var(--text);
}

[data-theme="light"] .sidebar {
    background: var(--card-bg);
    border-right: 1px solid var(--border);
}

[data-theme="light"] .nav-item {
    color: var(--gray);
}

[data-theme="light"] .nav-item.active,
[data-theme="light"] .nav-item:hover {
    background: rgba(0, 208, 132, 0.1);
    color: var(--primary);
}

[data-theme="light"] .card,
[data-theme="light"] .calculator-card,
[data-theme="light"] .opportunity-card,
[data-theme="light"] .sportsbook-card,
[data-theme="light"] .settings-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text);
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
}

/* ============================================
   SPORTSBOOKS PAGE
   ============================================ */
.sportsbooks-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.sportsbook-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.sportsbook-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.sportsbook-logo-large {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: var(--dark);
}

@media (max-width: 1200px) {
    .sportsbooks-list {
        grid-template-columns: 1fr;
    }
}

