/*
Theme Name: dafa-bet365 Game - Astra Child
Theme URI: https://yourwebsite.com
Description: DAFA-WIN Game Sports & Casino Theme - Child theme of Astra
Author: Bhuwan Bhaskar
Template: astra
Version: 1.0
*/

/* Import parent theme styles */
@import url("../astra/style.css");

/* ===========================================
   VARIABLES
=========================================== */
:root {
    --header-height: 80px;
    --footer-height: 60px;
    --sidebar-width: 240px;
    --right-sidebar-width: 320px;
    --primary-color: #e01e37;
    --secondary-color: #c41230;
    --bg-color: #f5f5f5;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --dark-bg: #1a1a1a;
    --sidebar-bg: #1a1a1a;
    --right-sidebar-bg: #2c2c2c;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

/* ===========================================
   HEADER & FOOTER VISIBILITY FIX
=========================================== */
body.page-template-home-page .site-header,
body.home.page-template-home-page .site-header {
    display: block !important;
    position: relative !important;
    z-index: 1000 !important;
    background: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

body.page-template-home-page .site-footer,
body.home.page-template-home-page .site-footer {
    display: block !important;
    position: relative !important;
    z-index: 1000 !important;
    background: #333 !important;
    color: white !important;
    margin-top: 0 !important;
}

/* Reset WordPress default spacing */
body.page-template-home-page .site-content,
body.home.page-template-home-page .site-content {
    margin: 0 !important;
    padding: 0 !important;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

body.page-template-home-page .ast-container,
body.home.page-template-home-page .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.page-template-home-page .content-area,
body.home.page-template-home-page .content-area {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ===========================================
   MAIN CONTAINER STRUCTURE
=========================================== */
.home-page-custom {
    width: 100%;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    background: var(--bg-color);
}

.dafabet-container {
    display: flex;
    width: 100%;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    position: relative;
    background: var(--bg-color);
}

/* ===========================================
   LEFT SIDEBAR
=========================================== */
.dafabet-left-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: #373737;
    color: white;
    overflow-y: auto;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height) - var(--footer-height));
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.dafabet-left-sidebar.collapsed {
    width: 70px;
    min-width: 70px;
}

.dafabet-collapse-btn {
    padding: 15px;
    background: #252525;
    color: white;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #333;
    transition: background 0.3s;
}

.dafabet-collapse-btn:hover {
    background: #333;
}

.dafabet-sidebar-section {
    border-bottom: 1px solid #333;
}

.dafabet-sidebar-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.dafabet-sidebar-item:hover {
    background: #252525;
    color: white;
}

.dafabet-sidebar-item.active {
    background: var(--primary-color);
    color: white;
}

.dafabet-sidebar-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-arrow {
    margin-left: auto;
    color: #666;
    font-size: 16px;
}

.quick-links-header,
.settings-header,
.all-sports-header {
    padding: 12px 20px !important;
    color: #999 !important;
    font-size: 13px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    margin-left: auto;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Collapsed state */
.dafabet-left-sidebar.collapsed .sidebar-arrow,
.dafabet-left-sidebar.collapsed .dafabet-sidebar-item span:not(.dafabet-sidebar-icon),
.dafabet-left-sidebar.collapsed .quick-links-header,
.dafabet-left-sidebar.collapsed .settings-header span:last-child,
.dafabet-left-sidebar.collapsed .all-sports-header,
.dafabet-left-sidebar.collapsed .badge {
    display: none !important;
}

/* ===========================================
   MAIN CONTENT AREA
=========================================== */
.dafabet-main-content {
    flex: 1;
    background: var(--bg-color);
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* Content Header */
.dafabet-content-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.dafabet-search-box {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.dafabet-search-box:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(224, 30, 55, 0.1);
}

.search-btn {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--secondary-color);
}

.filter-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dafabet-filter-dropdown {
    padding: 10px 16px;
    background: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dafabet-filter-dropdown:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Sports Categories */
.dafabet-sports-categories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: thin;
}

.dafabet-sport-category {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 110px;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 2px solid transparent;
}

.dafabet-sport-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.dafabet-sport-category.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sport-name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.sport-count {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.dafabet-sport-category.active .sport-count {
    color: white;
    opacity: 0.9;
}

/* Section Headers */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.count-badge {
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Featured Section */
.featured-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-matches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.featured-match-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #dee2e6;
    transition: all 0.3s;
}

.featured-match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.match-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

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

.teams {
    margin-bottom: 15px;
}

.team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.team:last-child {
    border-bottom: none;
}

.team span:first-child {
    font-weight: 600;
    color: var(--text-color);
}

.score {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

.odds {
    display: flex;
    gap: 8px;
}

.odd-btn {
    flex: 1;
    padding: 10px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.3s;
    text-align: center;
}

.odd-btn:hover {
    background: #f8f8f8;
    border-color: var(--primary-color);
}

.odd-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Matches Section */
.matches-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Match Card */
.dafabet-match-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.dafabet-match-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.dafabet-match-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.dafabet-match-title {
    font-weight: 700;
    color: var(--text-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-league {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.dafabet-match-time {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 13px;
    flex-wrap: wrap;
}

.dafabet-live-badge {
    background: #ff4444;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.time-badge {
    background: #f0f0f0;
    color: var(--text-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.dafabet-match-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 20px;
    align-items: center;
}

@media (max-width: 768px) {
    .dafabet-match-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.dafabet-teams {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dafabet-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.dafabet-team:last-child {
    border-bottom: none;
}

.dafabet-team-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.draw-text {
    color: var(--text-light) !important;
    font-weight: 500;
}

.dafabet-team-score {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 18px;
}

.dafabet-odds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dafabet-odd-button {
    background: white;
    border: 1px solid var(--border-color);
    padding: 14px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 65px;
}

.dafabet-odd-button:hover {
    background: #fff9f0;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dafabet-odd-button.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 30, 55, 0.3);
}

.dafabet-odd-label {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
    text-align: center;
    line-height: 1.2;
    font-weight: 600;
}

.dafabet-odd-value {
    font-weight: 800;
    color: var(--text-color);
    font-size: 16px;
}

.dafabet-odd-button.selected .dafabet-odd-label,
.dafabet-odd-button.selected .dafabet-odd-value {
    color: white;
}

/* Partners Section */
.dafabet-partners-section {
    background: white;
    border-radius: 10px;
    padding: 25px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.partners-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 700;
}

.dafabet-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.partner-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.3s;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.partner-logo {
    font-size: 40px;
    margin-bottom: 15px;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.partner-name {
    font-weight: 700;
    color: var(--text-color);
    font-size: 14px;
}

/* News Section */
.news-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.news-category {
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card h4 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-time {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* ===========================================
   RIGHT SIDEBAR
=========================================== */
.dafabet-right-sidebar {
    width: var(--right-sidebar-width);
    min-width: var(--right-sidebar-width);
    background: var(--right-sidebar-bg);
    color: white;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height) - var(--footer-height));
}

.dafabet-live-match-header {
    padding: 18px 20px;
    background: #1a1a1a;
    font-size: 14px;
    color: #ccc;
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.right-sidebar-score {
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    border-bottom: 1px solid #444;
}

.score-team-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.score-team-name-main {
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.score-team-name-sub {
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
}

.score-numbers {
    text-align: right;
}

.score-main {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
}

.score-sub {
    font-size: 28px;
    font-weight: 900;
    color: #777;
    margin-top: 8px;
}

/* Match Stats */
.match-stats {
    padding: 0 20px;
}

.match-stats h4 {
    margin-bottom: 18px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item {
    margin-bottom: 18px;
}

.stat-item span {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
}

.stat-bar {
    display: flex;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    background: #444;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.stat-fill {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    transition: width 0.5s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.stat-fill.home {
    background: linear-gradient(135deg, var(--primary-color), #c2185b);
}

.stat-fill.away {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

/* Live Bets */
.live-bets {
    padding: 0 20px;
}

.live-bets h4 {
    margin-bottom: 18px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bet-item {
    background: #3a3a3a;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    border: 1px solid #444;
}

.bet-item:hover {
    background: #444;
    border-color: #555;
    transform: translateX(5px);
}

.bet-user {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 700;
}

.bet-details {
    font-size: 13px;
    color: #ccc;
    font-weight: 500;
}

.bet-amount {
    font-size: 14px;
    color: var(--success-color);
    font-weight: 800;
}

/* Quick Bet */
.quick-bet {
    background: #3a3a3a;
    border-radius: 10px;
    padding: 25px 20px;
    margin: 0 20px;
    border: 1px solid #444;
}

.quick-bet h4 {
    margin-bottom: 20px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bet-amount-input {
    width: 100%;
    padding: 14px;
    background: #2c2c2c;
    border: 2px solid #555;
    border-radius: 8px;
    color: white;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.bet-amount-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(224, 30, 55, 0.2);
}

.bet-amount-input::placeholder {
    color: #777;
    font-weight: normal;
}

.quick-odds {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.quick-odd-btn {
    padding: 16px;
    background: #444;
    border: 2px solid #555;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s;
    text-align: center;
}

.quick-odd-btn:hover {
    background: #555;
    border-color: var(--primary-color);
}

.quick-odd-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(224, 30, 55, 0.4);
}

.place-bet-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--success-color), #388E3C);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.place-bet-btn:hover {
    background: linear-gradient(135deg, #45a049, #2E7D32);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* WhatsApp Support */
.whatsapp-support {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 10px;
    padding: 25px 20px;
    margin: 0 20px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.whatsapp-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.whatsapp-info {
    flex: 1;
}

.whatsapp-info h5 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 800;
}

.whatsapp-info p {
    margin: 0 0 15px 0;
    font-size: 14px;
    opacity: 0.9;
}

.whatsapp-btn {
    background: white;
    color: #25D366;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whatsapp-btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===========================================
   RESPONSIVE DESIGN
=========================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 200px;
        --right-sidebar-width: 280px;
    }
    
    .dafabet-main-content {
        padding: 15px;
    }
    
    .dafabet-sport-category {
        min-width: 100px;
        padding: 14px 16px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .dafabet-container {
        flex-direction: column;
    }
    
    .dafabet-left-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        height: auto;
        max-height: 60px;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        z-index: 100;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
    }
    
    .dafabet-left-sidebar.collapsed {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .dafabet-sidebar-section {
        border-right: 1px solid #333;
        border-bottom: none;
        min-width: fit-content;
        display: flex;
        flex-direction: row;
    }
    
    .dafabet-sidebar-item {
        min-width: 120px;
        padding: 12px 16px;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    
    .dafabet-collapse-btn {
        display: none;
    }
    
    .quick-links-header,
    .settings-header,
    .all-sports-header {
        display: none !important;
    }
    
    .badge {
        position: absolute;
        top: 5px;
        right: 5px;
        font-size: 9px;
        padding: 1px 4px;
        min-width: 16px;
    }
    
    .dafabet-right-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        height: auto;
        position: relative;
        top: 0;
        order: 3;
    }
    
    .dafabet-main-content {
        order: 2;
        padding: 15px;
        height: auto;
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .home-page-custom,
    .dafabet-container {
        min-height: auto;
    }
    
    .dafabet-content-header {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .dafabet-search-box,
    .search-btn {
        width: 100%;
    }
    
    .filter-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .dafabet-filter-dropdown {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .dafabet-sport-category {
        min-width: 90px;
        padding: 12px 14px;
    }
    
    .dafabet-match-card {
        padding: 15px;
    }
    
    .featured-matches,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-support {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .whatsapp-icon {
        font-size: 40px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --header-height: 60px;
    }
    
    .dafabet-main-content {
        padding: 10px;
    }
    
    .dafabet-match-content {
        grid-template-columns: 1fr;
    }
    
    .dafabet-odds-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dafabet-partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
        .dafabet-left-sidebar {
/*         max-height: 50px; */
        display: none;
    }

    
    .dafabet-sidebar-item {
        min-width: 100px;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .dafabet-sport-category {
        min-width: 80px;
        padding: 10px 12px;
    }
    
    .sport-name {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .partners-title {
        font-size: 18px;
    }
}

/* ===========================================
   SCROLLBAR STYLING
=========================================== */
.dafabet-left-sidebar::-webkit-scrollbar,
.dafabet-main-content::-webkit-scrollbar,
.dafabet-right-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dafabet-left-sidebar::-webkit-scrollbar-track {
    background: #252525;
}

.dafabet-main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dafabet-right-sidebar::-webkit-scrollbar-track {
    background: #444;
}

.dafabet-left-sidebar::-webkit-scrollbar-thumb,
.dafabet-main-content::-webkit-scrollbar-thumb,
.dafabet-right-sidebar::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

.dafabet-left-sidebar::-webkit-scrollbar-thumb:hover,
.dafabet-main-content::-webkit-scrollbar-thumb:hover,
.dafabet-right-sidebar::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* ===========================================
   DEBUG & UTILITY
=========================================== */
.dafabet-debug-indicator {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    background: green;
    color: white;
    padding: 5px 10px;
    z-index: 9999;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Selection Styling */
::selection {
    background: rgba(224, 30, 55, 0.3);
    color: inherit;
}

/* Focus Outline */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .dafabet-left-sidebar,
    .dafabet-right-sidebar,
    .search-container,
    .filter-container,
    .dafabet-sports-categories,
    .whatsapp-support {
        display: none !important;
    }
    
    .dafabet-main-content {
        width: 100% !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    .dafabet-match-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

.bdg-search-modal, .bdg-sidebar {
   display: none;
}


/* Footer Styles */
.site-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #ffffff;
  margin-top: 1px;
  position: relative;
  overflow: hidden;
  width: 100%;
}


.footer-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0px 0px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  padding-right: 40px;
}

.footer-brand .brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-brand .logo {
  width: 90px;
  height: 90px;
	transform: scale(2.9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 24px;
}

.footer-brand .title {
  font-weight: 800;
  font-size: 28px;
  color: #ffffff;
  letter-spacing: 0.8px;
}

.footer-description {
  color: #b8c5d1;
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: 15px;
}

.footer-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-badge {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.footer-column h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #0ea678, #1d6f56);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #b8c5d1;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 4px 0;
  position: relative;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #0ea678, #1d6f56);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 8px;
}

.footer-links a:hover::before {
  width: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8c5d1;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: linear-gradient(135deg, #0ea678, #1d6f56);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14,166,120,0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copyright {
  color: #b8c5d1;
  font-size: 14px;
  font-weight: 500;
}

.company-info {
  color: #8a9ba8;
  font-size: 12px;
}

.footer-bottom-right {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #b8c5d1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* MOBILE RESPONSIVE */
@media(max-width:768px){
  /* Show hamburger menu */
  .bdg-hamburger {
    display: flex;
  }
  
  /* Hide desktop navigation */
  .bdg-topnav {
    display: none;
  }
  
  /* Show mobile navigation */
  .bdg-mobile-nav {
    display: block;
  }
  
  /* CRITICAL: Reset main content for mobile */
  .bdg-main-content {
    margin-left: 0 !important;
    margin-top: var(--header-h);
    margin-bottom: 70px;
    padding: 12px;
  }
  
  /* Hide sidebar by default on mobile */
  .bdg-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1051;
  }
  
  /* Show sidebar when active */
  .bdg-sidebar.active {
    transform: translateX(0);
  }
  
  /* Show overlay when sidebar is active */
  .bdg-sidebar-overlay.active {
    display: block;
  }
  
  /* Mobile adjustments */
  .bdg-banner {
    flex: 0 0 100%;
  }
  
  .bdg-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .bdg-original-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }

  .bdg-game-card-title {
    font-size: 10px;
    bottom: 6px;
    left: 6px;
    right: 6px;
    padding: 3px 6px;
  }

  .bdg-column-header {
    width: 36px;
    font-size: 11px;
  }

  .bdg-odds-btn {
    width: 36px;
    height: 32px;
    font-size: 10px;
  }

  .bdg-odds-value {
    font-size: 10px;
  }

  .bdg-odds-subvalue {
    font-size: 8px;
  }

  .bdg-match-row {
    padding: 10px 12px;
    min-height: 52px;
  }

  .bdg-team-names {
    font-size: 12px;
  }

  .bdg-match-details {
    font-size: 10px;
  }

  .bdg-sport-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .footer-content {
    padding: 40px 20px 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-brand {
    padding-right: 0;
  }

  .footer-brand .brand {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-bottom-right {
    justify-content: center;
  }
}

@media(max-width:480px){
  .bdg-header {
    padding: 0 12px;
  }
  
  .bdg-brand .title {
    font-size: 14px;
  }
  
  .bdg-brand .logo {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
  
  .bdg-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .bdg-original-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 6px;
  }

.bdg-clock {
    display: none;
}

  .footer-content {
    padding: 30px 15px 15px;
  }

  .footer-brand .title {
    font-size: 24px;
  }

  .footer-brand .logo {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}
