:root{--brand:#00add8;--primary:#00add8;color-scheme:dark}body{margin:0;background:linear-gradient(110deg,rgba(8,12,20,.94),rgba(8,12,20,.84)),url('https://i.postimg.cc/gcgfFGW2/main-bg5.jpg') center/cover fixed!important;color:#f5f7fa!important;font-family:Arial,sans-serif!important;min-height:100vh}body>.container{max-width:1240px;margin:0 auto;padding:28px!important;background:transparent!important;border:0!important;box-shadow:none!important}h2,h3{color:#ff315b!important;text-align:center;text-transform:uppercase;letter-spacing:1px}h2:after{content:'';display:block;width:94px;height:4px;margin:16px auto;background:linear-gradient(90deg,#00add8 32%,transparent 32%,transparent 35%,#ff315b 35%,#ff315b 65%,transparent 65%,transparent 68%,#f2c900 68%)}label{color:#91f52c!important;font-weight:700}input:not([type=checkbox]):not([type=radio]),select,textarea{background:#111c29!important;color:white!important;border:1px solid #344354!important;border-radius:2px!important;min-height:44px;padding:10px!important}button{background:#00add8!important;color:white!important;border:0!important;border-radius:0!important;text-transform:uppercase;font-weight:700!important;box-shadow:none!important}button.delete{background:#d82b4c!important}button:hover{filter:brightness(1.12)}a{color:#00c4f1}th{background:#102437!important;color:#fff!important}td{background:#111923!important;color:#fff!important;border-color:#2a3544!important}#loginBox,#editPopup>div,.thank-box{background:#101923!important;color:white!important;border:1px solid #26394c!important;padding:24px!important}#loginBox{max-width:420px;margin:45px auto}#panel>p:first-child{display:flex;flex-wrap:wrap;gap:16px;padding:16px 0;border-bottom:1px solid #26394c}#panel>p:first-child a{color:white;text-transform:uppercase;text-decoration:none;font-weight:700}#panel div[style*="background:#fff"],#panel div[style*="background:#ffffff"]{background:#101923!important;color:white!important;box-shadow:none!important;border:1px solid #26394c!important}#popup,.preloader,.loader{display:none!important;animation:none!important}.match{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) 90px;gap:8px!important;align-items:end!important}.overs-field{font-size:11px}.match-overs{width:100%!important}.logo{object-fit:contain} @media(max-width:600px){body>.container{padding:14px!important}.match{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.overs-field{grid-column:1/-1;max-width:100px}#loginBox{padding:16px!important}}

/* Premium responsive controls */
*,*::before,*::after{box-sizing:border-box}body>.container{width:min(100%,1240px)}#loginBox,#editPopup>div,.thank-box{border-radius:16px!important;box-shadow:0 16px 50px #0005!important}input:not([type=checkbox]):not([type=radio]),select,textarea{max-width:100%;border-radius:8px!important}button{border-radius:8px!important;padding:12px 18px!important;min-height:42px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #f2c900;outline-offset:3px}table{max-width:100%;border-collapse:collapse}th,td{padding:12px!important}#panel>p:first-child a{padding:10px 14px;border:1px solid #344354;border-radius:8px;background:#111c29}h2{font-size:clamp(22px,4vw,34px)}@media(max-width:700px){table{display:block;overflow-x:auto;white-space:nowrap}#panel>p:first-child{gap:8px}#panel>p:first-child a{font-size:12px;padding:8px}input,select,textarea{font-size:16px!important}.match{gap:6px!important}button{white-space:normal}body{overflow-wrap:anywhere}}

.tournament-admin-card{padding:18px;margin:12px 0;border:1px solid #344354;border-radius:14px;background:#111c29}.tournament-admin-card button{margin:4px}.tournament-admin-card h3{text-align:left}.usergrid .usercard{min-width:0}

.mh-admin-header{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1440px;margin:auto;padding:22px 6%;background:transparent;color:white}.mh-admin-header img{width:64px;height:64px;object-fit:contain}.mh-admin-header nav{display:flex;flex-wrap:wrap;gap:22px;align-items:center}.mh-admin-header a,.mh-back a{color:white!important;text-decoration:none;font-weight:800;text-transform:uppercase;font-size:14px}.mh-admin-header a:hover,.mh-back a:hover{color:#ff315b!important}.mh-back{max-width:1240px;margin:auto;padding:8px 24px}.mh-back a{display:inline-block;padding:10px 14px;border:1px solid #344354;border-radius:6px}.mh-tournament-links{display:grid;gap:12px;margin:20px auto;max-width:850px}.mh-tournament-links a{display:block;padding:18px;background:#111c29;border:1px solid #344354;border-radius:12px;color:white;text-decoration:none}.mh-tournament-links a:hover{border-color:#00add8}@media(max-width:650px){.mh-admin-header{padding:14px;gap:12px;align-items:flex-start}.mh-admin-header img{width:48px;height:48px}.mh-admin-header nav{gap:12px}.mh-admin-header a{font-size:12px}.mh-back{padding:8px 14px}}[hidden]{display:none!important}.mh-admin-header nav a{white-space:nowrap}
#panel>p:first-child{display:none!important}.usernav{display:none!important}

.mh-dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:18px;margin:28px 0}.mh-dashboard-grid a{display:flex;flex-direction:column;gap:10px;background:#111c29;border:1px solid #344354;border-radius:12px;padding:26px;color:white;text-decoration:none}.mh-dashboard-grid a:hover{border-color:#00add8}.mh-dashboard-grid strong{font-size:20px}.mh-dashboard-grid span{color:#b9c7d6;font-size:14px}.mh-account-actions{display:flex;justify-content:flex-end;margin:12px 0}.mh-section-dashboard #panel{max-width:1100px;margin:auto}.mh-section-dashboard #panel>h2{margin-top:35px}.mh-section-tournaments #tournamentBox>h2,.mh-section-schedules #scheduleBox>h2,.mh-section-teams #teamsBox>h2{display:none}.mh-section-dashboard #panel>p:first-child{display:none!important}#slotPopup>div{background:#111c29!important}body>.container{min-width:0}.table-wrap{max-width:100%;overflow-x:auto}/* Flat management workspace */
body:has(>#mhHeader){background:linear-gradient(#0b111be8,#0b111bf5),url('https://i.postimg.cc/gcgfFGW2/main-bg5.jpg') center/cover fixed!important}body>.container{width:min(100%,1440px);max-width:1440px!important;padding:24px clamp(14px,4vw,56px)!important}body>.container h2{margin:12px 0 24px;font-size:clamp(22px,3vw,30px);letter-spacing:.6px}#panel,#tournamentBox,#scheduleBox,#teamsBox,.usercard,.tournament-admin-card{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important}#panel #tournamentBox,#panel #scheduleBox,#panel #teamsBox{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}#panel .mh-dashboard-grid{display:block;margin:0}#panel .mh-dashboard-grid a,.mh-tournament-links a{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;padding:20px 4px;border:0;border-bottom:1px solid #344354;border-radius:0;background:transparent}#panel .mh-dashboard-grid a:hover,.mh-tournament-links a:hover{background:#142131}#panel .mh-dashboard-grid strong{font-size:17px}.usergrid .usercard{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important}.usergrid .usercard h3{text-align:left}table,#tournamentBox table{border-radius:0!important;border-collapse:collapse!important;background:transparent!important}th,td{border-bottom:1px solid #283746!important;padding:14px 10px!important}th{background:#142335!important;color:#b9d0e3!important;font-size:12px!important;text-transform:uppercase}td{background:transparent!important}tr:hover td{background:#142131!important}#tournamentBox .mh-tournament-table th,#tournamentBox .mh-tournament-table td{width:auto!important;white-space:normal!important;text-align:left!important}#tournamentBox .mh-tournament-table{min-width:850px}#tournamentBox .mh-actions{white-space:nowrap!important}.mh-icon-action{display:inline-flex!important;align-items:center;justify-content:center;width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;margin:2px!important;border:1px solid #344354!important;border-radius:5px!important;background:#142335!important;color:#6dddf6!important;vertical-align:middle;text-decoration:none!important;cursor:pointer}.mh-icon-action[data-action="delete"]{color:#ff728a!important}.mh-icon-action:hover{background:#24394e!important}.mh-icon-action svg{width:18px;height:18px;pointer-events:none}#loginBox{box-shadow:none!important;border:0!important;background:transparent!important}body>.container hr{border:0;border-top:1px solid #344354} @media(max-width:700px){#panel .mh-dashboard-grid a{align-items:flex-start;flex-direction:column}table{display:table!important}.table-wrap{overflow-x:auto}body>.container{padding:16px!important}.usergrid{gap:28px!important}}

/* Explicit dark zebra rows: override legacy white row rules. */
body .container table tbody tr, body .container table tbody tr:nth-child(odd), body table.mh-tournament-table tbody tr:nth-child(odd){background:#101b28!important;color:#f4f7fb!important}
body .container table tbody tr:nth-child(even), body table.mh-tournament-table tbody tr:nth-child(even){background:#172535!important;color:#f4f7fb!important}
body .container table tbody tr td, body table.mh-tournament-table tbody tr td{background:transparent!important;color:#f4f7fb!important}
body .container table tbody tr:hover, body table.mh-tournament-table tbody tr:hover{background:#22384c!important}
body .container table tbody tr:hover td{background:transparent!important}

#teamsBox #table table{table-layout:auto!important;width:100%;min-width:760px}#teamsBox #table th,#teamsBox #table td{white-space:nowrap!important;width:auto!important;padding:10px 14px!important;vertical-align:middle!important}#teamsBox .team-actions{display:flex!important;flex-wrap:nowrap!important;gap:6px;justify-content:center}#teamsBox .team-actions button{flex:0 0 auto;margin:0!important}#teamsBox .table-wrap{overflow-x:auto!important} .team-group{margin:24px 0}.team-group-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.team-group-head h3{margin-right:auto;color:#00c9f2!important}.team-group-head button{width:auto!important}
