/* Custom Styles for Dream11 Fantasy Sports */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section .display-4 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffd700 !important;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 25px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    transform: translateY(-2px);
}

/* Match Cards */
.match-card {
    border-left: 4px solid #007bff;
}

.match-card.live {
    border-left-color: #dc3545;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Team Selection */
.player-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.player-card:hover {
    border-color: #007bff;
    transform: scale(1.02);
}

.player-card.selected {
    border-color: #28a745;
    background-color: #f8fff9;
}

.player-card.captain {
    border-color: #ffc107;
    background-color: #fffdf7;
}

.player-card.vice-captain {
    border-color: #17a2b8;
    background-color: #f7fcff;
}

/* Credits Display */
.credits-display {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
}

/* Contest Cards */
.contest-card {
    position: relative;
    overflow: hidden;
}

.contest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.contest-card:hover::before {
    left: 100%;
}

/* Leaderboard */
.leaderboard-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.rank-1 {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.rank-2 {
    background: linear-gradient(45deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.rank-3 {
    background: linear-gradient(45deg, #cd7f32, #e4a853);
    color: white;
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

/* App-style Home (index.php) */
.app-home {
    background: #f6f7fb;
    min-height: 100vh;
}

.app-topbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 18px 0 16px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.app-greeting {
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
}

.app-subtitle {
    opacity: 0.9;
    font-size: 13px;
}

.wallet-chip,
.icon-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(8px);
}

.icon-chip {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
}

.wallet-chip:hover,
.icon-chip:hover {
    color: #fff;
    background: rgba(255,255,255,0.22);
}

.app-search .input-group {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.app-search .form-control {
    border-radius: 0;
}

.app-content {
    padding-bottom: 92px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    text-decoration: none;
    color: #212529;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.quick-action:hover {
    color: #212529;
    transform: translateY(-2px);
}

.qa-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.qa-title {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.1;
}

.qa-sub {
    font-size: 12px;
    color: #6c757d;
}

.app-section-title {
    font-weight: 900;
}

.app-link {
    text-decoration: none;
    font-weight: 700;
}

.match-card-app {
    display: block;
    text-decoration: none;
    color: #212529;
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.match-card-app:hover {
    color: #212529;
    transform: translateY(-2px);
}

.match-card-app.live {
    border-left: 4px solid #dc3545;
}

.mc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mc-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mc-time {
    font-size: 12px;
    color: #6c757d;
    font-weight: 700;
}

.mc-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.mc-team {
    width: 42%;
}

.mc-code {
    font-weight: 900;
    font-size: 16px;
}

.mc-score {
    font-weight: 800;
    color: #111827;
}

.mc-vs {
    width: 16%;
    text-align: center;
    font-weight: 800;
    color: #6c757d;
}

.mc-bottom {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.mc-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.mc-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.mc-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #fff !important;
}

.mc-cta:hover::before {
    left: 100%;
}

.mc-cta i {
    transition: transform 0.3s ease;
}

.mc-cta:hover i {
    transform: translateX(3px);
}

/* Special styling for live matches - Join Contest */
.match-card-app.live .mc-cta {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3);
    animation: livePulse 2s infinite;
}

.match-card-app.live .mc-cta:hover {
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
}

@keyframes livePulse {
    0% { box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3); }
    50% { box-shadow: 0 4px 12px rgba(238, 90, 36, 0.5); }
    100% { box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3); }
}

/* Special styling for upcoming matches - Create Team */
.match-card-app:not(.live) .mc-cta {
    background: linear-gradient(135deg, #00d2d3 0%, #01a3a4 100%);
    box-shadow: 0 4px 12px rgba(0, 210, 211, 0.3);
}

.match-card-app:not(.live) .mc-cta:hover {
    box-shadow: 0 6px 20px rgba(0, 210, 211, 0.4);
}

.app-scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.app-scroll-row::-webkit-scrollbar {
    height: 6px;
}

.app-scroll-row::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 999px;
}

.match-pill {
    scroll-snap-align: start;
    text-decoration: none;
    color: #212529;
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.match-pill:hover {
    color: #212529;
}

.mp-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.mp-time {
    font-size: 11px;
    font-weight: 700;
    color: #6c757d;
}

.mp-mid {
    margin-top: 10px;
}

.mp-venue {
    font-size: 12px;
    margin-top: 4px;
}

.mp-bottom {
    margin-top: 10px;
}

.app-banner {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff;
    border-radius: 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ab-title {
    font-weight: 900;
}

.ab-sub {
    opacity: 0.85;
    font-size: 12px;
}

.app-empty {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

.app-page {
    background: #f6f7fb;
    min-height: 100vh;
}

.filter-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.filter-chips::-webkit-scrollbar {
    height: 0;
}

.filter-chip {
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.14);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
}

.filter-chip.active {
    background: #fff;
    color: #6f42c1;
    border-color: rgba(255,255,255,0.75);
}

.filter-chip:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

.app-surface {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 12px;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.92);
    border-top: 1px solid rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 10px;
    z-index: 1030;
}

.bn-item {
    text-decoration: none;
    color: #6c757d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 0;
}

.bn-item i {
    font-size: 18px;
}

.bn-item.active {
    color: #6f42c1;
}

/* Mobile-specific bottom navigation enhancements */
@media (max-width: 991.98px) {
    /* Hide desktop navigation on mobile */
    .navbar {
        display: none !important;
    }
    
    /* Mobile brand header */
    .mobile-brand-header {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        padding: 12px 16px;
        z-index: 1020;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .mobile-brand {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .mobile-brand i {
        font-size: 20px;
    }
    
    /* Add top padding to body to account for mobile header */
    body {
        padding-top: 50px !important;
    }
    
    .bottom-nav {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        padding: 8px 10px !important;
        background: rgba(255,255,255,0.92) !important;
        backdrop-filter: blur(10px) !important;
        border-top: 1px solid rgba(0,0,0,0.08) !important;
    }
    
    .bn-item {
        font-size: 11px !important;
        padding: 6px 0 !important;
        gap: 4px !important;
    }
    
    .bn-item i {
        font-size: 18px !important;
    }
}

/* Hide mobile brand header on desktop */
@media (min-width: 992px) {
    .mobile-brand-header {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
}

/* Footer */
footer {
    margin-top: auto;
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffd700 !important;
}

/* Live Match Updates */
.recent-update {
    animation: highlightUpdate 2s ease-in-out;
}

@keyframes highlightUpdate {
    0% { background-color: rgba(76, 175, 80, 0.1); }
    50% { background-color: rgba(76, 175, 80, 0.3); }
    100% { background-color: transparent; }
}

/* Ball by Ball Display */
.current-over {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.current-over-details {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ball {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    border: 2px solid;
}

.ball.normal {
    background: #fff;
    border-color: #6c757d;
    color: #6c757d;
}

.ball.four {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.ball.six {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.ball.wicket {
    background: #343a40;
    border-color: #343a40;
    color: #fff;
}

.ball.extra {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

/* Live Score Animation */
.live-score-updated {
    animation: scoreUpdate 1s ease-in-out;
}

@keyframes scoreUpdate {
    0% { transform: scale(1); color: inherit; }
    50% { transform: scale(1.2); color: #28a745; }
    100% { transform: scale(1); color: inherit; }
}

/* Match Status Indicators */
.match-status.live {
    animation: pulse 2s infinite;
}

.match-status.completed {
    background: #28a745 !important;
}

.match-status.upcoming {
    background: #ffc107 !important;
}

/* API Loading States */
.api-loading {
    opacity: 0.6;
    pointer-events: none;
}

.api-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* API Status Monitoring */
.api-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.api-status-item {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #6c757d;
    transition: all 0.3s ease;
}

.api-status-item.status-active {
    border-left-color: #28a745;
}

.api-status-item.status-inactive {
    border-left-color: #dc3545;
}

.api-name {
    font-weight: 700;
    font-size: 16px;
    color: #212529;
    margin-bottom: 8px;
}

.api-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6c757d;
}

.status-active .status-dot {
    background: #28a745;
    animation: statusPulse 2s infinite;
}

.status-inactive .status-dot {
    background: #dc3545;
}

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

.status-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-usage {
    margin-top: 10px;
}

.usage-label {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 4px;
}

.usage-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Player Statistics Enhancement */
.player-stats-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
}

.stats-enhanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-enhanced-item {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-enhanced-value {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-enhanced-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Performance Indicators */
.performance-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.performance-label {
    min-width: 100px;
    font-size: 12px;
    font-weight: 600;
}

.performance-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.performance-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.performance-fill.excellent {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.performance-fill.good {
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.performance-fill.average {
    background: linear-gradient(90deg, #ffc107, #e0a800);
}

.performance-fill.poor {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

/* Player Comparison */
.player-comparison-enhanced {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 20px 0;
}

.comparison-header-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comparison-stats-enhanced {
    padding: 20px;
}

.comparison-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.comparison-stat-row:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.comparison-stat-value {
    font-weight: 700;
    font-size: 16px;
    min-width: 50px;
    text-align: center;
}

.comparison-stat-value:first-child {
    color: #007bff;
}

.comparison-stat-value:last-child {
    color: #dc3545;
}

.comparison-stat-label {
    font-weight: 600;
    color: #6c757d;
    flex: 1;
    text-align: center;
}

/* Recent Form */
.recent-form-enhanced {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.form-match-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    min-width: 45px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.form-runs-enhanced {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.form-wickets-enhanced {
    font-size: 10px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .match-card .d-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Responsive CTA buttons */
    .mc-cta {
        font-size: 12px;
        padding: 8px 14px;
        gap: 6px;
    }
    
    .mc-bottom {
        justify-content: center;
        margin-top: 10px;
    }
    
    /* Mobile Team Creation Responsive */
    .team-header {
        padding: 16px 12px;
    }
    
    .team-header h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .team-name-input {
        font-size: 16px;
        padding: 12px 14px;
    }
    
    .team-stats-bar {
        padding: 12px 8px;
        top: 70px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .player-card {
        padding: 12px;
    }
    
    .player-name {
        font-size: 14px;
    }
    
    .player-team {
        font-size: 11px;
    }
    
    .credits-badge {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .player-type-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .role-btn {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .team-actions {
        padding: 12px;
    }
    
    .action-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .action-btn i {
        margin-right: 6px;
    }
    
    /* Toast notifications mobile */
    .toast-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .team-stats-bar {
        padding: 8px 4px;
    }
    
    .stat-value {
        font-size: 14px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .player-card {
        padding: 10px;
    }
    
    .player-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .player-credits {
        text-align: left;
        align-self: flex-end;
    }
    
    .role-btn {
        font-size: 10px;
        padding: 4px 6px;
    }
    
    .action-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .action-btn i {
        display: none;
    }
}

/* Mobile App-Style Team Creation Interface */
.mobile-team-creation {
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Mobile Header */
.mobile-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn, .help-btn {
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.back-btn:hover, .help-btn:hover {
    background: rgba(255,255,255,0.1);
}

.match-timer {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    flex: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Team Stats Section */
.team-stats-section {
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.team-limit {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    text-align: center;
}

.team-composition {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.team-info {
    flex: 1;
}

.players-count {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.team-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.team-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
}

.team-name {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.team-count {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

/* Player Selection Indicators */
.player-indicators {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin: 16px 0;
}

.indicator-slot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #f5f5f5;
    transition: all 0.3s ease;
}

.indicator-slot.filled {
    background: #4caf50;
    border-color: #4caf50;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.opponent-info {
    text-align: right;
    flex: 1;
}

.credits-left {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-top: 8px;
}

/* Player Category Navigation */
.player-categories {
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
}

.category-btn {
    flex: 1;
    padding: 12px 8px;
    border: 2px solid #e0e0e0;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.category-btn.active {
    background: #4caf50;
    border-color: #4caf50;
    color: #fff;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.category-btn:hover:not(.active) {
    background: #e8f5e8;
    border-color: #4caf50;
}

/* Category Info */
.category-info {
    background: #fff;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#category-instruction {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.filter-btn {
    font-size: 16px;
    color: #666;
    cursor: pointer;
    padding: 4px;
}

/* Player List Header */
.player-list-header {
    background: #f8f8f8;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-col {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-col:first-child {
    flex: 2;
    text-align: left;
}

.header-col:nth-child(2) {
    flex: 1;
    text-align: center;
}

.header-col:last-child {
    flex: 1;
    text-align: right;
}

/* Players List */
.players-list {
    background: #fff;
    min-height: 400px;
}

.loading-players {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.loading-players .loading {
    margin-bottom: 16px;
}

/* Modern Player Cards */
.player-card-mobile {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.player-card-mobile:hover {
    background: #f8f9ff;
}

.player-card-mobile.selected {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    margin-right: 12px;
    position: relative;
}

.player-team-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #ff6b35;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 8px;
    font-weight: 700;
    border: 2px solid #fff;
}

.player-info-mobile {
    flex: 2;
    margin-right: 16px;
}

.player-name {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.player-selection-stats {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.player-status {
    font-size: 11px;
    color: #4caf50;
    font-weight: 600;
}

.player-stats-mobile {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item-mobile {
    text-align: center;
}

.stat-value-mobile {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.stat-label-mobile {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-player-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4caf50;
    border: 2px solid #fff;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-player-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.player-card-mobile.selected .add-player-btn {
    background: #f44336;
    content: '−';
}

/* Bottom Navigation - Team Creation Specific */
.mobile-team-creation .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.nav-btn {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #4caf50;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.team-preview-btn {
    background: #fff;
    color: #4caf50;
}

.team-preview-btn:hover {
    background: #f8f9f8;
}

.continue-btn {
    background: #4caf50;
    color: #fff;
    border-color: #4caf50;
}

.continue-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.continue-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Team Header */
.team-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.team-name-input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    backdrop-filter: blur(10px);
}

.team-name-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.team-name-input:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
    color: #fff;
}

/* Team Stats Bar */
.team-stats-bar {
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 80px;
    z-index: 90;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    display: block;
}

.stat-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item.players .stat-value {
    color: #3b82f6;
}

.stat-item.credits .stat-value {
    color: #10b981;
}

.stat-item.captain .stat-value {
    color: #f59e0b;
}

.stat-item.vice-captain .stat-value {
    color: #8b5cf6;
}

/* Player Categories */
.player-category {
    background: #fff;
    margin-bottom: 8px;
    overflow: hidden;
}

.category-header {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 12px 16px;
    font-weight: 800;
    font-size: 14px;
    color: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
}

.category-count {
    background: #6366f1;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Modern Player Cards */
.player-card {
    background: #fff;
    border: none;
    border-radius: 0;
    padding: 16px;
    margin-bottom: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.3s ease;
}

.player-card:hover {
    background: #f8f9ff;
    transform: translateX(4px);
}

.player-card:hover::before {
    left: 100%;
}

.player-card.selected {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-left-color: #6366f1;
    transform: translateX(4px);
}

.player-card.captain {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #f59e0b;
}

.player-card.vice-captain {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-left-color: #8b5cf6;
}

.player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.player-name {
    font-weight: 700;
    font-size: 15px;
    color: #111827;
    margin-bottom: 2px;
}

.player-team {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.player-credits {
    text-align: right;
}

.credits-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    display: inline-block;
}

.player-type-badge {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    display: inline-block;
}

/* Captain/Vice-Captain Buttons */
.player-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.role-btn {
    flex: 1;
    padding: 6px 12px;
    border: 2px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.role-btn.captain-btn {
    border-color: #f59e0b;
    color: #f59e0b;
}

.role-btn.captain-btn.active {
    background: #f59e0b;
    color: #fff;
}

.role-btn.vice-captain-btn {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.role-btn.vice-captain-btn.active {
    background: #8b5cf6;
    color: #fff;
}

.role-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Floating Action Buttons */
.team-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    z-index: 200;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

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

.action-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-preview {
    background: #f3f4f6;
    color: #374151;
}

.btn-preview:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.btn-save {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-clear {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-clear:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.player-role-badge {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.role-batsman { background-color: #e3f2fd; color: #1976d2; }
.role-bowler { background-color: #f3e5f5; color: #7b1fa2; }
.role-allrounder { background-color: #e8f5e8; color: #388e3c; }
.role-wicketkeeper { background-color: #fff3e0; color: #f57c00; }

/* Contest Types */
.contest-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 15px;
}

.contest-grand-league { background: linear-gradient(45deg, #ff6b6b, #ee5a24); }
.contest-head-to-head { background: linear-gradient(45deg, #4834d4, #686de0); }
.contest-small-league { background: linear-gradient(45deg, #00d2d3, #01a3a4); }
.contest-practice { background: linear-gradient(45deg, #6ab04c, #badc58); }

/* Wallet Section */
.wallet-balance {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.wallet-balance .amount {
    font-size: 2rem;
    font-weight: 700;
}

/* Notifications */
.notification-item {
    border-left: 4px solid #007bff;
    padding-left: 15px;
    margin-bottom: 10px;
}

.notification-item.unread {
    background-color: #e3f2fd;
    border-left-color: #2196f3;
}

/* Profile Section */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #007bff;
    object-fit: cover;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 320px;
    border-left: 4px solid #6b7280;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.toast-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.toast-success .toast-content {
    color: #065f46;
}

.toast-error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.toast-error .toast-content {
    color: #991b1b;
}

.toast-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.toast-warning .toast-content {
    color: #92400e;
}

.toast-info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.toast-info .toast-content {
    color: #1e40af;
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
