/* ==========================================================================
   FantasyCric Pro Theme & Layout Enhancements
   Clean, Sports-Focused, Modern Micro-Interactions & Ad-Safe Layouts
   ========================================================================== */

/* Typography & Root Variables */
:root {
    --fc-primary: #0284c7;
    --fc-primary-dark: #0369a1;
    --fc-accent: #00ffb3;
    --fc-secondary: #0ea5e9;
    --fc-dark: #0b1528;
    --fc-dark-subtle: #111d35;
    --fc-light: #f8fafc;
    --fc-border: #e2e8f0;
    --fc-text-main: #0f172a;
    --fc-text-muted: #64748b;
    --fc-card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --fc-card-hover-shadow: 0 20px 35px -5px rgba(2, 132, 199, 0.15), 0 10px 15px -5px rgba(2, 132, 199, 0.08);
    --fc-radius: 16px;
    --fc-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Accessibility & High-Contrast Safety */
.bg-opacity-15 {
    --bs-bg-opacity: 0.15 !important;
}
.bg-opacity-10 {
    --bs-bg-opacity: 0.10 !important;
}
.bg-opacity-20 {
    --bs-bg-opacity: 0.20 !important;
}
.bg-opacity-25 {
    --bs-bg-opacity: 0.25 !important;
}
.badge.bg-light:not(.text-white) {
    color: var(--fc-text-main, #0f172a);
}

/* Button Hover Contrast Safety Rules (Never allow white text on white/light hover backgrounds) */
.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
    background-color: #ffffff !important;
    color: #0b1528 !important;
    border-color: #ffffff !important;
}

.btn-outline-light:hover *,
.btn-outline-light:focus *,
.btn-outline-light:active * {
    color: #0b1528 !important;
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.btn-light:hover *,
.btn-light:focus * {
    color: #0f172a !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: #334155 !important;
    color: #ffffff !important;
    border-color: #334155 !important;
}

.btn-outline-secondary:hover * {
    color: #ffffff !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

.btn-outline-primary:hover * {
    color: #ffffff !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

.btn-outline-success:hover * {
    color: #ffffff !important;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--fc-text-main);
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Header & Navbar Enhancements
   -------------------------------------------------------------------------- */
.main-header {
    background: rgba(11, 21, 40, 0.95) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 12px 0 !important;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.site-nav-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 10px;
    transition: var(--fc-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-nav-links a:hover,
.site-nav-links a.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.site-nav-links a i {
    font-size: 15px;
    color: var(--fc-accent);
}

/* User Profile Dropdown */
.main-header {
    overflow: visible !important;
}

.main-header > .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.main-header .dropdown {
    position: relative !important;
}

.user-profile-dropdown-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    transition: var(--fc-transition);
    cursor: pointer;
}

.user-profile-dropdown-btn:hover,
.user-profile-dropdown-btn:focus,
.user-profile-dropdown-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(0, 255, 179, 0.4) !important;
    color: #ffffff !important;
}

.user-profile-dropdown-btn::after {
    margin-left: 6px;
    vertical-align: 0.15em;
    border-top-color: rgba(255, 255, 255, 0.7);
}

.user-menu-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 8px !important;
    min-width: 240px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 14px !important;
    padding: 8px !important;
    box-shadow: 0 15px 35px -5px rgba(11, 21, 40, 0.35), 0 5px 15px rgba(0, 0, 0, 0.12) !important;
    z-index: 99999 !important;
    display: none;
}

/* Ensure dropdown menu is visible in any active state */
.user-menu-dropdown.show,
.user-profile-dropdown-btn.show + .user-menu-dropdown,
.dropdown.show > .user-menu-dropdown,
[aria-expanded="true"] + .user-menu-dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.user-menu-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s ease;
    color: #1e293b;
}

.user-menu-dropdown .dropdown-item:hover {
    background: #f1f5f9;
    color: var(--fc-primary) !important;
    transform: translateX(3px);
}

.user-menu-dropdown .dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #dc2626 !important;
}

/* Mobile Hamburger Menu & Drawer */
.fc-hamburger-btn {
    border-radius: 8px;
    padding: 4px 6px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.06);
    transition: var(--fc-transition);
}

.fc-hamburger-btn:hover,
.fc-hamburger-btn:focus {
    color: var(--fc-accent) !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(0, 255, 179, 0.4) !important;
}

.main-header .mobile-nav-collapse {
    width: 100% !important;
    display: none;
    background: rgba(11, 21, 40, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 10px !important;
    padding: 14px 16px !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4) !important;
    box-sizing: border-box !important;
}

.main-header .mobile-nav-collapse.show {
    display: block !important;
}

.main-header .mobile-nav-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.mobile-nav-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
}

@media (max-width: 480px) {
    .mobile-nav-grid {
        grid-template-columns: 1fr !important;
    }
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--fc-transition);
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(0, 255, 179, 0.3);
    transform: translateY(-1px);
}

.mobile-nav-item i {
    font-size: 16px;
    color: var(--fc-accent);
}

/* --------------------------------------------------------------------------
   Professional Cricket Ground Panel & Field Layout
   Authentic Turf Mowing Stripes, 22-Yard Crease & Sports Card Elevation
   -------------------------------------------------------------------------- */
#groundPanel {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 35px -5px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(2, 132, 199, 0.15) !important;
    overflow: hidden !important;
}

#groundPanel .panel-header {
    background: linear-gradient(135deg, #0b1528 0%, #1e293b 100%) !important;
    padding: 16px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2px solid rgba(0, 255, 179, 0.3) !important;
}

#groundPanel .panel-header h2 {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    letter-spacing: -0.3px !important;
}

#groundPanel .reset-team-btn {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    color: #fbbf24 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

#groundPanel .reset-team-btn:hover {
    background: #f59e0b !important;
    color: #0b1528 !important;
    border-color: #f59e0b !important;
}

/* Cricket Ground Stadium Pitch */
.cricket-ground {
    position: relative !important;
    padding: 24px 16px 28px 16px !important;
    min-height: 680px !important;
    border-radius: 0 0 20px 20px !important;
    /* Authentic Stadium Mowing Turf Stripes */
    background: repeating-linear-gradient(
        180deg,
        #15803d 0px,
        #15803d 44px,
        #16a34a 44px,
        #16a34a 88px
    ) !important;
    box-shadow: inset 0 0 60px rgba(5, 46, 22, 0.65) !important;
    overflow: hidden !important;
}

/* 22-Yard Central Crease */
.cricket-ground::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 55%;
    background: linear-gradient(180deg, rgba(217, 195, 154, 0.35) 0%, rgba(202, 178, 134, 0.4) 50%, rgba(217, 195, 154, 0.35) 100%);
    border-top: 2px dashed rgba(255, 255, 255, 0.4);
    border-bottom: 2px dashed rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    pointer-events: none;
    z-index: 0;
}

/* Stadium Inner Circle Arc */
.cricket-ground::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 86%;
    height: 80%;
    border: 1.5px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Position Role Section */
.position-group {
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: 22px !important;
    text-align: center !important;
}

.position-group:last-child {
    margin-bottom: 0 !important;
}

.position-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: rgba(11, 21, 40, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    padding: 3px 14px !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    margin-bottom: 12px !important;
}

.position-label .role-icon {
    color: #00ffb3 !important;
    font-size: 13px !important;
}

.position-label .role-range {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 1px 6px !important;
    border-radius: 999px !important;
    margin-left: 2px !important;
}

.position-slots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    min-height: 98px !important;
}

/* Ground Player Card */
.ground-player {
    width: 96px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 0 !important;
    text-align: center !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: visible !important;
    user-select: none !important;
}

.ground-player:hover {
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35) !important;
    border-color: #00ffb3 !important;
}

/* Card Top: Team Flag & Cost */
.ground-player-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 4px 6px 0 6px !important;
    width: 100% !important;
    position: static !important;
    z-index: 2 !important;
}

.ground-team-flag {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    padding: 2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e2e8f0 !important;
    position: static !important;
}

.ground-team-flag img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    width: auto !important;
}

.player-ground-points {
    position: static !important;
    background: #0b1528 !important;
    color: #00ffb3 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 2px 5px !important;
    border-radius: 5px !important;
    letter-spacing: 0.2px !important;
    line-height: 1.2 !important;
    border: 1px solid rgba(0, 255, 179, 0.3) !important;
}

/* Player Image */
.ground-player-image {
    width: 58px !important;
    height: 58px !important;
    margin: 1px auto 0 auto !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ground-player-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    width: auto !important;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15)) !important;
}

/* Captaincy Badge */
.captain_box {
    position: absolute !important;
    top: 26px !important;
    left: 4px !important;
    z-index: 3 !important;
}

.captain_box .badge {
    position: static !important;
}

.badge-captain {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    padding: 2px 5px !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 5px rgba(217, 119, 6, 0.4) !important;
    border: 1px solid #ffffff !important;
}

.badge-vice-captain {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    padding: 2px 5px !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 5px rgba(2, 132, 199, 0.4) !important;
    border: 1px solid #ffffff !important;
}

/* Player Name Footer Strip */
.ground-player-name {
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 5px !important;
    border-radius: 0 0 11px 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    letter-spacing: -0.2px !important;
    width: 100% !important;
    margin-top: 3px !important;
}

/* Remove Floating Button */
.removePlayerShort {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    border: 2px solid #ffffff !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.4) !important;
    transition: all 0.2s ease !important;
    z-index: 5 !important;
    padding: 0 !important;
}

.removePlayerShort:hover {
    background: #dc2626 !important;
    transform: scale(1.15) rotate(90deg) !important;
}

/* Empty Slot Hint */
.ground-empty-slot {
    border: 2px dashed rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 8px 14px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    backdrop-filter: blur(4px) !important;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.fc-hero {
    position: relative;
    background: radial-gradient(circle at 85% 15%, rgba(0, 255, 179, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 10% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 45%),
                linear-gradient(135deg, #091322 0%, #0d1e38 50%, #0b1528 100%);
    color: #ffffff;
    padding: 55px 0 45px 0;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(11, 21, 40, 0.2);
}

.fc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 179, 0.35);
    color: #00ffb3;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    margin-bottom: 20px;
}

.fc-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00ffb3;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #00ffb3;
    animation: fc-pulse-glow 1.5s infinite;
}

@keyframes fc-pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.fc-hero-title {
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: #ffffff;
    margin-bottom: 16px;
}

.fc-hero-title .gradient-text {
    background: linear-gradient(90deg, #00ffb3 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fc-hero-desc {
    font-size: clamp(15px, 1.8vw, 17px);
    color: rgba(255, 255, 255, 0.75);
    max-width: 680px;
    margin: 0 auto 28px auto;
    line-height: 1.6;
}

.fc-hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 35px;
}

.fc-btn-primary {
    background: linear-gradient(135deg, #00d287 0%, #0284c7 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 210, 135, 0.35);
    transition: var(--fc-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 135, 0.5);
    color: #ffffff !important;
}

.fc-btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--fc-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fc-btn-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Hero Stats Row */
.fc-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    max-width: 820px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.fc-stat-item .stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #00ffb3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fc-stat-item .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Google AdSense Policy-Compliant Containers
   -------------------------------------------------------------------------- */
.fc-ad-slot-container {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 12px;
    margin: 32px auto;
    max-width: 980px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.fc-ad-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.fc-ad-content {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.fc-section-head {
    text-align: center;
    margin-bottom: 32px;
}

.fc-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fc-primary);
    background: #e0f2fe;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.fc-section-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: var(--fc-dark);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.fc-section-sub {
    font-size: 15px;
    color: var(--fc-text-muted);
    max-width: 620px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Event / Tournament Cards
   -------------------------------------------------------------------------- */
.fc-tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.fc-event-card {
    background: #ffffff;
    border-radius: var(--fc-radius);
    border: 1px solid var(--fc-border);
    box-shadow: var(--fc-card-shadow);
    transition: var(--fc-transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.fc-event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fc-card-hover-shadow);
    border-color: #38bdf8;
}

.fc-event-banner {
    background: linear-gradient(135deg, #091322 0%, #1e293b 100%);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 2px solid var(--fc-secondary);
}

.fc-event-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fc-live-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
    animation: fc-pulse-glow 2s infinite;
}

.fc-upcoming-badge {
    background: #64748b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
}

.fc-event-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fc-event-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--fc-dark);
    margin-bottom: 14px;
}

.fc-event-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.fc-chip {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fc-chip i {
    color: var(--fc-primary);
}

.fc-event-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

/* --------------------------------------------------------------------------
   Step Cards ("How Fantasy Cricket Works")
   -------------------------------------------------------------------------- */
.fc-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.fc-step-card {
    background: #ffffff;
    border-radius: var(--fc-radius);
    padding: 24px;
    border: 1px solid var(--fc-border);
    box-shadow: var(--fc-card-shadow);
    transition: var(--fc-transition);
    position: relative;
    overflow: hidden;
}

.fc-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fc-card-hover-shadow);
    border-color: #38bdf8;
}

.fc-step-num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    font-weight: 900;
    color: #e2e8f0;
    letter-spacing: -1px;
    line-height: 1;
    user-select: none;
}

.fc-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: var(--fc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.fc-step-card:nth-child(2) .fc-step-icon {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}
.fc-step-card:nth-child(3) .fc-step-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}
.fc-step-card:nth-child(4) .fc-step-icon {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #9333ea;
}

.fc-step-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--fc-dark);
    margin-bottom: 8px;
}

.fc-step-text {
    font-size: 13.5px;
    color: var(--fc-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Strategy & Tips Cards
   -------------------------------------------------------------------------- */
.fc-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.fc-tip-box {
    background: #ffffff;
    border-radius: var(--fc-radius);
    padding: 22px;
    border: 1px solid var(--fc-border);
    box-shadow: var(--fc-card-shadow);
    transition: var(--fc-transition);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.fc-tip-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--fc-card-hover-shadow);
    border-color: #7dd3fc;
}

.fc-tip-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #f0f9ff;
    color: var(--fc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid #bae6fd;
}

.fc-tip-content h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--fc-dark);
    margin-bottom: 6px;
}

.fc-tip-content p {
    font-size: 13.5px;
    color: var(--fc-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Why Choose Feature Cards
   -------------------------------------------------------------------------- */
.fc-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.fc-feature-card {
    background: #ffffff;
    border-radius: var(--fc-radius);
    padding: 24px;
    border: 1px solid var(--fc-border);
    box-shadow: var(--fc-card-shadow);
    text-align: center;
    transition: var(--fc-transition);
}

.fc-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fc-card-hover-shadow);
    border-color: #00ffb3;
}

.fc-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0b1528 0%, #1e293b 100%);
    color: #00ffb3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px auto;
    box-shadow: 0 4px 12px rgba(11, 21, 40, 0.15);
}

.fc-feature-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--fc-dark);
    margin-bottom: 8px;
}

.fc-feature-card p {
    font-size: 13px;
    color: var(--fc-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Skill-Based Disclaimer Card
   -------------------------------------------------------------------------- */
.fc-disclaimer-box {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--fc-radius);
    padding: 24px;
    margin-bottom: 36px;
    display: flex;
    gap: 18px;
    align-items: center;
}

.fc-disclaimer-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #ffffff;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.15);
}

.fc-disclaimer-text h5 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.fc-disclaimer-text p {
    font-size: 13px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Footer Polishing
   -------------------------------------------------------------------------- */
.main-footer {
    background: #091322 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 40px 0 30px 0 !important;
    color: #94a3b8 !important;
}

.main-footer a {
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: var(--fc-transition);
}

.main-footer a:hover {
    color: #00ffb3 !important;
}

@media (max-width: 768px) {
    .fc-hero {
        padding: 40px 0 30px 0;
        border-radius: 0 0 20px 20px;
    }
    .fc-disclaimer-box {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   PRO FANTASY - PLAYER LIST PANEL (SIDE PANEL) ENHANCEMENTS
   ========================================================================== */

.player-list-panel {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: box-shadow 0.3s ease !important;
}

.player-list-panel:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12) !important;
}

/* Panel Header */
.player-list-panel .panel-header {
    background: linear-gradient(135deg, #0b1528 0%, #172554 100%) !important;
    padding: 16px 18px !important;
    border-bottom: 2px solid #00ffb3 !important;
    color: #ffffff !important;
}

.player-list-panel .panel-header-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.player-list-panel .panel-title-group {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.player-list-panel .panel-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    letter-spacing: -0.2px !important;
}

.player-list-panel .player-count-badge {
    background: rgba(0, 255, 179, 0.15) !important;
    color: #00ffb3 !important;
    border: 1px solid rgba(0, 255, 179, 0.3) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    letter-spacing: 0.3px !important;
}

/* Next Match Card Banner */
.next-match-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    backdrop-filter: blur(8px) !important;
}

.match-teams-pill {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.match-flag-abbr {
    font-weight: 800 !important;
    font-size: 13px !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;
}

.match-vs-tag {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.15) !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
}

.match-timer-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.next-match-card .countdown-timer {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #fb7185 !important;
    background: rgba(244, 63, 94, 0.15) !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(244, 63, 94, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.fixtures-link-pill {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #38bdf8 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    transition: var(--fc-transition) !important;
}

.fixtures-link-pill:hover {
    color: #7dd3fc !important;
    text-decoration: underline !important;
}

/* Filters Container */
.player-list-panel .filters {
    padding: 14px 16px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Role Filter Tabs */
.role-filter {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 6px !important;
    margin: 0 !important;
}

.role-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 8px 4px 6px 4px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    position: relative !important;
    user-select: none !important;
}

.role-item:hover {
    background: #ffffff !important;
    border-color: #3b82f6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15) !important;
}

.role-item.active {
    background: linear-gradient(135deg, #0b1528 0%, #1e3a8a 100%) !important;
    border-color: #0b1528 !important;
    box-shadow: 0 4px 12px rgba(11, 21, 40, 0.25) !important;
}

.role-icon-box {
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 3px !important;
}

.role-icon-box img {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1)) !important;
}

.role-item.active .role-icon-box img {
    filter: brightness(0) invert(1) !important;
}

.role-name {
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    color: #334155 !important;
    letter-spacing: 0.3px !important;
}

.role-item.active .role-name {
    color: #ffffff !important;
}

.role-counter {
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 1px 5px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    margin-top: 3px !important;
    line-height: 1.2 !important;
}

.role-item.active .role-counter {
    background: #00ffb3 !important;
    color: #0b1528 !important;
    font-weight: 800 !important;
}

/* Team Filter Row */
.team-filter-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.team-dropdown-btn {
    width: 100% !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.team-dropdown-btn:hover {
    border-color: #3b82f6 !important;
    background: #f8fafc !important;
}

.selected-count-badge {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
}

.multi-select-dropdown .dropdown-menu {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
    padding: 8px !important;
}

.dropdown-menu-header {
    padding: 4px 8px 8px 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 4px !important;
}

.multi-select-dropdown .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 7px 10px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}

.multi-select-dropdown .dropdown-item:hover {
    background: #f1f5f9 !important;
}

.btn-apply-filter {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-apply-filter:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

/* Selected Team Tags */
.selected-teams-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    min-height: 0 !important;
}

.team-chip {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border: 1px solid #bfdbfe !important;
    color: #1e40af !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.team-chip span {
    color: #ef4444 !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    margin-left: 2px !important;
    transition: transform 0.15s ease !important;
}

.team-chip span:hover {
    transform: scale(1.2) !important;
}

/* Search and Sort */
.search-sort-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.player-search-wrapper {
    position: relative !important;
    width: 100% !important;
}

.player-search-wrapper .search-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 14px !important;
    pointer-events: none !important;
}

.player-search-box {
    width: 100% !important;
    padding: 9px 34px 9px 34px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 500 !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.player-search-box:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.clear-search-btn {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 2px !important;
    transition: color 0.15s ease !important;
}

.clear-search-btn:hover {
    color: #0f172a !important;
}

/* Sort Toolbar */
.sort-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.sort-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

.sort-segmented-group {
    display: flex !important;
    background: #e2e8f0 !important;
    padding: 3px !important;
    border-radius: 9px !important;
    gap: 3px !important;
    flex: 1 !important;
}

.sort-chip {
    flex: 1 !important;
    text-align: center !important;
    padding: 5px 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    user-select: none !important;
}

.sort-chip.active {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.sort-direction-btn {
    width: 32px !important;
    height: 32px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 13px !important;
    color: #0f172a !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.sort-direction-btn:hover {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
    color: #2563eb !important;
}

/* Player List Container */
.player-list {
    max-height: 520px !important;
    overflow-y: auto !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: #f8fafc !important;
}

/* Player Card */
.player-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    position: relative !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 0 !important;
}

.player-card:hover {
    border-color: #94a3b8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
}

.player-card.selected {
    border-color: #10b981 !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15) !important;
}

/* Player Avatar & Team Mini Badge */
.player-avatar-wrap {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
}

.player-card .player-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: 2px solid #e2e8f0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

.player-card .player-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
}

.player-team-mini-badge {
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    padding: 1px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

.player-team-mini-badge img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Player Info */
.player-card .player-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.player-name-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.player-card .player-name {
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
    max-width: 130px !important;
}

.player-in-team-badge {
    font-size: 9px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    background: #10b981 !important;
    color: #ffffff !important;
    letter-spacing: 0.3px !important;
}

.player-card .player-meta {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 3px !important;
}

.player-team-pill {
    font-size: 11px !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

.player-role-badge {
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    line-height: 1.2 !important;
}

.role-badge-bat {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}

.role-badge-bowl {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.role-badge-ar {
    background: #f3e8ff !important;
    color: #7e22ce !important;
}

.role-badge-wk {
    background: #ecfdf5 !important;
    color: #047857 !important;
}

.role-badge-default {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

/* Stats (Credits & Points) */
.player-card .player-stats {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 2px !important;
    margin-right: 4px !important;
}

.player-credits-badge {
    display: flex !important;
    align-items: baseline !important;
    gap: 2px !important;
}

.player-card .player-credits {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.player-card .credits-unit {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #64748b !important;
}

.player-card .player-points {
    font-size: 11px !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

/* Action Buttons (+ / -) */
.player-action-wrap {
    flex-shrink: 0 !important;
}

.player-action {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: none !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    line-height: 1 !important;
}

.Add_button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3) !important;
}

.Add_button:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 5px 14px rgba(16, 185, 129, 0.45) !important;
}

.removePlayer {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3) !important;
}

.removePlayer:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 5px 14px rgba(239, 68, 68, 0.45) !important;
}

/* Empty State */
.no-players-empty-state {
    text-align: center !important;
    padding: 36px 16px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1.5px dashed #cbd5e1 !important;
    margin: 10px 0 !important;
}

.empty-state-icon {
    font-size: 32px !important;
    color: #94a3b8 !important;
    margin-bottom: 8px !important;
}

.empty-state-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 4px !important;
}

.empty-state-desc {
    font-size: 12px !important;
    color: #64748b !important;
}

/* ==========================================================================
   PRO FANTASY - NON-BLOCKING SPORTS TOAST NOTIFICATIONS
   ========================================================================== */

#fcToastContainer {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    pointer-events: none !important;
    max-width: 400px !important;
    width: calc(100vw - 36px) !important;
}

.fc-toast {
    pointer-events: auto !important;
    background: linear-gradient(135deg, rgba(11, 21, 40, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    padding: 12px 14px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    position: relative !important;
    overflow: hidden !important;
    animation: fcToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
    user-select: none !important;
}

.fc-toast.fc-toast-closing {
    animation: fcToastOut 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes fcToastIn {
    from {
        opacity: 0;
        transform: translateX(110%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fcToastOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(110%) scale(0.9);
    }
}

/* Toast Color Accents */
.fc-toast.fc-toast-success {
    border-left: 4px solid #00ffb3 !important;
}
.fc-toast.fc-toast-error {
    border-left: 4px solid #ef4444 !important;
}
.fc-toast.fc-toast-warning {
    border-left: 4px solid #f59e0b !important;
}
.fc-toast.fc-toast-info {
    border-left: 4px solid #38bdf8 !important;
}

/* Toast Icon */
.fc-toast-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
}

.fc-toast-success .fc-toast-icon {
    background: rgba(0, 255, 179, 0.15) !important;
    color: #00ffb3 !important;
    border: 1px solid rgba(0, 255, 179, 0.3) !important;
}

.fc-toast-error .fc-toast-icon {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.fc-toast-warning .fc-toast-icon {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.fc-toast-info .fc-toast-icon {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

/* Toast Body */
.fc-toast-body {
    flex: 1 !important;
    min-width: 0 !important;
}

.fc-toast-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 2px !important;
    letter-spacing: -0.1px !important;
    line-height: 1.3 !important;
}

.fc-toast-message {
    font-size: 12px !important;
    color: #cbd5e1 !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
}

/* Close Button */
.fc-toast-close {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
    transition: color 0.15s ease, background 0.15s ease !important;
    flex-shrink: 0 !important;
}

.fc-toast-close:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Progress Timer Bar */
.fc-toast-progress {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 3px !important;
    width: 100% !important;
    opacity: 0.8 !important;
    transform-origin: left !important;
    animation: fcToastProgress linear forwards !important;
}

.fc-toast-success .fc-toast-progress { background: #00ffb3 !important; }
.fc-toast-error .fc-toast-progress { background: #ef4444 !important; }
.fc-toast-warning .fc-toast-progress { background: #f59e0b !important; }
.fc-toast-info .fc-toast-progress { background: #38bdf8 !important; }

@keyframes fcToastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Pause on hover */
.fc-toast:hover .fc-toast-progress {
    animation-play-state: paused !important;
}

@media (max-width: 576px) {
    #fcToastContainer {
        top: 14px !important;
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* ==========================================================================
   SELECTION GRID - EQUAL HEIGHT & ZERO WHITE SPACE GROUND PANEL
   ========================================================================== */

.selection-grid {
    display: grid !important;
    grid-template-columns: 360px 1fr !important;
    gap: 28px !important;
    margin-bottom: 24px !important;
    align-items: stretch !important;
}

@media (max-width: 1200px) {
    .selection-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Ground Panel Full Stretch */
#groundPanel,
.ground-panel {
    background: #15803d !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

#groundPanel .panel-header {
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, #0b1528 0%, #172554 100%) !important;
    padding: 16px 20px !important;
    border-bottom: 2px solid #00ffb3 !important;
}

.cricket-ground {
    position: relative !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around !important;
    height: 100% !important;
    padding: 24px 16px 28px 16px !important;
    border-radius: 0 0 16px 16px !important;
    /* Authentic Stadium Mowing Turf Stripes */
    background: repeating-linear-gradient(
        180deg,
        #15803d 0px,
        #15803d 44px,
        #16a34a 44px,
        #16a34a 88px
    ) !important;
    box-shadow: inset 0 0 60px rgba(5, 46, 22, 0.65) !important;
    overflow: hidden !important;
}

.cricket-ground .position-group {
    flex-shrink: 0 !important;
    margin-bottom: 14px !important;
}

.cricket-ground .position-group:last-child {
    margin-bottom: 0 !important;
}

/* Single Action Button Clean Isolation */
.player-action-wrap {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.player-action.player-toggle-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: none !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    line-height: 1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.player-action.player-toggle-btn.Add_button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3) !important;
}

.player-action.player-toggle-btn.Add_button:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 5px 14px rgba(16, 185, 129, 0.45) !important;
}

.player-action.player-toggle-btn.removePlayer {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3) !important;
}

.player-action.player-toggle-btn.removePlayer:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 5px 14px rgba(239, 68, 68, 0.45) !important;
}

/* Prominent Red Alert Banner on Select Player */
#red-alert {
    border-radius: 12px !important;
    padding: 12px 18px !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.18) !important;
    font-size: 14px !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    border-left: 5px solid #ef4444 !important;
    margin-bottom: 22px !important;
    background: #fff5f5 !important;
    color: #991b1b !important;
}

#red-alert.alert-warning {
    border-left-color: #f59e0b !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.18) !important;
    background: #fffbeb !important;
    color: #92400e !important;
}

/* ==========================================================================
   PRO FANTASY - NEWS & TOURNAMENT ANNOUNCEMENTS ENHANCEMENTS
   ========================================================================== */

.news-filter-card {
    border-color: #e2e8f0 !important;
}

.news-event-scroll-bar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.news-event-scroll-bar::-webkit-scrollbar {
    display: none !important;
}

.news-filter-pill {
    padding: 7px 14px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.news-filter-pill:hover {
    border-color: #3b82f6 !important;
    background: #f8fafc !important;
    color: #0b1528 !important;
    transform: translateY(-1px) !important;
}

.news-filter-pill.active {
    background: linear-gradient(135deg, #0b1528 0%, #1e3a8a 100%) !important;
    color: #00ffb3 !important;
    border-color: #0b1528 !important;
    box-shadow: 0 4px 12px rgba(11, 21, 40, 0.25) !important;
}

.news-pill-count {
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 1px 6px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    line-height: 1.2 !important;
}

.news-filter-pill.active .news-pill-count {
    background: #00ffb3 !important;
    color: #0b1528 !important;
}

/* News Article Card */
.news-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.news-card:hover {
    transform: translateY(-3px) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
}

.news-event-badge {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #b45309 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.15s ease !important;
}

.news-event-badge:hover {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #92400e !important;
}

.news-general-badge {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    color: #1d4ed8 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.news-date-badge {
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.news-card-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
}

.news-card-body {
    font-size: 13.5px !important;
    color: #475569 !important;
    line-height: 1.65 !important;
    word-break: break-word !important;
}

.news-card-footer {
    border-color: #f1f5f9 !important;
}

.news-play-link:hover {
    text-decoration: underline !important;
    color: #1d4ed8 !important;
}

/* Sports Pagination Styling */
.fc-sports-pagination {
    display: inline-flex !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: #ffffff !important;
    border-radius: 999px !important;
    border: 1px solid #e2e8f0 !important;
    list-style: none !important;
    margin: 0 auto !important;
}

.fc-sports-pagination .page-item {
    margin: 0 !important;
}

.fc-sports-pagination .page-link {
    border: none !important;
    border-radius: 999px !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.fc-sports-pagination .page-link:hover {
    background: #f1f5f9 !important;
    color: #0b1528 !important;
    transform: translateY(-1px) !important;
}

.fc-sports-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0b1528 0%, #1e3a8a 100%) !important;
    color: #00ffb3 !important;
    box-shadow: 0 4px 12px rgba(11, 21, 40, 0.25) !important;
}

.fc-sports-pagination .page-item.disabled .page-link {
    color: #cbd5e1 !important;
    pointer-events: none !important;
    background: transparent !important;
}
