*{box-sizing:border-box}body{margin:0;background:#eef2f7;color:#253246;font-family:Arial,"Hind Siliguri",sans-serif}.hidden{display:none}.authScreen{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top,#214c76,#07111e 60%);padding:20px}.authCard{width:min(430px,100%);background:#fff;border-radius:28px;padding:28px;text-align:center;box-shadow:0 30px 80px #0007}.authLogo{width:110px;height:110px;border-radius:24px;object-fit:cover;border:4px solid #eeb32b}.authCard h1{letter-spacing:4px;margin:12px 0 4px}.authCard p{color:#6e7b8c}.authCard input,.form input,.form textarea,.form select,.adminContent input,.adminContent textarea,.adminContent select{width:100%;padding:13px;border:1px solid #d7dee7;border-radius:12px;margin:6px 0;font-size:15px;background:#fff}.primary,.goldBtn{width:100%;border:0;border-radius:12px;padding:14px;background:#1f68b8;color:#fff;font-weight:800;font-size:15px;cursor:pointer}.goldBtn{background:#efb632;color:#16120a}.linkBtn{border:0;background:none;color:#1f68b8;margin-top:12px}.hint{font-size:12px}.headerIconBtn{position:relative;width:46px;height:46px;border:1px solid #54708a;background:#ffffff10;color:#fff;border-radius:15px;font-size:20px;cursor:pointer}.headerIconBtn span{display:block}.headerBadge{position:absolute;right:-4px;top:-5px;min-width:19px;height:19px;padding:2px 5px;border-radius:20px;background:#e23b45;color:#fff;border:2px solid #183d5d;font-size:9px;font-style:normal;font-weight:900;display:grid;place-items:center}.headerProfileBtn{width:48px;height:48px;padding:2px;border:2px solid #e9ae25;border-radius:50%;background:#fff;cursor:pointer;overflow:hidden;position:relative}.headerProfileBtn img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}.headerProfileBtn span{display:none}.headerNotificationPanel{position:fixed;z-index:80;top:76px;right:18px;width:min(390px,calc(100vw - 24px));background:rgba(255,255,255,.98);border:1px solid #dfe5ec;border-radius:20px;box-shadow:0 20px 60px #10243a30;display:none;overflow:hidden}.headerNotificationPanel.show{display:block;animation:noticeIn .18s ease-out}.headerNoticeHead{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;background:linear-gradient(135deg,#10243a,#1d567a);color:#fff}.headerNoticeHead span{font-size:9px;letter-spacing:2px;color:#f3c34d;font-weight:900}.headerNoticeHead h3{margin:4px 0 0;font-size:16px}.headerNoticeHead button{border:0;background:#ffffff16;color:#fff;border-radius:10px;width:34px;height:34px;font-size:22px}.headerNoticeItem{width:100%;border:0;border-bottom:1px solid #edf0f4;background:#fff;padding:13px 15px;display:flex;gap:11px;text-align:left;cursor:pointer}.headerNoticeItem:hover{background:#f7faff}.headerNoticeItem.unread{background:#f4f9ff}.noticeIcon{width:34px;height:34px;border-radius:11px;background:#e8f2fc;display:grid;place-items:center;flex:none}.headerNoticeItem b{display:block;color:#1c2e42;font-size:13px}.headerNoticeItem small{display:block;color:#607084;font-size:12px;margin-top:3px;line-height:1.35}.headerNoticeItem em{display:block;color:#98a3b0;font-size:9px;font-style:normal;margin-top:5px}.headerNoticeEmpty{padding:35px 15px;text-align:center;color:#7a8796}.headerNoticeFoot{display:flex;gap:8px;padding:12px;border-top:1px solid #edf0f4}.headerNoticeFoot .miniBtn{flex:1}.profileAvatarWrap .avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}@keyframes noticeIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.topbar{position:sticky;top:0;z-index:20;height:84px;background:linear-gradient(90deg,#10243a,#183d5d);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:10px 20px}.brand{display:flex;align-items:center;gap:13px}.brand img,.drawerHead img{width:58px;height:58px;border-radius:14px;object-fit:cover;border:2px solid #e9ae25}.brand b{font-size:24px;letter-spacing:3px}.brand small{display:block;color:#aebfd1;margin-top:4px}.headerRight{display:flex;gap:14px;align-items:center}.menuBtn{width:55px;height:55px;border-radius:18px;border:1px solid #54708a;background:#ffffff10;color:#fff;font-size:28px}.container{max-width:760px;margin:auto;padding:18px}.page{display:none}.page.active{display:block}.hero{background:linear-gradient(130deg,#112842,#173b5d 55%,#277294);border-radius:32px;min-height:310px;padding:40px 32px;color:#fff;display:flex;align-items:center;justify-content:space-between;overflow:hidden}.hero span,.tournamentHero>span{color:#f1bd42;letter-spacing:3px;font-size:11px;font-weight:bold}.hero h1{font-size:52px;line-height:1.05;margin:15px 0}.hero img{width:190px;height:190px;border-radius:50%;object-fit:cover;border:7px solid #f1b52b}.notice{margin:16px 0;padding:14px;border-left:5px solid #eab12c;background:#fff;border-radius:12px}.sectionTitle{display:flex;align-items:center;justify-content:space-between;margin:26px 0 12px}.sectionTitle h2{font-size:21px;margin:0}.grid{display:grid;gap:14px}.grid.two{grid-template-columns:repeat(2,1fr)}.card,.matchCard,.fixtureCard{background:#fff;border-radius:20px;padding:18px;margin-bottom:14px;box-shadow:0 8px 28px #14243a0d;border:1px solid #dfe5ec}.matchCard{border-left:5px solid #2a73bd}.matchTop{display:flex;justify-content:space-between;gap:10px}.matchCard h3{margin:8px 0;font-size:20px}.meta{display:grid;grid-template-columns:1fr 1fr;gap:8px}.meta span{background:#f3f6fa;padding:9px;border-radius:10px;font-size:12px}.squad{margin-top:12px;padding:12px;background:#112940;color:#fff;border-radius:14px}.squad small{color:#f0ba3b}.chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.chips span{background:#ffffff15;padding:7px;border-radius:9px;font-size:12px}.deadline{color:#ffd262}.horizontalCards{display:flex;gap:14px;overflow:auto;padding-bottom:8px}.playerCard{min-width:210px;background:linear-gradient(150deg,#172c46,#276b94);color:#fff;border-radius:22px;padding:18px}.playerCard .rank{color:#f5c242;font-size:11px;font-weight:bold}.playerCard h3{margin:18px 0 5px}.miniStats{display:flex;justify-content:space-between;font-size:12px;margin-top:15px}.miniBtn{border:0;background:#e6f0fb;color:#2364a8;padding:8px 11px;border-radius:10px;font-weight:bold}.profileHero{background:linear-gradient(135deg,#142b44,#1f5d85);border-radius:24px;padding:25px;color:#fff;display:flex;align-items:center;gap:18px}.avatar{width:85px;height:85px;border-radius:50%;display:grid;place-items:center;background:#f1b72e;font-size:40px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}.stats>div{background:#fff;border-radius:16px;padding:14px;text-align:center}.stats b{display:block;font-size:24px;color:#1f65af}.stats small,.stats span{display:block;color:#7a8796;margin-top:5px}.badge,.status{display:inline-block;padding:5px 9px;border-radius:20px;background:#e7f2ff;color:#1e67b0;font-size:11px;font-weight:bold}.pending{background:#fff2cc;color:#9a6800}.approved{background:#dff7e8;color:#147743}.rejected{background:#ffe3e3;color:#b72d2d}.tournamentHero{background:linear-gradient(135deg,#12263e,#1d5579);border-radius:28px;padding:28px;color:#fff}.tournamentHero h1{margin:12px 0 20px}.three{grid-template-columns:repeat(3,1fr)}.three>div{background:#ffffff13;color:#fff}.three b{color:#f4c44e}.tableWrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:10px;border-bottom:1px solid #e3e7eb;text-align:left;font-size:13px}.fixtureCard{border-left:5px solid #efb52d}.fixtureCard h3{margin:8px 0}.sub{color:#718093}.tabs{display:flex;gap:8px;margin:12px 0;overflow:auto}.tab{flex:1;white-space:nowrap;border:0;background:#e9edf2;padding:12px;border-radius:12px;font-weight:bold;color:#4d5b6a}.tab.active{background:#2369b7;color:#fff}.scoreRow{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center}.scoreRow input{text-align:center}.resultItem,.playerRow,.bidItem{background:#f5f7fa;border-radius:14px;padding:13px;margin:8px 0}.newsItem small{color:#2370be;font-weight:bold}.adminHero{background:#1a293b;color:#fff;border-radius:20px;padding:20px}.adminGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:12px 0}.adminGrid button{border:0;background:#fff;padding:14px;border-radius:12px;text-align:left;font-weight:bold}.adminContent{min-height:300px}.adminContent button{margin:4px 2px}.danger{background:#c93434!important}.success{background:#16804a!important}.gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.gallery img{width:100%;height:150px;object-fit:cover;border-radius:14px}.adminOnly{display:none}body.isAdmin .adminOnly{display:block}body.isAdmin button.adminOnly{display:inline-block}#drawer{position:fixed;z-index:30;top:0;bottom:0;right:-330px;width:310px;background:#fff;box-shadow:-10px 0 40px #0003;padding:18px;transition:.25s;overflow:auto}#drawer.show{right:0}.drawerHead{display:flex;align-items:center;gap:10px;padding-bottom:15px}.drawerHead img{width:48px;height:48px}.drawerHead b{letter-spacing:2px}.drawerHead+button{}#drawer button{width:100%;border:0;background:none;text-align:left;padding:15px 10px;font-size:16px;font-weight:600;color:#283647;border-radius:10px}#drawer button:hover{background:#eef4fa}#overlay{display:none;position:fixed;z-index:25;inset:0;background:#0007}#overlay.show{display:block}.modal{display:none;position:fixed;inset:0;z-index:100;background:#0008;padding:18px;overflow:auto}.modal.show{display:block}.modalBox{background:#fff;border-radius:22px;padding:22px;max-width:500px;margin:8vh auto;position:relative}.close{position:absolute;right:15px;top:10px;border:0;background:none;font-size:28px}.selectSquad{height:150px}.deadlineRows{display:grid;gap:8px}.deadlineRows div{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center;background:#f4f7fa;padding:8px;border-radius:10px}.adminActions{display:flex;flex-wrap:wrap;gap:5px}.smallBtn{border:0;background:#2369b7;color:#fff;border-radius:8px;padding:8px 10px;font-weight:bold}.smallBtn.danger{background:#c93434}.smallBtn.success{background:#16804a}.empty{padding:22px;text-align:center;color:#7b8794}.role{font-size:11px;color:#f0b937}.loginInfo{font-size:12px}footer{text-align:center;padding:28px 10px;color:#718093}#toast{position:fixed;z-index:200;top:15px;left:50%;transform:translateX(-50%);background:#152b43;color:#fff;padding:12px 18px;border-radius:12px;display:none;box-shadow:0 8px 25px #0003}
@media(max-width:600px){.container{padding:12px}.topbar{height:76px;padding:9px 12px}.brand img{width:50px;height:50px}.brand b{font-size:20px}.brand small{font-size:10px}.hero{min-height:280px;padding:28px 22px}.hero h1{font-size:38px}.hero img{width:125px;height:125px}.grid.two,.meta{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.three{grid-template-columns:1fr}.adminGrid{grid-template-columns:1fr}.profileHero{align-items:flex-start}.gallery{grid-template-columns:1fr}.deadlineRows div{grid-template-columns:1fr}.headerRight #liveClock{font-size:11px}.headerRight{gap:7px}.headerIconBtn,.headerProfileBtn{width:42px;height:42px}.menuBtn{width:44px;height:44px}.headerNotificationPanel{top:70px;right:12px;width:calc(100vw - 24px)}}

/* Player registration + profile photo upgrade */
.photoUpload{display:block;background:#f5f8fb;border:1px dashed #7d9ab8;border-radius:14px;padding:12px;margin:6px 0;color:#29415a;font-weight:700}
.photoUpload input{margin:8px 0!important}
.registerPhotoPreview{display:block;width:110px;height:110px;object-fit:cover;border-radius:50%;border:4px solid #efb632;margin:8px auto 0}
.clubCheck{display:flex;gap:10px;align-items:flex-start;background:#edf6ff;border:1px solid #b8d8f5;border-radius:14px;padding:13px;margin:10px 0;cursor:pointer}
.clubCheck input{width:22px!important;height:22px;margin:2px 0!important;accent-color:#2369b7}
.clubCheck small{color:#62778d;font-weight:400}
.profileHero .avatar{overflow:hidden}
.profileHero .avatar img{width:100%;height:100%;object-fit:cover}
.cardPlayerPhoto{width:54px;height:54px;border-radius:50%;object-fit:cover;border:2px solid #f5c242;float:right;margin-left:8px}
.playerDirectory{display:flex;align-items:center;gap:12px}
.rowPlayerPhoto{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid #2369b7}

.profileInfo{margin-top:14px;padding:16px}
.profileInfo h3{margin:0 0 14px;color:#20354d}
.infoGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.infoGrid>div{background:#f5f8fc;border-radius:12px;padding:11px;min-width:0}
.infoGrid span{display:block;font-size:12px;color:#718197;margin-bottom:4px}
.infoGrid b{display:block;color:#26384c;word-break:break-word;font-size:13px}
.infoGrid .bioInfo{grid-column:1/-1}
@media(max-width:520px){.infoGrid{grid-template-columns:1fr}}

/* Mobile typing/focus reliability */
.modal{touch-action:pan-y;-webkit-overflow-scrolling:touch}
.modalBox{max-height:88vh;overflow-y:auto;overscroll-behavior:contain}
.modalBox input,.modalBox textarea,.modalBox select,.authCard input{position:relative;z-index:2;pointer-events:auto!important;touch-action:manipulation!important;-webkit-user-select:text;user-select:text}
.form{position:relative;z-index:2}
.form input,.form textarea,.form select{min-height:48px}
.form textarea{min-height:92px;resize:vertical}
.profileEditBtn{margin:14px 0 0}
.editModalBox{padding-bottom:30px}
@media(max-width:600px){.modal{padding:8px}.modalBox{margin:2vh auto;max-height:96vh;border-radius:18px}.modalBox input,.modalBox textarea,.modalBox select{font-size:16px!important}}

/* Bid Team Control */
#teamControlMenu{display:none}
.bidItem{padding:13px;margin:10px 0;border:1px solid #d9e2ee;border-radius:14px;background:#fff}
.isBidTeam #teamControlMenu{display:block}

/* Clear registration option on login screen */
.authRegisterBox{margin-top:14px;padding:14px;border:1px solid #dce7f3;border-radius:16px;background:#f7fbff}.registerTitle{font-weight:800;color:#34465a;margin-bottom:8px}.registerMainBtn{width:100%;border:0;border-radius:12px;padding:14px;background:linear-gradient(135deg,#efb632,#d99110);color:#172130;font-weight:900;font-size:15px;cursor:pointer;box-shadow:0 7px 18px #d99b2533}.registerNote{font-size:11px;color:#69798a;margin-top:8px;line-height:1.4}
/* Always start at the top when changing screen after login */
html,body{scroll-behavior:auto;}

#authScreen.hidden{display:none!important}#app.hidden{display:none!important}#app:not(.hidden){display:block!important}


/* Home Gallery Auto Slider */
.homeGallerySlider{width:100%;margin:0 0 18px;overflow:hidden;border-radius:18px}.galleryTrack{position:relative;width:100%;min-height:210px;background:#eef3f8}.homeGallerySlide{position:absolute;inset:0;opacity:0;transition:opacity .7s ease;pointer-events:none}.homeGallerySlide.active{position:relative;opacity:1;pointer-events:auto}.homeGallerySlide img{width:100%;height:auto;max-height:420px;object-fit:contain;display:block;border-radius:18px;background:#0b1726}@media(max-width:600px){.galleryTrack{min-height:190px}.homeGallerySlide img{height:auto;max-height:360px;object-fit:contain}}


/* Premium Point Table Design */
.standingsCard{padding:0;overflow:hidden;border:1px solid #d9e5f0;background:linear-gradient(180deg,#fff,#f7faff)}
.standingsHead{padding:18px 18px 16px;background:linear-gradient(135deg,#102a43,#1f6090);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px}
.standingsHead span{display:block;font-size:10px;letter-spacing:2px;color:#f4c44e;font-weight:900;margin-bottom:5px}.standingsHead h2{margin:0;font-size:20px}.liveBadge{font-size:10px;font-weight:900;color:#dfffe8;background:#ffffff16;border:1px solid #ffffff35;border-radius:20px;padding:7px 10px;white-space:nowrap}.standingsWrap{padding:0;max-width:100%;background:#fff}
.premiumTable{min-width:680px;width:100%;border-collapse:separate;border-spacing:0}.premiumTable thead th{position:sticky;top:0;background:#edf4fa;color:#34516d;font-size:11px;letter-spacing:.3px;font-weight:900;padding:13px 10px;border-bottom:1px solid #dce7f0;text-align:center;white-space:nowrap}.premiumTable thead th:nth-child(2){text-align:left}.premiumTable tbody td{padding:12px 10px;text-align:center;border-bottom:1px solid #edf1f5;font-size:13px;font-weight:700;color:#405165;white-space:nowrap}.premiumTable tbody td:nth-child(2){text-align:left;white-space:normal;min-width:150px}.premiumTable tbody tr{transition:.2s}.premiumTable tbody tr:nth-child(even){background:#fbfdff}.premiumTable tbody tr:hover{background:#eef7ff}.premiumTable .nameCell b{display:block;color:#20364d;font-size:13px}.premiumTable .nameCell small{display:block;color:#d39110;font-size:9px;letter-spacing:1px;font-weight:900;margin-top:3px}.rankBadge{width:28px;height:28px;border-radius:50%;display:inline-grid;place-items:center;background:#eaf0f6;color:#466176;font-weight:900;font-size:12px}.rank-1{background:linear-gradient(90deg,#fff9e6,#fff)!important}.rank-1 .rankBadge{background:linear-gradient(135deg,#f8d85b,#dca31b);box-shadow:0 5px 12px #dca31b44}.rank-2 .rankBadge{background:linear-gradient(135deg,#e8edf3,#aeb9c6)}.rank-3 .rankBadge{background:linear-gradient(135deg,#f3c59d,#b87842)}.rank-1 td:first-child{border-left:4px solid #efb632}.ptsBadge{display:inline-grid;place-items:center;min-width:36px;height:30px;padding:0 9px;border-radius:10px;background:linear-gradient(135deg,#1d5f98,#287fc0);color:#fff;box-shadow:0 4px 10px #2369b733;font-size:13px}.emptyStandings{padding:28px!important;text-align:center!important;color:#8190a0!important;font-weight:600!important}.premiumTable tbody td:nth-child(4){color:#16804a}.premiumTable tbody td:nth-child(6){color:#c13737}.premiumTable tbody td:nth-child(8){color:#8b5b11}@media(max-width:600px){.standingsHead{padding:16px 14px}.standingsHead h2{font-size:18px}.liveBadge{font-size:9px;padding:6px 8px}.premiumTable{min-width:650px}.premiumTable thead th{padding:11px 9px}.premiumTable tbody td{padding:11px 9px}}

/* Gallery full-image visibility */
#galleryList{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.galleryPublicItem{border:1px solid rgba(0,0,0,.08);border-radius:16px;padding:8px;background:#fff;overflow:hidden}
.galleryPublicItem img{width:100%;height:auto;max-height:520px;object-fit:contain;display:block;border-radius:12px;background:#0b1726}
.galleryPublicItem small{display:block;padding:8px 4px 2px;opacity:.75}
.galleryAdminItem img{width:100%;height:auto;max-height:320px;object-fit:contain;border-radius:12px;background:#0b1726;margin-bottom:8px}
.galleryAdminItem small{display:block;margin:6px 0 10px}

/* Ultimate 2.0 */
.liveDashStat{text-align:center;padding:22px}.liveDashStat b{display:block;font-size:32px;color:#1f6090}.liveDashStat small{font-weight:900;letter-spacing:1px;color:#6b7c8d}.liveMatchCard{padding:18px;border:1px solid #d8e4ef;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#fff);margin:10px 0;display:grid;gap:7px}.livePill{justify-self:start;background:#e7f8ed;color:#16804a;padding:5px 10px;border-radius:20px;font-size:11px;font-weight:900}.compareHead{display:grid;grid-template-columns:1fr auto 1fr;gap:14px;align-items:center;text-align:center}.compareHead h2{margin:0}.compareTable{margin-top:20px;border:1px solid #dce6ef;border-radius:14px;overflow:hidden}.compareTable>div{display:grid;grid-template-columns:1fr 80px 80px;gap:8px;padding:12px;border-bottom:1px solid #edf1f5}.compareTable>div:last-child{border-bottom:0}.compareTable span{text-align:center;font-weight:800;color:#66788a}.compareTable b{text-align:center}.compareTable>div:nth-child(even){background:#f8fbfd}@media(max-width:600px){.compareHead{grid-template-columns:1fr}.compareHead>b{display:none}.compareTable>div{grid-template-columns:1fr 60px 60px}}


/* NEXERA FC Premium Home v2 */
.homePremiumHero{position:relative;overflow:hidden;min-height:330px;margin:-6px 0 18px;padding:34px 28px;border-radius:26px;background:linear-gradient(135deg,#071827 0%,#103b5b 52%,#0b2438 100%);display:flex;align-items:center;justify-content:space-between;color:#fff;box-shadow:0 18px 45px #0b294733;border:1px solid #ffffff18}.heroGlow{position:absolute;width:300px;height:300px;right:20%;top:-150px;border-radius:50%;background:#f0b52a22;filter:blur(8px)}.homeHeroText{position:relative;z-index:2;max-width:600px}.homeLivePill{display:inline-block;font-size:10px;letter-spacing:1.7px;font-weight:900;color:#f5c654;background:#ffffff12;border:1px solid #ffffff2c;padding:8px 12px;border-radius:30px}.homePremiumHero h1{font-size:46px;line-height:1.02;margin:17px 0 10px;letter-spacing:-1.5px}.homePremiumHero h1 strong{color:#f3c34e}.homePremiumHero p{opacity:.78;margin:0 0 18px}.heroActions{display:flex;gap:10px;flex-wrap:wrap}.heroGhost{border:1px solid #ffffff35;background:#ffffff0c;color:#fff;border-radius:11px;padding:11px 15px;font-weight:900;cursor:pointer}.homeHeroLogo{position:relative;width:210px;height:210px;display:grid;place-items:center;margin-right:35px}.homeHeroLogo img{position:relative;z-index:2;width:150px;height:150px;object-fit:cover;border-radius:50%;border:5px solid #fff;box-shadow:0 12px 35px #0008}.heroLogoRing{position:absolute;width:205px;height:205px;border:1px solid #f2c34a66;border-radius:50%;box-shadow:0 0 0 18px #ffffff08}.premiumNotice{border-radius:14px;box-shadow:0 7px 20px #183b5520}.homeSectionHead{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:25px 2px 10px}.homeSectionHead span{display:block;color:#c38a1b;font-size:9px;font-weight:900;letter-spacing:2px;margin-bottom:3px}.homeSectionHead h2{margin:0;font-size:21px;color:#20384f}.homeQuickStats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}.homeStat{background:#fff;border:1px solid #dfe8f0;border-radius:16px;padding:15px;text-align:center;box-shadow:0 8px 20px #17364d0b}.homeStat b{display:block;font-size:25px;color:#1f6090}.homeStat span{font-size:9px;letter-spacing:1px;font-weight:900;color:#718196}.homeLiveMatch{min-height:80px}.homeLiveCard{position:relative;background:linear-gradient(135deg,#102a43,#1d5c88);color:#fff;border-radius:20px;padding:20px;box-shadow:0 14px 30px #0c29452b;overflow:hidden}.homeLiveCard:after{content:'';position:absolute;right:-40px;top:-60px;width:180px;height:180px;border-radius:50%;background:#f2c34a14}.homeLiveTop{display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:900}.homeLiveTop .liveNow{background:#d94b4b;color:#fff;padding:6px 10px;border-radius:20px}.homeScoreline{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;text-align:center;gap:12px;margin-top:14px}.homeScoreline h3{margin:0;font-size:17px}.homeScoreline .score{font-size:28px;font-weight:1000;color:#f4c44e}.homeQuickLinks{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:22px 0}.homeQuickLinks button{background:#fff;border:1px solid #dce6ef;border-radius:12px;padding:12px 7px;font-size:11px;font-weight:900;color:#35526c;cursor:pointer;box-shadow:0 5px 14px #17364d0a}.homeQuickLinks button:hover{transform:translateY(-1px)}@media(max-width:700px){.homePremiumHero{min-height:300px;padding:25px 19px}.homePremiumHero h1{font-size:36px}.homeHeroLogo{width:125px;height:125px;margin-right:0}.homeHeroLogo img{width:95px;height:95px}.heroLogoRing{width:125px;height:125px}.homeQuickStats{grid-template-columns:repeat(2,1fr)}.homeQuickLinks{grid-template-columns:repeat(3,1fr)}.homeSectionHead h2{font-size:18px}.homeScoreline h3{font-size:14px}}@media(max-width:470px){.homePremiumHero{display:block}.homeHeroLogo{position:absolute;right:5px;top:25px;opacity:.28}.homePremiumHero h1{font-size:34px}.homeScoreline{gap:6px}.homeScoreline .score{font-size:23px}}

/* NEXERA FC Contextual Three-dot Menus */
.nxContextRow{position:relative;padding-right:52px!important}.nxRowMain{min-width:0}.nxRowMain>*{display:block;margin-bottom:3px}.nxCtxWrap{position:absolute;right:10px;top:10px;z-index:30}.nxCtxBtn{width:34px;height:34px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.07);color:inherit;font-size:22px;line-height:1;cursor:pointer}.nxCtxBtn:hover{background:rgba(255,255,255,.15)}.nxCtxMenu{position:absolute;right:0;top:40px;width:205px;display:none;padding:7px;border-radius:14px;background:#101827;border:1px solid rgba(255,255,255,.14);box-shadow:0 16px 40px rgba(0,0,0,.38)}.nxCtxMenu.open{display:block}.nxCtxMenu button{width:100%;display:flex;gap:9px;align-items:center;padding:10px 11px;border:0;border-radius:9px;background:transparent;color:#fff;text-align:left;font-size:13px;cursor:pointer}.nxCtxMenu button:hover{background:rgba(255,255,255,.09)}.nxQuickOverlay{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:10000;display:flex;align-items:center;justify-content:center;padding:18px}.nxQuickBox{position:relative;width:min(430px,100%);max-height:85vh;overflow:auto;border-radius:20px;padding:24px;background:#101827;color:#fff;box-shadow:0 20px 60px rgba(0,0,0,.5)}.nxQuickClose{position:absolute;right:12px;top:10px;border:0;background:transparent;color:#fff;font-size:28px;cursor:pointer}.nxQuickPhoto{width:86px;height:86px;object-fit:cover;border-radius:18px;display:block;margin-bottom:12px}.nxQuickStats{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:18px 0}.nxQuickStats b{font-size:17px;text-align:center}.nxQuickStats span{display:block;font-size:9px;opacity:.65;margin-top:3px;font-weight:400}

/* Contextual menu v2: clearly separated from the global navigation menu */
.nxCtxWrap{position:absolute!important;right:10px;top:10px;z-index:100}
.nxCtxBtn{display:grid!important;place-items:center;width:38px!important;height:38px!important;border:1px solid #d6e2ec!important;border-radius:12px!important;background:#fff!important;color:#18364f!important;font-size:24px!important;font-weight:900!important;box-shadow:0 5px 14px rgba(20,55,80,.12)!important}
.nxCtxBtn:hover{background:#f2f7fb!important;transform:translateY(-1px)}
.nxCtxMenu{position:absolute!important;right:0!important;top:44px!important;width:220px!important;display:none!important;padding:8px!important;border-radius:16px!important;background:#102033!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:0 18px 45px rgba(0,0,0,.30)!important}
.nxCtxMenu.open{display:block!important}
.nxCtxTitle{padding:7px 10px 8px;color:#f2c34a;font-size:9px;font-weight:900;letter-spacing:1.5px;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:4px}
.nxCtxMenu button{min-height:40px!important;width:100%!important;display:flex!important;gap:10px!important;align-items:center!important;padding:10px 11px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#fff!important;text-align:left!important;font-size:13px!important;cursor:pointer!important}
.nxCtxMenu button span{width:20px;text-align:center}
.nxCtxMenu button:hover{background:rgba(255,255,255,.10)!important}
@media(max-width:600px){.nxCtxMenu{position:fixed!important;right:12px!important;top:auto!important;bottom:12px!important;width:min(290px,calc(100vw - 24px))!important;border-radius:18px!important;padding:9px!important}.nxCtxMenu button{min-height:44px!important;font-size:14px!important}.nxCtxBtn{width:40px!important;height:40px!important}}

/* Google Drive Player Profile Photo */
.photoUploadLabel{display:block;padding:12px;border:1px dashed rgba(255,255,255,.25);border-radius:12px;font-weight:700;line-height:1.5}
.photoUploadLabel input{display:block;width:100%;margin-top:8px}
.editPhotoPreview{width:92px;height:92px;object-fit:cover;border-radius:50%;border:3px solid rgba(255,255,255,.25);margin:4px auto 8px}
.profileHero .avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}

/* Premium Player Profile */
.premiumProfileHero{position:relative;overflow:hidden;background:radial-gradient(circle at 85% 15%,#3f86aa55,transparent 30%),linear-gradient(135deg,#0b1d31,#164766 58%,#267b91);padding:28px 22px;box-shadow:0 18px 45px #10243a22}.premiumProfileHero:after{content:"";position:absolute;width:180px;height:180px;border:1px solid #ffffff20;border-radius:50%;right:-70px;bottom:-90px}.profileAvatarWrap{position:relative;flex:0 0 auto}.profileAvatarWrap .avatar{width:112px;height:112px;border:4px solid #f2c044;box-shadow:0 0 0 7px #ffffff12,0 12px 28px #0005;background:linear-gradient(135deg,#f2c044,#d98e20);font-size:48px}.profileAvatarWrap .avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.onlineDot{position:absolute;right:3px;bottom:5px;width:23px;height:23px;border-radius:50%;background:#18a765;color:#fff;border:3px solid #163c59;font-size:10px;display:grid;place-items:center}.profileIdentity{min-width:0;position:relative;z-index:1}.profileEyebrow{font-size:10px;letter-spacing:2px;color:#f3c34a;font-weight:800}.profileIdentity h1{font-size:30px;margin:8px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profileIdentity p{margin:0;color:#b9cad7;font-size:12px}.profileBadges{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.profileVerified{background:#e4f8ed;color:#147743}.profileMatchCard{background:linear-gradient(145deg,#fff,#f7fafc);border:1px solid #dfe7ee;border-radius:20px;padding:15px;margin-bottom:12px;box-shadow:0 9px 25px #14243a0b}.pmTop{display:flex;justify-content:space-between;gap:8px;align-items:center;color:#718093;font-size:11px;font-weight:700}.pmStatus{background:#e3f7ec;color:#16804a;padding:5px 9px;border-radius:20px;font-size:10px;letter-spacing:.5px}.pmTeams{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;text-align:center;padding:16px 4px 12px}.pmTeams strong{display:block;font-size:15px;color:#1e2d3d}.pmTeams small{display:block;color:#8a96a3;font-size:9px;margin-top:4px}.pmVs{font-weight:900;color:#e3a91d;font-size:12px}.pmMeta{display:grid;grid-template-columns:1fr 1fr;gap:7px}.pmMeta span{background:#eef4f8;border-radius:10px;padding:9px;font-size:11px;color:#536476}.premiumEmpty small{display:block;margin-top:7px;color:#9aa5af;font-size:11px}
@media(max-width:600px){.premiumProfileHero{padding:22px 16px}.profileAvatarWrap .avatar{width:92px;height:92px}.profileIdentity h1{font-size:24px}.pmMeta{grid-template-columns:1fr 1fr}}

/* NEXERA FC HOME V2 — premium visual upgrade, functionality unchanged */
#home{padding-bottom:8px}
.homePremiumHero{position:relative;min-height:360px;border-radius:30px;padding:34px;overflow:hidden;display:flex;align-items:center;justify-content:space-between;background:radial-gradient(circle at 82% 35%,#2f86a8 0,#1b4d70 27%,#0b1d31 70%);box-shadow:0 22px 55px #07152625;border:1px solid #ffffff18}
.homePremiumHero:before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,#ffffff08 1px,transparent 1px);background-size:38px 38px;opacity:.22;mask-image:linear-gradient(90deg,#000,transparent 85%)}
.heroGlow{position:absolute;width:260px;height:260px;border-radius:50%;right:12%;top:10%;background:#f2bd3d22;filter:blur(10px)}
.homeHeroText,.homeHeroLogo{position:relative;z-index:2}
.homeLivePill{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #ffffff22;background:#ffffff0d;border-radius:99px;color:#f3c653!important;font-size:10px!important;letter-spacing:2px!important;box-shadow:0 8px 20px #0002}
.homeHeroText h1{font-size:56px;line-height:1.02;margin:17px 0 12px;color:#fff;letter-spacing:-1px}.homeHeroText h1 strong{color:#f4c34b}.homeHeroText p{color:#c6d5e3;margin:0 0 20px;font-size:13px}
.heroActions{display:flex;gap:10px;flex-wrap:wrap}.heroActions .goldBtn{width:auto;min-width:185px;box-shadow:0 10px 25px #0003}.heroGhost{border:1px solid #ffffff35;background:#ffffff0b;color:#fff;border-radius:12px;padding:13px 16px;font-weight:800;cursor:pointer;backdrop-filter:blur(8px)}
.homeHeroLogo{width:205px;height:205px;display:grid;place-items:center;flex:0 0 auto}.homeHeroLogo img{width:160px;height:160px;border-radius:50%;object-fit:cover;border:5px solid #f1bc3d;box-shadow:0 0 0 10px #ffffff0a,0 20px 45px #0005;position:relative;z-index:2}.heroLogoRing{position:absolute;inset:2px;border:1px dashed #f2c34b66;border-radius:50%;animation:nexeraSpin 24s linear infinite}.heroLogoRing:after{content:"";position:absolute;width:10px;height:10px;background:#f4c34b;border-radius:50%;top:16px;left:50%;box-shadow:0 0 18px #f4c34b}
@keyframes nexeraSpin{to{transform:rotate(360deg)}}
.premiumNotice{position:relative;border:1px solid #e5eaf0;border-left:0!important;padding:15px 18px!important;box-shadow:0 10px 28px #14243a0a;overflow:hidden}.premiumNotice:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#eab12c}.homeQuickStats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0 26px}.homeQuickStats>div{background:#fff;border:1px solid #e2e8ef;border-radius:18px;padding:16px;box-shadow:0 10px 28px #14243a09;position:relative;overflow:hidden}.homeQuickStats>div:after{content:"";position:absolute;width:55px;height:55px;border-radius:50%;right:-22px;bottom:-22px;background:#2369b70d}.homeQuickStats b{font-size:25px;color:#183c60}.homeQuickStats small{display:block;color:#7b8998;margin-top:4px;font-size:11px;text-transform:uppercase;letter-spacing:.7px}
.homeSectionHead{display:flex;justify-content:space-between;align-items:end;gap:10px;margin:30px 2px 12px}.homeSectionHead>div span{font-size:9px;color:#2770ac;font-weight:900;letter-spacing:2px}.homeSectionHead h2{margin:4px 0 0;font-size:21px;color:#172d44}.homeSectionHead .miniBtn{white-space:nowrap;border:1px solid #d7e4f0;background:#fff;box-shadow:0 6px 16px #14243a09}
.homeLiveMatch:empty:after{content:"No live match right now";display:block;text-align:center;padding:22px;color:#7d8996;background:#fff;border:1px dashed #d8e0e8;border-radius:18px}
.homeMatches .matchCard,.homeLiveMatch .matchCard{transition:transform .2s,box-shadow .2s}.homeMatches .matchCard:hover,.homeLiveMatch .matchCard:hover{transform:translateY(-2px);box-shadow:0 15px 35px #14243a14}
.homeQuickLinks{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-top:26px}.homeQuickLinks button{border:1px solid #dce5ee;background:#fff;border-radius:14px;padding:13px 7px;color:#29445f;font-weight:800;box-shadow:0 7px 18px #14243a08;cursor:pointer;transition:.2s}.homeQuickLinks button:hover{transform:translateY(-2px);border-color:#b9cee2;background:#f8fbfe}
.homeGallerySlider{border-radius:22px;overflow:hidden}.homeGallerySlider img{max-height:360px!important;height:auto!important;object-fit:contain!important;background:#0d1b29;border-radius:22px}
#homeNews .newsItem{background:#fff;border:1px solid #e1e7ee;border-radius:16px;padding:15px;margin:9px 0;box-shadow:0 8px 24px #14243a08}
@media(max-width:600px){.homePremiumHero{min-height:390px;padding:25px 20px;align-items:flex-start}.homeHeroText h1{font-size:40px}.homeHeroLogo{position:absolute;right:-28px;bottom:-18px;width:150px;height:150px;opacity:.92}.homeHeroLogo img{width:112px;height:112px}.heroLogoRing{inset:2px}.heroActions{position:relative;z-index:4;max-width:72%}.heroActions .goldBtn,.heroGhost{min-width:0;width:auto;padding:12px 13px;font-size:11px}.homeQuickStats{grid-template-columns:repeat(2,1fr);gap:9px}.homeQuickStats>div{padding:13px}.homeQuickStats b{font-size:22px}.homeSectionHead{margin-top:24px}.homeSectionHead h2{font-size:19px}.homeQuickLinks{grid-template-columns:repeat(3,1fr)}.homeQuickLinks button{font-size:11px;padding:12px 4px}.homeGallerySlider img{max-height:260px!important}}

/* Compact categorized mobile menu */
#drawer .nxf-menu-group{margin:4px 10px;border:1px solid rgba(255,255,255,.08);border-radius:12px;overflow:hidden;background:rgba(255,255,255,.025)}
#drawer .nxf-menu-group summary{list-style:none;cursor:pointer;padding:11px 12px;font-weight:800;font-size:12px;letter-spacing:.6px;color:#283647;background:#f3f6fa;display:flex;align-items:center;justify-content:space-between}
#drawer .nxf-menu-group summary::-webkit-details-marker{display:none}
#drawer .nxf-menu-group summary:after{content:'＋';opacity:.7;font-size:15px}
#drawer .nxf-menu-group[open] summary:after{content:'−'}
#drawer .nxf-menu-items{padding:4px 5px 7px;background:#fff}
#drawer .nxf-menu-items button{margin:1px 0!important;border-radius:9px!important;padding:9px 10px!important;font-size:13px!important}
#drawer .nxf-top-link{margin:3px 10px!important;width:calc(100% - 20px)!important;border-radius:10px!important}

/* NEXERA FC - Individual squad deadline UI */
.deadlinePlayer{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;align-items:center;background:#f7f9fc!important;border:1px solid #e1e7ee;padding:12px!important;border-radius:14px!important}.deadlinePlayer>div{display:flex;flex-direction:column;gap:4px}.deadlinePlayer small{color:#7b8794;font-size:11px}.deadlinePlayer input{width:100%;box-sizing:border-box}@media(max-width:600px){.deadlinePlayer{grid-template-columns:1fr!important}}

/* Player Profile edit action — intentionally placed at the very bottom */
.profileEditBottom{
  margin:18px 0 8px;
  padding:14px 0 4px;
  display:flex;
  justify-content:center;
  border-top:1px solid rgba(255,255,255,.08);
}
.profileEditBottom .profileEditBtn{
  width:100%;
  max-width:420px;
  margin:0;
}
.profileDownloadBar{display:flex;justify-content:flex-end;margin:12px 0}.profileSectionHead{display:flex;align-items:center;justify-content:space-between;gap:12px}.profileSectionHead h2{margin:0}@media(max-width:480px){.profileSectionHead{align-items:flex-start;flex-direction:column}.profileDownloadBar{justify-content:stretch}.profileDownloadBar .smallBtn{width:100%}}

/* Club Result Submit — one player at a time */
.resultPlayerList{display:flex;flex-direction:column;gap:10px;margin:14px 0}
.resultPlayerSelect{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border:1px solid #dbe5ef;background:#fff;border-radius:14px;padding:13px 15px;cursor:pointer;box-shadow:0 3px 12px rgba(16,42,67,.06)}
.resultPlayerSelect span{display:flex;flex-direction:column;gap:4px;min-width:0}.resultPlayerSelect b{font-size:15px;color:#102a43}.resultPlayerSelect small{font-size:11px;color:#718096;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resultPlayerSelect strong{font-size:11px;white-space:nowrap;color:#1769aa}.resultPlayerSelect.hasResult{border-color:#b9dfc5;background:#f6fff8}.resultPlayerSelect.hasResult strong{color:#218838}
.resultEditor{margin-top:14px;border:2px solid rgba(25,103,210,.14)!important}.resultEditor h3{margin-top:0}
@media(max-width:600px){.resultPlayerSelect{padding:12px}.resultPlayerSelect strong{font-size:10px}.resultEditor .scoreRow{grid-template-columns:1fr!important}}
.homeDirectors{margin-top:24px}
.directorSection{padding:20px;border-radius:26px;background:linear-gradient(145deg,#101c30 0%,#081221 100%);border:1px solid rgba(255,255,255,.14);box-shadow:0 18px 50px rgba(0,0,0,.22);overflow:hidden}
.directorTitle{display:flex;align-items:center;gap:13px;margin-bottom:16px}.directorTitle>span{font-size:32px;filter:drop-shadow(0 3px 5px rgba(0,0,0,.35))}.directorTitle small{display:block;color:#b9c8da;opacity:1;font-size:10px;font-weight:700;letter-spacing:1.8px}.directorTitle h2{margin:3px 0 0;color:#fff;font-size:23px;font-weight:800;line-height:1.2;text-shadow:0 2px 10px rgba(0,0,0,.35)}
.directorSlider{position:relative;min-height:230px}.directorCard{position:absolute;inset:0;opacity:0;transform:translateX(18px);transition:.45s ease;display:flex;align-items:center;gap:20px;padding:16px;border-radius:22px;background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}.directorCard.active{opacity:1;transform:translateX(0);position:relative}.directorCard img{width:145px;height:170px;object-fit:cover;border-radius:18px;border:2px solid rgba(255,196,55,.55);box-shadow:0 8px 25px rgba(0,0,0,.3);background:#17243a;flex:none}.directorCard>div{min-width:0;flex:1}.directorCard h3{font-size:21px;margin:0 0 10px;color:#fff;font-weight:800;line-height:1.25;letter-spacing:.2px;text-shadow:0 2px 12px rgba(0,0,0,.5);overflow-wrap:anywhere;word-break:break-word}.directorCard p{display:inline-block;margin:0;color:#ffd76a;font-size:13px;font-weight:800;line-height:1.25;padding:7px 11px;border-radius:999px;background:rgba(255,193,7,.10);border:1px solid rgba(255,215,106,.28);text-shadow:0 1px 5px rgba(0,0,0,.35)}
@media(max-width:480px){.directorSection{padding:16px}.directorCard img{width:105px;height:135px}.directorSlider{min-height:185px}.directorCard{gap:13px;padding:12px}.directorCard h3{font-size:17px;margin-bottom:9px}.directorCard p{font-size:11px;padding:6px 9px}.directorTitle h2{font-size:21px}}

/* Final visibility fixes */
.adminContent{color:#253246;background:#fff;} .adminContent h1,.adminContent h2,.adminContent h3,.adminContent b,.adminContent label{color:#253246;} .standingsCard{color:#253246;} .premiumTable th{background:#10243a;color:#fff;font-weight:800;} .premiumTable td{color:#253246;background:#fff;} .rankingIntro{display:flex;justify-content:space-between;gap:12px;align-items:center;background:linear-gradient(135deg,#10243a,#1f5878);color:#fff!important;} .rankingIntro b{color:#f2c044!important;} .rankingIntro span{color:#dbe8f2;} .nxRowMain{min-width:0;flex:1;} .nxRowMain b{display:block;} .nxContextRow{cursor:pointer;}
/* FINAL VISIBILITY PATCH */
.adminContent{min-height:260px!important;background:#fff!important;color:#253246!important;opacity:1!important;visibility:visible!important;}
.adminContent .card,.adminContent .playerRow,.adminContent .resultItem{color:#253246!important;background:#f7f9fc!important;}
.adminContent h2,.adminContent h3,.adminContent b,.adminContent strong,.adminContent label,.adminContent p,.adminContent small{color:#253246!important;}
#clubPlayerRanking .standingsCard{background:#fff!important;color:#253246!important;min-height:180px;}
#clubPlayerRanking .premiumTable{background:#fff!important;color:#253246!important;}
#clubPlayerRanking .premiumTable td{color:#253246!important;background:#fff!important;}
#clubPlayerRanking .premiumTable th{color:#fff!important;background:#10243a!important;}
#profileHistory .resultItem{background:#f5f7fa!important;color:#253246!important;}
#profileHistory .resultItem b,#profileHistory .resultItem small{color:#253246!important;}

/* V5 HARD VISIBILITY FIX — Admin + Club Player Ranking */
#admin{background:#eef2f7!important;color:#203246!important;padding-bottom:24px!important;}
#admin.active{display:block!important;visibility:visible!important;opacity:1!important;}
#admin .adminHero{display:block!important;background:linear-gradient(135deg,#0b1d31,#173f61)!important;color:#fff!important;border:1px solid #294a66!important;min-height:110px!important;}
#admin .adminHero h1,#admin .adminHero p{color:#fff!important;opacity:1!important;}
#admin .adminGrid{display:grid!important;visibility:visible!important;opacity:1!important;}
#admin .adminGrid button{display:block!important;background:#fff!important;color:#203246!important;border:1px solid #d7e1ea!important;box-shadow:0 5px 15px rgba(16,42,67,.08)!important;}
#admin .adminGrid button:hover{background:#edf6ff!important;color:#1765a7!important;}
#adminContent{display:block!important;min-height:300px!important;background:#fff!important;color:#203246!important;border:1px solid #d8e2eb!important;border-radius:20px!important;padding:18px!important;opacity:1!important;visibility:visible!important;}
#adminContent h1,#adminContent h2,#adminContent h3,#adminContent p,#adminContent b,#adminContent strong,#adminContent label,#adminContent small,#adminContent span{color:#203246!important;opacity:1!important;visibility:visible!important;}
#adminContent .card,#adminContent .playerRow,#adminContent .resultItem{background:#f6f9fc!important;color:#203246!important;border:1px solid #dfe7ef!important;}
#adminContent .smallBtn,#adminContent .primary{color:#fff!important;}
#clubPlayerRanking{background:#eef2f7!important;color:#203246!important;}
#clubPlayerRanking.active{display:block!important;visibility:visible!important;opacity:1!important;}
#clubPlayerRanking .standingsCard{display:block!important;background:#fff!important;color:#203246!important;border:1px solid #d7e2eb!important;box-shadow:0 10px 30px rgba(16,42,67,.08)!important;}
#clubPlayerRanking .premiumTable{display:table!important;background:#fff!important;color:#203246!important;visibility:visible!important;opacity:1!important;}
#clubPlayerRanking .premiumTable thead th{background:#10243a!important;color:#fff!important;}
#clubPlayerRanking .premiumTable tbody td{background:#fff!important;color:#203246!important;}
#clubPlayerRanking .premiumTable tbody tr:nth-child(even) td{background:#f7fafc!important;}
#clubPlayerRanking .nameCell b{color:#183650!important;}
#clubPlayerRanking .ptsBadge{color:#fff!important;}
#clubPlayerPointTableHome,.premiumTable tbody#clubPlayerPointTableHome{color:#203246!important;}
/* Profile automatic W/D/L + rating cards */
#profileStats.stats{grid-template-columns:repeat(6,1fr)!important;}
#profileStats.stats>div{display:block!important;background:#fff!important;color:#203246!important;border:1px solid #dce6ee!important;box-shadow:0 7px 20px rgba(16,42,67,.06)!important;}
#profileStats.stats b{color:#1f65af!important;}
#profileStats.stats span{color:#617287!important;}
@media(max-width:700px){#profileStats.stats{grid-template-columns:repeat(3,1fr)!important;}}
@media(max-width:430px){#profileStats.stats{grid-template-columns:repeat(2,1fr)!important;}}

/* V6 FINAL UI VISIBILITY - never leave Admin/Ranking as an empty white surface */
#admin .adminContent{min-height:320px!important;background:#f7f9fc!important;color:#203246!important;}
#admin .adminContent:empty:after{content:'Select an Admin option above';display:block;text-align:center;padding:80px 20px;color:#718096;font-weight:700;}
#adminContent .tabs{background:#eef3f8;padding:6px;border-radius:14px;}
#adminContent .tab{background:#fff;color:#203246;border:1px solid #d9e3ec;}
#adminContent .tab.active{background:#2369b7;color:#fff;border-color:#2369b7;}
#adminContent .resultEditor{background:#fff!important;color:#203246!important;}
#clubPlayerRanking{padding-bottom:24px!important;}
#clubPlayerRanking h1{color:#203246!important;font-weight:900!important;}
#clubPlayerRanking .rankingIntro{min-height:62px!important;}
#clubPlayerRanking .tableWrap{background:#fff!important;border-radius:16px!important;}
#clubPlayerRanking .premiumTable{border-radius:16px!important;overflow:hidden;}
#clubPlayerRanking .premiumTable tbody:empty:after{content:'No club player result yet';display:block;padding:28px;text-align:center;color:#718096;font-weight:700;}
#clubPlayerPointTableHome:empty:after{content:'No club player result yet';display:block;padding:22px;text-align:center;color:#718096;font-weight:700;}
@media(max-width:600px){#admin .adminContent{padding:14px!important;}#clubPlayerRanking .tableWrap{width:100%;overflow-x:auto;}}

/* V7 REAL UI SAFETY: prevent white/blank Admin and Club Ranking pages */
#app{min-height:100vh!important}
#admin.active,#clubPlayerRanking.active,#home.active,#profile.active,#club.active{display:block!important;visibility:visible!important;opacity:1!important}
#admin .adminHero{display:block!important;visibility:visible!important}
#admin .adminGrid{display:grid!important;visibility:visible!important}
#adminContent{display:block!important;visibility:visible!important;min-height:320px!important}
#clubPlayerRanking .tableWrap{display:block!important;visibility:visible!important;min-height:120px!important}
#clubPlayerRanking table{display:table!important;visibility:visible!important}
#clubPlayerRanking tbody{display:table-row-group!important;visibility:visible!important}
#clubPlayerRanking tr{display:table-row!important;visibility:visible!important}
#clubPlayerRanking th,#clubPlayerRanking td{display:table-cell!important;visibility:visible!important}
/* Player Result only: make the per-player result controls clear and mobile friendly. */
.noticeBox{margin:10px 0;padding:12px 14px;border-radius:12px;background:rgba(20,45,75,.08);border:1px solid rgba(20,45,75,.16);font-size:14px;line-height:1.5}
.resultInputRow .scoreRow{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:8px;margin-top:8px}
.resultInputRow select,.resultInputRow input{min-width:0}
@media(max-width:600px){.resultInputRow .scoreRow{grid-template-columns:1fr 1fr}.resultInputRow .scoreRow select{grid-column:1/-1}}

.last5Form{display:flex;gap:10px;flex-wrap:wrap;padding:14px 0}.formBadge{min-width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#eef3f7;font-weight:900;font-size:16px}.formBadge.win{background:#dff7e8;color:#147743}.formBadge.draw{background:#fff2cc;color:#9a6800}.formBadge.loss{background:#ffe3e3;color:#b72d2d}.formBadge small{display:block;font-size:8px;margin-top:2px}

/* Club Match Squad picker */
.squadPickGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin:10px 0}
.squadPickCard{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(10,25,45,.75)}
.squadPickCard.selected{outline:2px solid rgba(0,180,255,.75);background:rgba(0,120,190,.18)}
.squadPickCard img{width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.2);flex:none}
.squadPickInfo{flex:1;min-width:0}.squadPickInfo b,.squadPickInfo small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.squadPickInfo small{opacity:.7;margin-top:3px}
.selectedSquadSummary{margin:8px 0;padding:10px}.selectedSquadSummary small{word-break:break-word}

/* Firebase player list photo */
.playerListPhoto{width:46px;height:46px;border-radius:50%;object-fit:cover;flex:0 0 46px;margin-right:10px;border:2px solid rgba(255,255,255,.18)}
.nxRowMain{display:flex;align-items:center;gap:8px}
.nxRowMain>div{min-width:0}
.clubSlotBox{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:8px 0 12px}.clubSlotBtn{border:1px solid #dbe4ed;background:#f4f7fa;border-radius:14px;padding:12px 8px;display:flex;flex-direction:column;align-items:center;gap:4px;color:#334455;cursor:pointer}.clubSlotBtn span{font-size:20px}.clubSlotBtn b{font-size:12px}.clubSlotBtn small{font-size:10px;color:#7a8794}.clubSlotBtn.active{background:#2369b7;color:#fff;border-color:#2369b7;box-shadow:0 5px 14px #2369b733}.clubSlotBtn.active small{color:#eaf4ff}.activeSlotInfo{display:flex;flex-direction:column;gap:4px;border-left:4px solid #2369b7}.activeSlotInfo small{color:#718093}.slotAssigned{color:#f1bd42!important}.slotDeadlineRows{display:grid;gap:10px}.slotDeadlineRow{background:#f5f7fa;border:1px solid #e1e7ee;border-radius:15px;padding:13px;display:grid;gap:7px}.slotDeadlineHead{display:flex;justify-content:space-between;gap:8px;align-items:center}.slotDeadlineHead span{font-size:11px;color:#718093;background:#e9eef4;padding:4px 8px;border-radius:20px}.slotDeadlineRow>small{color:#718093;font-size:11px}.slotDeadlineRow input{width:100%;box-sizing:border-box}.slotDeadlineRow .deadlineHint{font-size:11px;color:#2369b7}@media(max-width:600px){.clubSlotBox{grid-template-columns:repeat(2,1fr)}}

/* Club Squad 4-Step Wizard */
.clubWizardProgress{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0 16px}
.clubWizardStep{border:1px solid rgba(120,140,170,.25);border-radius:12px;padding:10px 6px;text-align:center;background:rgba(120,140,170,.08);opacity:.7}
.clubWizardStep span{display:inline-flex;width:25px;height:25px;border-radius:50%;align-items:center;justify-content:center;font-weight:800;margin-right:4px;background:rgba(120,140,170,.2)}
.clubWizardStep.active{opacity:1;box-shadow:0 0 0 2px rgba(40,130,255,.22)}
.clubWizardStep.done{opacity:1}
.slotSummaryGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.slotSummaryMini{padding:10px;margin:0}
.wizardActions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:12px}
@media(max-width:600px){.clubWizardProgress{grid-template-columns:repeat(2,1fr)}.slotSummaryGrid{grid-template-columns:1fr}}

/* Home Tournament Spotlight — responsive card redesign */
#homeTournament.homeSpotlightGrid{display:grid;grid-template-columns:1fr;gap:14px;min-width:0}
#homeTournament .homeSpotlightCard{position:relative;min-width:0;box-sizing:border-box;background:#fff;border:1px solid #dfe7ef;border-radius:22px;padding:16px 52px 16px 16px;box-shadow:0 10px 28px rgba(16,36,58,.08);overflow:hidden}
#homeTournament .homeSpotlightCard:before{content:'';position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(180deg,#e8b52d,#2772a5)}
#homeTournament .homeSpotlightBid:before{background:linear-gradient(180deg,#2772a5,#173d5d)}
#homeTournament .spotlightTop{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;min-width:0}
#homeTournament .spotlightBadge{font-size:9px;font-weight:900;letter-spacing:1.3px;color:#6a7b8c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#homeTournament .spotlightStatus{font-size:9px;font-weight:900;color:#16804a;background:#e5f7ed;padding:6px 9px;border-radius:20px;white-space:nowrap}
#homeTournament .bidStatus{color:#2369a8;background:#e7f2fb}
#homeTournament .spotlightBody{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:13px;min-width:0}
#homeTournament .spotlightIcon{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;background:#fff6d8;font-size:27px;box-shadow:inset 0 0 0 1px #f0dfaa}
#homeTournament .bidIcon{background:#eaf3fb;box-shadow:inset 0 0 0 1px #d5e4f1}
#homeTournament .spotlightInfo{min-width:0}
#homeTournament .spotlightInfo h3{margin:0 0 8px;font-size:18px;line-height:1.18;color:#1d3247;overflow-wrap:anywhere;word-break:break-word}
#homeTournament .spotlightMeta{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
#homeTournament .spotlightMeta span{display:inline-block;max-width:100%;background:#f3f6f9;color:#4c6174;border-radius:9px;padding:6px 8px;font-size:10px;line-height:1.2;overflow-wrap:anywhere}
#homeTournament .spotlightDeadline{margin-top:8px;color:#6d7e8f;font-size:11px;overflow-wrap:anywhere}
#homeTournament .spotlightDeadline b{color:#c18a12}
#homeTournament .spotlightSub{font-size:11px;color:#718093;line-height:1.4;overflow-wrap:anywhere}
#homeTournament .spotlightOpen{border:0;background:#e7f2fb;color:#2369a8;border-radius:12px;padding:10px 12px;font-size:11px;font-weight:900;white-space:nowrap;cursor:pointer;box-shadow:0 5px 14px rgba(35,105,183,.08)}
#homeTournament .spotlightOpen span{font-size:16px;margin-left:3px}
#homeTournament .spotlightOpen:hover{transform:translateY(-1px)}
@media(max-width:600px){
 #homeTournament .homeSpotlightCard{padding:15px 48px 15px 15px;border-radius:20px}
 #homeTournament .spotlightBody{grid-template-columns:48px minmax(0,1fr);gap:11px}
 #homeTournament .spotlightIcon{width:48px;height:48px;border-radius:14px;font-size:22px}
 #homeTournament .spotlightInfo h3{font-size:17px}
 #homeTournament .spotlightOpen{grid-column:1/-1;width:100%;padding:10px;margin-top:2px}
 #homeTournament .spotlightTop{margin-bottom:10px}
 #homeTournament .spotlightMeta span{font-size:9px;padding:5px 7px}
}
@media(max-width:380px){
 #homeTournament .spotlightTop{align-items:flex-start;flex-direction:column}
 #homeTournament .spotlightStatus{align-self:flex-start}
}
/* V34 - Fast fixture-based Player Result entry */
.clubResultQuickForm{display:grid;gap:8px;margin:14px 0;padding:14px;border:1px solid #dbe5ef;border-radius:16px;background:#f8fbff}
.clubResultQuickForm label{font-size:12px;font-weight:800;color:#46637f;margin-top:3px}
.clubResultQuickForm input{width:100%;box-sizing:border-box}
.crPlayerPreview{min-height:42px;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:9px 12px;border-radius:12px;background:#fff;border:1px dashed #b9c9d8;color:#64748b;font-size:12px}
.crPlayerPreview b{color:#123b5d;font-size:14px}.crPlayerPreview small{color:#6b7f92}
.crScoreInputs{grid-template-columns:1fr 1fr!important;align-items:center}
.crScoreInputs .autoRatingBadge{grid-column:1/-1;text-align:center}
.typedResultRow{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:12px;margin:8px 0;border:1px solid #dbe5ef;border-radius:14px;background:#fff;box-shadow:0 2px 10px rgba(16,42,67,.05)}
.typedResultRow>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}.typedResultRow small{color:#718096;font-size:11px;overflow:hidden;text-overflow:ellipsis}
.typedResultStats{display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:11px;white-space:nowrap}.typedResultStats strong{font-size:12px}.typedResultActions{display:flex;gap:5px}
@media(max-width:600px){.typedResultRow{grid-template-columns:1fr}.typedResultStats{align-items:flex-start}.typedResultActions{justify-content:flex-end}.crScoreInputs{grid-template-columns:1fr!important}}

/* V35 bulk player result submit */
.bulkPlayerForm{display:grid;gap:9px;margin:14px 0;padding:14px;border:1px solid #dbe5ef;border-radius:16px;background:#f8fbff}
.bulkPlayerForm label{font-size:12px;font-weight:800;color:#46637f}
.bulkPlayerForm textarea{width:100%;box-sizing:border-box;min-height:92px;resize:vertical}
.bulkActions{display:flex;gap:8px;flex-wrap:wrap}
.bulkActions .primary,.bulkActions .smallBtn{margin:0}
.bulkTypedResultRow{grid-template-columns:minmax(130px,.8fr) minmax(0,2fr) auto!important}
.bulkPlayerIdentity{display:flex;flex-direction:column;gap:3px;min-width:0}
.bulkPlayerIdentity b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bulkResultFields{display:grid;grid-template-columns:1.2fr .7fr .7fr auto;gap:7px;align-items:center}
.bulkResultFields input{width:100%;box-sizing:border-box;min-width:0}
@media(max-width:700px){
 .bulkTypedResultRow{grid-template-columns:1fr!important}
 .bulkResultFields{grid-template-columns:1fr 1fr;}
 .bulkResultFields input:first-child{grid-column:1/-1}
 .bulkResultFields .autoRatingBadge{grid-column:1/-1;text-align:center}
 .bulkActions{display:grid;grid-template-columns:1fr}
 .bulkActions button{width:100%}
}
.autoResultBadge{display:flex;align-items:center;justify-content:center;min-width:112px;padding:10px 12px;border-radius:12px;background:#eef2f7;font-weight:800;font-size:12px}
.autoResultBadge.win{background:#e8f7ee;color:#168447}.autoResultBadge.draw{background:#fff5dc;color:#a56a00}.autoResultBadge.loss{background:#ffe9e9;color:#c62828}
.scoreInput{display:flex;flex-direction:column;gap:4px;font-size:10px;font-weight:700;color:#667085}.scoreInput input{width:90px;padding:10px;border:1px solid #d8e0ea;border-radius:10px;font-size:16px;font-weight:800;text-align:center}
@media(max-width:600px){.bulkResultFields{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.autoResultBadge,.autoRatingBadge{width:100%;box-sizing:border-box}.scoreInput input{width:100%;box-sizing:border-box}}
