/* TennisJack Unlocked PRO - Modern Business Theme v2.0 */

*.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.sortable-header:hover {
    background: rgba(245, 158, 11, 0.15);
}
.sortable-header i {
    opacity: 0.5;
    transition: opacity 0.2s;
}
.sortable-header.sorted-asc i {
    opacity: 1;
    transform: rotate(0deg);
}
.sortable-header.sorted-desc i {
    opacity: 1;
    transform: rotate(180deg);
} 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a2a2a 0%, #0f1f1f 100%);
    min-height: 100vh;
    color: #e8edf2;
    line-height: 1.5;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
}

/* ========== HEADER ========== */
.header {
    text-align: center;
    margin-bottom: 24px;
    padding: 12px 24px;
    background: rgba(30, 45, 45, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
}

.logo-img {
    width: 260px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ========== SORTABLE HEADERS ========== */
.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.sortable-header:hover {
    background: rgba(245, 158, 11, 0.15);
}

.sortable-header i {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.sortable-header.sorted-asc i {
    opacity: 1;
    transform: rotate(0deg);
}

.sortable-header.sorted-desc i {
    opacity: 1;
    transform: rotate(180deg);
}

/* ========== ACTIVE FILTERS PANEL ========== */
.active-filters-panel {
    background: rgba(30, 45, 45, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 16px 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.active-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.active-filters-header h3 {
    font-size: 13px;
    font-weight: 600;
    color: #d4d9e0;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-filters-header h3 i {
    color: #f59e0b;
}

.clear-all-btn {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.clear-all-btn:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e8edf2;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-tag .remove-filter {
    background: none;
    border: none;
    color: #9aaebf;
    cursor: pointer;
    padding: 0 4px;
    font-size: 14px;
}

.filter-tag .remove-filter:hover {
    color: #f59e0b;
}

/* ========== SEARCH BAR ========== */
.search-bar {
    background: rgba(30, 45, 45, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    padding: 8px 12px 8px 20px;
    margin-bottom: 28px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
}

.player-search-wrapper {
    flex: 1;
    min-width: 260px;
    position: relative;
    z-index: 1000;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aaebf;
    font-size: 15px;
}

.player-search-input {
    width: 100%;
    padding: 12px 20px 12px 44px;
    background: rgba(20, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 48px;
    font-size: 14px;
    color: #e8edf2;
}

.player-search-input:focus {
    outline: none;
    border-color: #f59e0b;
    background: rgba(20, 30, 30, 0.95);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.player-select {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a3a3a;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    margin-top: 8px;
    z-index: 1001;
    max-height: 320px;
    overflow-y: auto;
}

.player-select option {
    padding: 12px 16px;
    cursor: pointer;
    color: #e8edf2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.player-select option:hover {
    background: rgba(245, 158, 11, 0.2);
}

.selected-player {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
    padding: 5px 14px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.35);
    pointer-events: none;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    padding: 10px 22px;
    border: none;
    border-radius: 48px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #3a6b6b 0%, #2a5555 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(58, 107, 107, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e8edf2;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

/* ========== FILTERS GRID ========== */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 1200px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== FILTER CARDS ========== */
.filter-card {
    background: rgba(35, 50, 50, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.12);
    overflow: hidden;
    transition: all 0.25s ease;
}

.filter-card:hover {
    background: rgba(45, 65, 65, 0.65);
    border-color: rgba(245, 158, 11, 0.35);
}

.filter-card-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(25, 40, 40, 0.4);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.filter-card-header i:first-child {
    color: #f59e0b;
    font-size: 16px;
    width: 24px;
}

.filter-card-header h3 {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #f0f3f8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.filter-card-header .toggle-icon {
    color: #9aaebf;
    transition: transform 0.3s;
    font-size: 12px;
}

.filter-card-header .toggle-icon.rotated {
    transform: rotate(-90deg);
}

.filter-card-content {
    padding: 16px;
    display: none;
    background: rgba(0, 0, 0, 0.2);
}

.filter-card-content h4 {
    font-size: 11px;
    font-weight: 600;
    color: #b8c4ce;
    margin: 12px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    padding-bottom: 5px;
}

.filter-card-content h4:first-of-type {
    margin-top: 0;
}

.filter-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-item {
    flex: 1;
    min-width: 100px;
}

.filter-item label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #b0beca;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-item select,
.filter-item input[type="number"],
.filter-item input[type="date"] {
    width: 100%;
    padding: 8px 10px;
    background: rgba(15, 25, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-size: 12px;
    color: #e8edf2;
}

.filter-item select:focus,
.filter-item input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.filter-item select option {
    background: #2a3a3a;
    color: #e8edf2;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-inputs input,
.range-inputs select {
    flex: 1;
    min-width: 0;
}

.range-inputs span {
    color: #9aaebf;
    font-size: 11px;
}

/* ========== RESULTS SECTION ========== */
.results-section {
    background: rgba(35, 50, 50, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    margin-top: 24px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-header h2 {
    font-size: 16px;
    color: #e8edf2;
    font-weight: 500;
}

.results-header h2 span {
    color: #f59e0b;
    font-weight: 700;
    font-size: 22px;
    margin-right: 5px;
}

/* ========== TABLE ========== */
.table-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.12);
    background: rgba(0, 0, 0, 0.25);
}

#results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

#results-table th {
    background: rgba(20, 35, 35, 0.7);
    color: #cbd5e1;
    font-weight: 600;
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    white-space: nowrap;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#results-table td {
    padding: 8px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    color: #e2e8f0;
    font-size: 11px;
}

#results-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.08);
}

.player-link {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 500;
}

.player-link:hover {
    text-decoration: underline;
}

.view-details {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 4px 8px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
}

.view-details:hover {
    background: rgba(245, 158, 11, 0.3);
    border-color: #f59e0b;
}

.no-results {
    text-align: center;
    padding: 40px !important;
    color: #9aaebf;
}

/* ========== STATS PANEL ========== */
.stats-panel {
    margin-top: 20px;
    padding: 20px;
    background: rgba(20, 35, 35, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.stats-panel h3 {
    font-size: 18px;
    margin-bottom: 18px;
    color: #f59e0b;
    font-weight: 700;
}

#stats-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

#stats-content .stat-card {
    background: rgba(30, 45, 45, 0.6);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#stats-content .stat-card:hover {
    background: rgba(45, 65, 65, 0.7);
    border-color: rgba(245, 158, 11, 0.3);
}

#stats-content .stat-title {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

#stats-content .stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #f59e0b;
}

/* ========== BET STATS SECTION ========== */
#bet-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

#bet-stats-container .stat-card {
    background: rgba(30, 45, 45, 0.6);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#bet-stats-container .stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #e8edf2;
    margin-bottom: 6px;
}

#bet-stats-container .stat-label {
    font-size: 11px;
    color: #9aaebf;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

/* ========== BET RESULTS TABLE ========== */
#bet-results .results-section {
    background: rgba(20, 35, 45, 0.6);
    border-radius: 12px;
    padding: 12px;
    margin-top: 16px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-left: 3px solid #4ade80;
}

#bet-results .results-header h2 {
    font-size: 12px;
    margin-bottom: 10px;
    color: #f59e0b;
}

#bets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

#bets-table th {
    background: rgba(30, 50, 50, 0.9);
    padding: 8px 6px;
    text-align: left;
    color: #f59e0b;
    font-weight: 600;
    font-size: 9px;
    text-transform: uppercase;
    cursor: pointer;
}

#bets-table th:hover {
    background: rgba(245, 158, 11, 0.2);
}

#bets-table td {
    padding: 6px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

#bets-table tr:hover {
    background: rgba(245, 158, 11, 0.08);
}

/* ========== PROFIT/LOSS COLORS ========== */
.profit-positive {
    color: #4ade80 !important;
    font-weight: 600;
}

.profit-negative {
    color: #f87171 !important;
    font-weight: 600;
}

.win-text {
    color: #4ade80 !important;
    font-weight: 600;
}

.loss-text {
    color: #f87171 !important;
    font-weight: 600;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #2a3a3a;
    margin: 60px auto;
    padding: 24px;
    width: 90%;
    max-width: 900px;
    border-radius: 28px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.close {
    color: #9aaebf;
    float: right;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #f59e0b;
}

/* ========== COLLAPSIBLE SECTIONS ========== */
.collapsible-section {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.collapsible-header {
    background: rgba(30, 45, 45, 0.8);
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.collapsible-header:hover {
    background: rgba(245, 158, 11, 0.15);
}

.collapsible-header h3 {
    margin: 0;
    font-size: 13px;
    color: #f59e0b;
}

.collapsible-header .toggle-icon {
    font-size: 12px;
    transition: transform 0.2s;
}

.collapsible-header .toggle-icon.rotated {
    transform: rotate(180deg);
}

.collapsible-content {
    background: rgba(20, 35, 35, 0.4);
    padding: 12px;
    display: block;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1000px) {
    .container {
        padding: 16px;
    }
    
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    #stats-content {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
    
    #bet-stats-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    #stats-content .stat-value {
        font-size: 17px;
    }
    
    #bet-stats-container .stat-value {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
        padding: 16px;
    }
    
    .player-search-wrapper {
        min-width: auto;
    }
    
    .action-buttons {
        justify-content: stretch;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-item {
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #stats-content {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    #bet-stats-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    #stats-content .stat-value {
        font-size: 15px;
    }
    
    #stats-content .stat-title {
        font-size: 10px;
    }
    
    #bet-stats-container .stat-value {
        font-size: 20px;
    }
    
    #bet-stats-container .stat-label {
        font-size: 9px;
    }
}

@media (max-width: 600px) {
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .filter-card-content {
        padding: 12px;
    }
}

@media (max-width: 500px) {
    .logo-img {
        width: 200px;
    }
    
    .header {
        padding: 10px 16px;
    }
    
    .container {
        padding: 12px;
    }
    
    #stats-content {
        grid-template-columns: 1fr;
    }
    
    #bet-stats-container {
        grid-template-columns: 1fr;
    }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 45, 45, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.7);
}

/* ========== LOADING SPINNER ========== */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* ========== PRINT ========== */
@media print {
    .filter-card,
    .search-bar,
    .active-filters-panel,
    .btn,
    .view-details {
        display: none;
    }
    
    .results-section {
        padding: 0;
        background: none;
    }
    
    #results-table th,
    #results-table td {
        color: black;
        border-color: #ccc;
    }
}

/* ========== SEARCH PAGE POLISH v3 ========== */
:root {
    --page-bg: #0b1323;
    --surface: #172235;
    --surface-2: #1d2b42;
    --surface-3: #22334d;
    --line: rgba(125, 151, 185, 0.26);
    --line-strong: rgba(148, 173, 207, 0.38);
    --text: #f4f8ff;
    --muted: #9fb1c8;
    --accent: #ff3d68;
    --accent-2: #19c6d4;
    --warn: #f5a623;
    --good: #00df72;
    --bad: #ff4057;
}

body {
    background:
        radial-gradient(circle at 18% -10%, rgba(25, 198, 212, 0.12), transparent 32%),
        radial-gradient(circle at 92% 12%, rgba(255, 61, 104, 0.10), transparent 28%),
        var(--page-bg);
    color: var(--text);
}

.container {
    max-width: 1580px;
    padding: 18px 22px 36px;
}

.header {
    margin-bottom: 18px;
    padding: 18px 24px;
    background: linear-gradient(180deg, rgba(34, 51, 77, 0.86), rgba(23, 34, 53, 0.92));
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.logo-img {
    width: 235px;
}

.search-bar {
    display: grid;
    grid-template-columns: minmax(360px, 760px) auto;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 22px;
    background: rgba(23, 34, 53, 0.92);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.player-search-wrapper {
    flex: initial;
    width: min(760px, 100%);
    min-width: 0;
}

.player-search-input {
    height: 44px;
    padding: 0 190px 0 44px;
    background: #0d1728;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.player-search-input:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(25, 198, 212, 0.14);
}

.selected-player {
    right: 10px;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(255, 61, 104, 0.13);
    color: #ffd8e1;
    border-color: rgba(255, 61, 104, 0.45);
}

.action-buttons {
    gap: 10px;
}

.btn {
    height: 44px;
    padding: 0 20px;
    border-radius: 16px;
    font-size: 13px;
    letter-spacing: 0;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, #18a9c7, #2578c6);
    border: 1px solid rgba(130, 213, 255, 0.32);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
}

.filters-grid {
    gap: 20px;
    align-items: start;
}

.filter-card,
.active-filters-panel,
.stats-panel,
.results-section {
    background: rgba(23, 34, 53, 0.93);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.filter-card:hover {
    background: rgba(29, 43, 66, 0.96);
    border-color: var(--line-strong);
}

.filter-card-header {
    min-height: 50px;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(34, 51, 77, 0.98), rgba(27, 41, 63, 0.96));
    border-bottom: 1px solid var(--line);
}

.filter-card-header i:first-child {
    color: var(--warn);
}

.filter-card-header h3 {
    color: var(--text);
    font-size: 13px;
    letter-spacing: 0.35px;
}

.filter-card-content {
    background: rgba(11, 19, 35, 0.35);
}

.compact-filter-card {
    align-self: start;
}

.compact-filter-card .filter-card-content {
    min-height: 0;
    padding-bottom: 16px;
}

.compact-filter-card .filter-card-content p {
    display: none;
}

.bet-settings-card {
    margin-bottom: 18px;
}

.bet-settings-card .filter-card-content {
    padding: 16px !important;
}

.settings-row {
    grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
}

.filter-item label {
    color: var(--muted);
    font-size: 10px;
}

.filter-item select,
.filter-item input[type="number"],
.filter-item input[type="date"] {
    height: 38px;
    padding: 0 12px;
    background: #0d1728;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    font-size: 12px;
}

.filter-item select:focus,
.filter-item input:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(25, 198, 212, 0.12);
}

.filter-item select option {
    background: #111d31;
}

.table-container {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #0d1728;
}

#results-table,
#bets-table {
    border-collapse: separate;
    border-spacing: 0;
}

#results-table th,
#bets-table th {
    background: #1e2d46;
    color: var(--text);
    border-bottom: 2px solid var(--accent);
}

#results-table td,
#bets-table td {
    color: #edf5ff;
    border-bottom: 1px solid rgba(125, 151, 185, 0.18);
}

#results-table tbody tr:nth-child(even),
#bets-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.025);
}

#results-table tbody tr:hover,
#bets-table tr:hover {
    background: rgba(25, 198, 212, 0.08);
}

.player-link {
    color: #7bdcff;
}

#stats-content .stat-card,
#bet-stats-container .stat-card {
    background: #101b2d;
    border: 1px solid var(--line);
    border-radius: 16px;
}

#stats-content .stat-value,
.stats-panel h3,
.results-header h2 span {
    color: var(--accent-2);
}

.profit-positive,
.win-text {
    color: var(--good) !important;
}

.profit-negative,
.loss-text {
    color: var(--bad) !important;
}

@media (max-width: 1000px) {
    .search-bar {
        grid-template-columns: 1fr;
    }

    .player-search-wrapper {
        width: 100%;
    }

    .settings-row {
        grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    .player-search-input {
        padding-right: 44px;
    }

    .selected-player {
        position: static;
        transform: none;
        display: inline-block;
        margin-top: 8px;
        max-width: 100%;
    }

    .settings-row {
        grid-template-columns: 1fr !important;
    }
}
