/* Mobile App Style for 1XTotal */
/* This CSS transforms the website into a mobile app-like experience */

/* App Container - Creates app-like boundaries */
.app-container {
    max-width: 100%;
    margin: 0 auto;
    background: #f5f5f5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    /* Removed transform-style and perspective that can interfere with fixed positioning */
    /* transform-style: preserve-3d; */
    /* perspective: 1000px; */
}

/* Page Title - Moved below header as requested */
.page-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    padding: 20px 16px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 16px 16px;
    transform: translateZ(8px);
    transition: all 0.3s ease;
}

.page-title:hover {
    transform: translateZ(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* App Header - Fixed top bar like mobile apps */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.app-header:hover {
    transform: translateZ(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.app-header .header-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    flex: 1;
    margin: 0 10px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    transform: translateZ(5px);
}

/* Subtle professional enhancement */
.app-header .header-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.app-header .header-icon {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    transform: translateZ(5px);
}

/* القائمة الجانبية - تصميم احترافي بتأثيرات 3D */
.sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2000;
    padding: 0;
    overflow-y: auto;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    /* إضافة تأثيرات 3D */
    transform: translateZ(0);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.sidebar.active {
    right: 0;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.2);
    /* تأثير 3D عند الفتح */
    transform: translateZ(20px) rotateY(0deg);
}

/* تأثير 3D عند فتح القائمة */
.sidebar.slide-in {
    animation: slideInSidebar 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInSidebar {
    0% {
        right: -350px;
        transform: translateZ(0) rotateY(15deg);
    }
    100% {
        right: 0;
        transform: translateZ(20px) rotateY(0deg);
    }
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
    /* تأثير 3D للهيدر */
    transform: translateZ(10px);
    transform-style: preserve-3d;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.sidebar-header h3 {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateZ(5px);
}

.sidebar-header h3 i {
    font-size: 1.6rem;
    color: #ffc107;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transform: translateZ(8px);
}

.sidebar-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    font-weight: 300;
    line-height: 1.4;
    transform: translateZ(3px);
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.3rem;
    position: relative;
    transform: translateZ(2px);
    transform-style: preserve-3d;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 1.2rem 2rem;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-right: 4px solid transparent;
    position: relative;
    font-weight: 500;
    font-size: 1rem;
    transform: translateZ(3px);
    transform-style: preserve-3d;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    transition: width 0.3s ease;
    z-index: 1;
    transform: translateZ(-1px);
}

.sidebar-menu a:hover::before {
    width: 100%;
}

.sidebar-menu a:hover {
    background: transparent;
    border-right-color: #667eea;
    color: #667eea;
    transform: translateZ(3px) translateX(-5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.sidebar-menu a i {
    margin-left: 1rem;
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    transform: translateZ(5px);
}

.sidebar-menu a:hover i {
    transform: translateZ(5px) scale(1.1);
    color: #667eea;
}

.sidebar-menu .btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    transform: translateZ(3px);
}

.sidebar-menu .btn-telegram:hover {
    background: linear-gradient(135deg, #229ed9 0%, #0088cc 100%);
    transform: translateZ(3px) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.sidebar-menu .btn-telegram i {
    color: white;
    margin-left: 0.8rem;
    transform: translateZ(4px);
}

.sidebar-menu .btn {
    margin: 0.8rem 2rem;
    justify-content: center;
    border-radius: 25px;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateZ(3px);
    transform-style: preserve-3d;
}

.sidebar-menu .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%) translateZ(-1px);
}

.sidebar-menu .btn:hover::before {
    width: 300px;
    height: 300px;
}

.sidebar-menu .btn-vip {
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #333;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    animation: pulse-vip 3s ease-in-out infinite;
    transform: translateZ(3px);
}

@keyframes pulse-vip {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
        transform: translateZ(3px) scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
        transform: translateZ(3px) scale(1.02);
    }
}

.sidebar-menu .btn-vip:hover {
    background: linear-gradient(45deg, #ffb300, #ff8f00);
    transform: translateZ(3px) translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.sidebar-menu .btn-secondary {
    background: transparent;
    color: #6c757d;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateZ(3px);
}

.sidebar-menu .btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
    transform: translateZ(3px) translateY(-1px);
}

.sidebar-menu .btn-primary {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transform: translateZ(3px);
}

.sidebar-menu .btn-primary:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
    transform: translateZ(3px) translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* App Content - Main content area with proper spacing */
.app-content {
    margin-top: 60px;
    margin-bottom: 70px; /* Changed from 60px to 70px to match bottom nav height */
    padding: 16px;
    min-height: calc(100vh - 130px); /* Adjusted calculation */
    /* Add this to ensure content doesn't overlap with fixed nav */
    position: relative;
    z-index: 1;
}

/* Date Navigation - Buttons for yesterday, today, tomorrow */
.date-navigation {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 25px;
    padding: 0 5px;
    transform: translateZ(6px);
}

.nav-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 18px 15px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #555;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    flex: 1;
    position: relative;
    overflow: hidden;
    text-align: center;
    gap: 10px;
    transform: translateZ(3px);
    transform-style: preserve-3d;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.nav-button:hover::before {
    opacity: 0.1;
}

.nav-button i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    transform: translateZ(2px);
}

.nav-button:hover i {
    transform: translateZ(2px) scale(1.15);
}

.nav-button:hover {
    transform: translateZ(3px) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    border-color: #e0e0e0;
}

.nav-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transform: translateZ(3px);
}

.nav-button.active i {
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* App Bottom Navigation - Updated with four buttons */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    border-top: 2px solid #f0f0f0;
    padding: 5px 0;
    /* Ensure it's not affected by parent transforms */
    transform: none;
    -webkit-transform: none;
    /* Add these properties to ensure visibility */
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    /* Ensure it's always visible */
    visibility: visible;
    opacity: 1;
}

.app-bottom-nav:hover {
    transform: translateZ(12px);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: #777;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 0;
    border-radius: 12px;
    margin: 0 5px;
    position: relative;
    overflow: hidden;
    transform: translateZ(3px);
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover::before {
    opacity: 0.05;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    transform: translateZ(2px);
}

.nav-item:hover {
    transform: translateZ(3px) translateY(-2px);
    color: #667eea;
}

.nav-item.active {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    font-weight: 600;
    transform: translateZ(3px);
}

.nav-item.active i {
    color: #667eea;
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
    transform: translateZ(2px) scale(1.1);
}

/* App Cards - Card-based design like mobile apps */
.app-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    transform: translateZ(3px);
    transform-style: preserve-3d;
}

.app-card:hover {
    transform: translateZ(3px) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.app-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.app-card-badge {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* App List Items - List design like mobile apps */
.app-list-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.app-list-item:last-child {
    border-bottom: none;
}

.app-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-left: 16px;
    font-size: 1rem;
}

.app-list-content {
    flex: 1;
}

.app-list-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.app-list-subtitle {
    font-size: 0.85rem;
    color: #666;
}

.app-list-chevron {
    color: #ccc;
    font-size: 1.2rem;
}

/* App Buttons - Mobile-style buttons */
.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-height: 48px;
}

.app-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.app-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.app-btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.app-btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #333;
}

.app-btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
    color: white;
}

.app-btn-block {
    display: flex;
    width: 100%;
}

.app-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* App Status Indicators - Status badges like mobile apps */
.app-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.app-status-success {
    background: #e8f5e8;
    color: #2e7d32;
}

.app-status-warning {
    background: #fff8e1;
    color: #f57f17;
}

.app-status-danger {
    background: #ffebee;
    color: #c62828;
}

.app-status-info {
    background: #e3f2fd;
    color: #1565c0;
}

/* App Form Elements - Mobile-friendly forms */
.app-form-group {
    margin-bottom: 20px;
}

.app-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.app-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.app-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* App Match Cards - Special styling for match cards */
.app-match-card {
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    color: white; /* Text color for better contrast on gradient backgrounds */
    transform: translateZ(3px);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    /* Ensure animations work on mobile */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
}

/* No Matches Message - Professional centered styling */
.no-matches {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    background: -webkit-linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 2rem auto;
    max-width: 500px;
    width: 90%;
    position: relative;
    overflow: hidden;
    -webkit-transform: translateZ(3px);
    transform: translateZ(3px);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    padding: 2rem;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.no-matches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: -webkit-linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.no-matches:hover {
    -webkit-transform: translateZ(3px) translateY(-5px);
    transform: translateZ(3px) translateY(-5px);
    -webkit-box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.no-matches-content {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
}

.no-matches i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.no-matches p {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.no-matches .subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 400;
    margin-top: 0.5rem;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Add animation to the icon */
@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.no-matches i {
    -webkit-animation: pulse 2s infinite;
    animation: pulse 2s infinite;
}

/* VIP No Matches Message - Using VIP colors */
.no-matches[vip] {
    background: -webkit-linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
    border: 2px solid #9c27b0;
}

.no-matches[vip]::before {
    background: -webkit-linear-gradient(90deg, #9c27b0 0%, #ffc107 100%);
    background: linear-gradient(90deg, #9c27b0 0%, #ffc107 100%);
}

.no-matches[vip] i {
    background: -webkit-linear-gradient(135deg, #9c27b0 0%, #ffc107 100%);
    background: linear-gradient(135deg, #9c27b0 0%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 15px rgba(156, 39, 176, 0.2);
}

.no-matches[vip]:hover {
    -webkit-transform: translateZ(3px) translateY(-5px);
    transform: translateZ(3px) translateY(-5px);
    -webkit-box-shadow: 0 15px 35px rgba(156, 39, 176, 0.15);
    box-shadow: 0 15px 35px rgba(156, 39, 176, 0.15);
}

/* VIP Match Card Shiny Effect */
.app-match-card[vip="1"] {
    position: relative;
    overflow: hidden;
    /* Ensure animations work on mobile */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
}

.app-match-card[vip="1"]::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -20%;
    width: 7.5%; /* Reduced by 50% from 15% */
    height: 300%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.9) 50%,
        transparent 70%
    );
    animation: shine 2s ease-in-out 1; /* Run only once */
    /* Ensure animations work on mobile */
    -webkit-animation: shine 2s ease-in-out 1; /* Run only once */
    pointer-events: none;
    z-index: 1;
    /* Improve performance on mobile */
    will-change: transform;
}

@keyframes shine {
    0% {
        transform: translateX(0) translateY(0) rotate(25deg);
    }
    100% {
        transform: translateX(2000%) translateY(0) rotate(25deg);
    }
}

/* Add webkit prefix for mobile browsers */
@-webkit-keyframes shine {
    0% {
        -webkit-transform: translateX(0) translateY(0) rotate(25deg);
    }
    100% {
        -webkit-transform: translateX(2000%) translateY(0) rotate(25deg);
    }
}

.app-match-card:hover {
    transform: translateZ(5px) translateY(-2px);
    -webkit-transform: translateZ(5px) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-match-card a {
    color: white; /* Ensure links are visible on gradient backgrounds */
    transform: translateZ(1px);
    -webkit-transform: translateZ(1px);
}

.app-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Light border for better visibility */
}

.app-match-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for better contrast */
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.app-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.app-team-logo {
    width: 65px; /* Increased from 60px */
    height: 65px; /* Increased from 60px */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: translateZ(2px);
    transition: all 0.3s ease;
    overflow: hidden; /* Prevent logo from overflowing */
    position: relative;
    flex-shrink: 0; /* Prevent shrinking in flex containers */
    /* Add a subtle inner shadow to contain logos better */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Style for images inside team logos */
.app-team-logo img {
    max-width: 90%; /* Increased from 85% */
    max-height: 90%; /* Increased from 85% */
    width: auto;
    height: auto;
    object-fit: contain; /* Ensure the entire logo is visible */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Add a subtle shadow to make logos stand out */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /* Ensure smooth scaling */
    transition: all 0.3s ease;
}

/* Add hover effect for images */
.app-team-logo img:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.app-team-logo:hover {
    transform: translateZ(2px) scale(1.05);
}

.app-team-name {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    color: white;
}

.app-vs {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.app-prediction {
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateZ(2px);
    transition: all 0.3s ease;
}

.app-prediction:hover {
    transform: translateZ(2px) scale(1.02);
}

/* Ensure text is visible on black background */
.app-prediction.pending {
    background: #000000;
    color: white;
}

.app-prediction.win {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.app-prediction.lost {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* App VIP Badge */
.app-vip-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #9c27b0, #ffc107);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(156, 39, 176, 0.3);
    transform: translateZ(4px);
    transition: all 0.3s ease;
}

.app-vip-badge:hover {
    transform: translateZ(6px) scale(1.05);
    box-shadow: 0 4px 10px rgba(156, 39, 176, 0.4);
}

/* VIP badge in header (centered between time and date) */
.app-match-header .app-vip-badge {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #9c27b0, #ffc107);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.3);
    margin: 0 10px;
    transform: translateZ(2px);
}

/* Section Header - Professional heading for match predictions */
.section-header {
    text-align: center;
    margin: 1.5rem 0 2rem 0;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transform: translateZ(2px);
    transform-style: preserve-3d;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.section-header:hover {
    transform: translateZ(2px) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-title i {
    color: #667eea;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* VIP Section Header - Using VIP colors */
.section-header[vip] {
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
    border: 2px solid #9c27b0;
}

.section-header[vip]::before {
    background: linear-gradient(90deg, #9c27b0 0%, #ffc107 100%);
}

.section-header[vip] .section-title {
    color: #2c3e50;
}

.section-header[vip] .section-title i {
    background: linear-gradient(135deg, #9c27b0 0%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 400;
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
}

/* App VIP Locked Prediction */
.app-match-card .app-prediction.vip-locked {
    background: #000000 !important;
    color: white;
    cursor: pointer;
    border: 2px dashed #9c27b0;
    position: relative;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    gap: 6px;
    margin: 10px auto;
    min-height: auto;
    width: auto;
}

.app-match-card .app-prediction.vip-locked:hover {
    border-color: #ffc107;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}

.app-match-card .app-prediction.vip-locked .vip-text {
    color: #ffc107; /* Gold color for VIP text */
    font-weight: bold;
    font-size: 1rem;
}

.app-match-card .app-prediction.vip-locked .vip-icon {
    color: #ffc107; /* Gold color for crown icon */
    font-size: 1rem;
}

.app-match-card .app-prediction.vip-locked .subscribe-text {
    font-size: 0.7rem;
    margin-left: 8px;
    opacity: 0.8;
    color: #ffc107; /* Gold color for subscribe text */
    white-space: nowrap;
}

/* Ensure proper centering of prediction area */
.app-match-card {
    display: flex;
    flex-direction: column;
}

.app-match-card .app-match-teams + .app-prediction.vip-locked {
    align-self: center;
}

/* Professional Subscription Modal Styling */
.subscription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.subscription-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: modalAppear 0.4s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg);
}

.subscription-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.subscription-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.subscription-header h2 i {
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.subscription-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #9c27b0;
    margin: 1rem 0;
    text-shadow: 0 2px 4px rgba(156, 39, 176, 0.2);
}

.subscription-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.bank-info {
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%) !important;
    padding: 1.5rem !important;
    border-radius: 15px !important;
    margin: 1.5rem 0;
    border: 1px solid #ffd54f;
    box-shadow: 0 5px 15px rgba(255, 213, 79, 0.1);
}

.bank-info h3 {
    margin-top: 0;
    color: #9c27b0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bank-details {
    margin: 1rem 0;
}

.bank-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bank-detail:last-child {
    border-bottom: none;
}

.bank-label {
    font-weight: 600;
    color: #2c3e50;
}

.bank-value {
    font-weight: 500;
    color: #666;
    text-align: left;
    direction: ltr;
    font-family: 'Courier New', monospace;
}

.copy-button {
    background: linear-gradient(135deg, #9c27b0 0%, #ffc107 100%) !important;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
    width: 100%;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
}

.whatsapp-section {
    text-align: center;
    margin: 2rem 0;
}

.whatsapp-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.whatsapp-section h3 i {
    color: #25D366;
}

.whatsapp-instructions {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.subscription-note {
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%) !important;
    border: 1px solid #ffeaa7 !important;
    border-radius: 15px !important;
    padding: 1.5rem !important;
    margin-top: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 234, 167, 0.2);
}

.subscription-note p {
    margin: 0;
    color: #856404;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

/* Responsive adjustments for subscription modal */
@media (max-width: 768px) {
    .subscription-modal-content {
        padding: 1.5rem !important;
        width: 95%;
    }
    
    .subscription-header h2 {
        font-size: 1.6rem;
    }
    
    .subscription-price {
        font-size: 1.5rem;
    }
    
    .bank-info {
        padding: 1.2rem !important;
    }
    
    .whatsapp-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .subscription-modal-content {
        padding: 1.2rem !important;
        width: 95%;
    }
    
    .subscription-header h2 {
        font-size: 1.4rem;
        gap: 0.5rem;
    }
    
    .subscription-price {
        font-size: 1.3rem;
    }
    
    .bank-info {
        padding: 1rem !important;
    }
    
    .bank-detail {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .whatsapp-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
}

/* App Animations */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-up {
    animation: slideInUp 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-content {
        padding: 12px;
    }
    
    .app-card, .app-match-card {
        padding: 16px;
    }
    
    .app-header {
        height: 56px;
        padding: 0 12px;
    }
    
    .app-header .header-title {
        font-size: 1.4rem;
    }
    
    .app-header .header-title span {
        font-size: 0.9rem;
    }
    
    .app-bottom-nav {
        height: 65px;
    }
    
    .nav-item {
        font-size: 0.75rem;
    }
    
    .nav-item i {
        font-size: 1.2rem;
    }
    
    .page-title {
        font-size: 1.5rem;
        padding: 16px 12px 8px;
    }
    
    .nav-button {
        padding: 15px 20px;
        font-size: 0.9rem;
        min-width: 85px;
    }
    
    .nav-button i {
        font-size: 1.3rem;
    }
    
    /* Mobile styles for section headers */
    .section-header {
        margin: 1rem 0 1.5rem 0;
        padding: 1rem 0.8rem;
        border-radius: 14px;
    }
    
    .section-title {
        font-size: 1.5rem;
        gap: 0.6rem;
    }
    
    .section-title i {
        font-size: 1.3rem;
    }
    
    /* Mobile styles for no matches message */
    .no-matches {
        min-height: 250px;
        margin: 1.5rem auto;
        padding: 1.5rem 1rem;
        width: 95%;
        max-width: none;
        border-radius: 16px;
    }
    
    .no-matches i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .no-matches p {
        font-size: 1.3rem;
    }
    
    .no-matches .subtitle {
        font-size: 0.95rem;
    }
    
    /* Mobile styles for VIP no matches message */
    .no-matches[vip] {
        border-width: 2px;
        border-radius: 16px;
    }
    
    .no-matches[vip] i {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .app-content {
        padding: 10px;
    }
    
    .app-card, .app-match-card {
        padding: 14px;
    }
    
    .app-team-logo {
        width: 55px; /* Increased from 50px */
        height: 55px; /* Increased from 50px */
        font-size: 1.2rem;
    }
    
    /* Adjust image size for smaller screens */
    .app-team-logo img {
        max-width: 85%; /* Increased from 80% */
        max-height: 85%; /* Increased from 80% */
    }
    
    .app-prediction {
        padding: 10px 16px;
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 1.3rem;
        padding: 14px 10px 6px;
    }
    
    .date-navigation {
        gap: 8px;
    }
    
    .nav-button {
        padding: 12px 16px;
        font-size: 0.85rem;
        min-width: 75px;
    }
    
    .nav-button i {
        font-size: 1.2rem;
    }
    
    .app-bottom-nav {
        height: 60px;
    }
    
    .nav-item {
        font-size: 0.65rem;
    }
    
    .nav-item i {
        font-size: 1.1rem;
    }
    
    /* Mobile styles for section headers */
    .section-header {
        margin: 0.8rem 0 1.2rem 0;
        padding: 0.8rem 0.6rem;
        border-radius: 12px;
    }
    
    .section-title {
        font-size: 1.3rem;
        gap: 0.5rem;
    }
    
    .section-title i {
        font-size: 1.1rem;
    }
    
    /* Mobile styles for no matches message */
    .no-matches {
        min-height: 200px;
        margin: 1rem auto;
        padding: 1rem;
        width: 95%;
        border-radius: 14px;
    }
    
    .no-matches i {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .no-matches p {
        font-size: 1.1rem;
    }
    
    .no-matches .subtitle {
        font-size: 0.85rem;
    }
    
    /* Mobile styles for VIP no matches message */
    .no-matches[vip] {
        border-width: 2px;
        border-radius: 14px;
    }
    
    .no-matches[vip] i {
        font-size: 2.5rem;
    }
}
