@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --black:   #0A0A0A;
  --white:   #FFFFFF;
  --gold:    #F5C800;
  --gray-1:  #F5F5F5;
  --gray-2:  #EBEBEB;
  --gray-3:  #C0C0C0;
  --gray-4:  #888888;
  --gray-5:  #444444;
  --radius:  10px;
  --shadow:  0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #F8F8F8;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ────────────────────────────────────────────────
   HEADER
──────────────────────────────────────────────── */
.site-header {
  background: #000;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 2.5px solid var(--gold);
}
.site-header .container {
  display: flex;
  align-items: stretch;
  height: 72px;
  gap: 8px;
  background: #000;
}
.header-logo {
  display: flex;
  align-items: center;
  padding-right: 24px;
  border-right: 1px solid #222;
  flex-shrink: 0;
  background: #000;
}
.header-logo img {
  height: 68px;
  width: auto;
  display: block;
  background: #000;
  border-radius: 4px;
  padding: 4px 6px;
}
.header-nav {
  display: flex;
  align-items: stretch;
  flex: 1;
}
.header-nav a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: #777;
  text-decoration: none;
  letter-spacing: .15px;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2.5px;
  transition: color .15s;
  white-space: nowrap;
}
.header-nav a:hover  { color: #FFF; }
.header-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-left: 16px;
  border-left: 1px solid #1E1E1E;
}
.header-user .uname { font-size: 12px; color: #666; white-space: nowrap; }
.header-user .signout {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  border: 1px solid #2E2E2E;
  border-radius: 6px;
  padding: 5px 12px;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.header-user .signout:hover { color: #DDD; border-color: #555; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #2E2E2E;
  border-radius: 6px;
  color: #777;
  padding: 6px 10px;
  margin-left: auto;
  cursor: pointer;
}

/* Admin header */
.admin-header {
  background: #000;
  border-bottom: 2.5px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 999;
}
.admin-header .container {
  display: flex;
  align-items: stretch;
  height: 54px;
  gap: 8px;
}
.admin-header .header-logo img { height: 30px; filter: brightness(0) invert(1); }
.wc-admin-nav .nav-logo { height: 28px; width: auto; background: #000; border-radius: 3px; padding: 2px 4px; }
.wc-admin-nav { background: #f8f9fa; border-bottom: 2px solid var(--gold, #F5C800); }
.wc-admin-nav .nav-link { color: #000 !important; }
.wc-admin-nav .nav-link:hover,
.wc-admin-nav .nav-link.active { color: #000 !important; opacity: 0.75; }
.wc-admin-nav .btn-outline-light { color: #000 !important; border-color: #333 !important; }
.wc-admin-nav .btn-outline-light:hover { background: #000 !important; color: #fff !important; }
.wc-admin-nav .ms-2.text-warning { color: #c8a000 !important; }
.admin-header .header-logo { border-right-color: #222; }
.admin-header .header-nav a { font-size: 12px; padding: 0 12px; }
.admin-header .header-user { border-left-color: #222; }

/* ────────────────────────────────────────────────
   LOGIN
──────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.login-box {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 40px 80px rgba(0,0,0,.6);
}
.login-box img { width: 100%; max-width: 240px; display: block; margin: 0 auto 2.25rem; }
.login-box label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 6px; letter-spacing: .3px; text-transform: uppercase; }
.login-box input[type=text],
.login-box input[type=password] {
  width: 100%;
  border: 1.5px solid var(--gray-2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--black);
  outline: none;
  transition: border-color .15s;
  margin-bottom: 14px;
}
.login-box input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,200,0,.1); }
.btn-submit {
  width: 100%;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  margin-top: 6px;
  transition: background .15s;
  letter-spacing: .3px;
}
.btn-submit:hover { background: #222; }
.login-box .alert { background: #FFF0F0; border: 1px solid #FFCDD2; color: #C62828; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }

/* ────────────────────────────────────────────────
   COUNTDOWN STRIP
──────────────────────────────────────────────── */
.countdown-strip {
  background: #111;
  padding: 0;
  border-bottom: 1px solid #1A1A1A;
}
.countdown-strip .container {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.cd-label { font-size: 10px; font-weight: 700; color: #555; letter-spacing: .8px; text-transform: uppercase; }
.cd-match { font-size: 12px; font-weight: 600; color: #DDD; }
.cd-sep2  { color: #333; }
.cd-timer { display: flex; align-items: center; gap: 4px; }
.cd-unit  { display: flex; align-items: center; gap: 2px; }
.cd-n     { background: var(--gold); color: #000; font-size: 12px; font-weight: 800; border-radius: 4px; padding: 1px 7px; min-width: 28px; text-align: center; letter-spacing: -.3px; }
.cd-u     { font-size: 10px; color: #555; font-weight: 600; letter-spacing: .3px; }
.cd-dot   { color: #333; font-size: 14px; font-weight: 700; }

/* ────────────────────────────────────────────────
   PAGE WRAPPER
──────────────────────────────────────────────── */
.page { padding: 28px 0 60px; }

/* ────────────────────────────────────────────────
   PREDICT PAGE
──────────────────────────────────────────────── */
.predict-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Tabs */
.tabs {
  display: inline-flex;
  background: var(--gray-2);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.tab-btn {
  padding: 7px 20px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-4);
  cursor: pointer;
  transition: all .2s;
}
.tab-btn.on { background: var(--black); color: var(--white); }

/* Total points */
.total-pts {
  display: flex;
  align-items: baseline;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: 8px;
  padding: 7px 16px;
}
.total-pts .n   { font-size: 22px; font-weight: 900; color: var(--black); line-height: 1; }
.total-pts .lbl { font-size: 11px; font-weight: 600; color: var(--gray-4); text-transform: uppercase; letter-spacing: .5px; }

/* Collapse */
.collapse-all {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--gray-4);
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.collapse-all:hover { color: var(--black); }

/* Date group */
.date-group { margin-top: 28px; }
.date-group-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--black);
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
}
.date-group-hd .date-lbl { font-size: 12px; font-weight: 800; letter-spacing: .8px; }
.date-group-hd .date-meta { font-size: 11px; color: var(--gray-4); display: flex; align-items: center; gap: 4px; }

/* Match row */
.mrow {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 5px;
  display: grid;
  grid-template-columns: 44px 1fr auto 1fr auto;
  align-items: center;
  gap: 6px;
  transition: box-shadow .15s, border-color .15s;
}
.mrow:hover { box-shadow: var(--shadow); border-color: #D8D8D8; }
.mrow.fin   { border-left: 3px solid var(--black); padding-left: 12px; }
.mrow.lkd   { background: var(--gray-1); }

.mtime { font-size: 11px; font-weight: 600; color: var(--gray-3); }

.team-h { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.team-a { display: flex; align-items: center; gap: 6px; }
.tflag  { font-size: 18px !important; border-radius: 2px; flex-shrink: 0; vertical-align: middle; }
.tname  { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }

/* Score center */
.mctr { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.minputs { display: flex; align-items: center; gap: 4px; }
.sinp {
  width: 40px; height: 38px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  border: 1.5px solid var(--gray-2);
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
  transition: border-color .15s;
}
.sinp:focus { border-color: var(--gold); outline: none; }
.sdash { font-weight: 700; color: var(--gray-3); font-size: 14px; }

.res {
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: .5px;
}
.slocked {
  width: 40px; height: 38px;
  border: 1.5px dashed var(--gray-2);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--gray-4);
  background: var(--gray-1);
}

.pmeta { font-size: 11px; color: var(--gray-4); }

/* Points badges */
.pbadge {
  display: inline-flex; align-items: center;
  border-radius: 20px; padding: 1px 8px;
  font-size: 11px; font-weight: 700;
}
.pb3 { background: var(--black); color: var(--gold); }
.pb2 { background: var(--gray-5); color: var(--white); }
.pb1 { background: var(--gray-3); color: var(--white); }
.pb0 { background: var(--gray-2); color: var(--gray-4); }

/* Save btn */
.savecol { display: flex; justify-content: center; align-items: center; }
.savebtn {
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.savebtn:hover { background: var(--gray-5); }

/* ────────────────────────────────────────────────
   LEADERBOARD
──────────────────────────────────────────────── */
.lb-card { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); overflow: hidden; }
.lb-head { background: var(--black); color: var(--white); }
.lb-head th { padding: 10px 16px; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; border: none !important; color: #888; }
.lb-body td { padding: 12px 16px; border-color: var(--gray-2) !important; vertical-align: middle; }
.lb-body tr.me td { background: #FAFAFA !important; border-left: 3px solid var(--gold) !important; }
.lb-body tr.me td:first-child { padding-left: 13px; }
.medal-g { color: var(--gold); }
.medal-s { color: #B0B0B0; }
.medal-b { color: #C87941; }

/* ────────────────────────────────────────────────
   BONUS PAGE
──────────────────────────────────────────────── */
.bq-card {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 8px;
}
.bq-card input[type=text] {
  border: 1.5px solid var(--gray-2);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  width: 100%;
  max-width: 340px;
  outline: none;
  transition: border-color .15s;
}
.bq-card input[type=text]:focus { border-color: var(--gold); }
.bq-card input:disabled { background: var(--gray-1); color: var(--gray-4); }
.deadline-bar {
  background: var(--gray-1);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray-5);
  margin-bottom: 20px;
}

/* ────────────────────────────────────────────────
   HOW TO PLAY
──────────────────────────────────────────────── */
.pts-system { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); overflow: hidden; }
.pts-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--gray-2); }
.pts-item:last-child { border-bottom: none; }
.pts-num { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; flex-shrink: 0; }
.pts-num.n3 { background: var(--black); color: var(--gold); }
.pts-num.n2 { background: var(--gray-5); color: var(--white); }
.pts-num.n1 { background: var(--gray-3); color: var(--white); }
.pts-label { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--gray-4); margin-bottom: 2px; }
.pts-desc  { font-size: 14px; color: var(--black); }
.pts-desc strong { font-weight: 700; }

.ex-wrap { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 8px; }
.ex-tag  { font-size: 10px; font-weight: 800; letter-spacing: .8px; color: var(--gray-4); margin-bottom: 10px; }
.ex-match { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.ex-sc    { background: var(--gray-1); border-radius: 6px; padding: 4px 12px; font-weight: 800; font-size: 16px; }
.ex-pill  { border-radius: 6px; padding: 5px 14px; font-weight: 800; font-size: 16px; color: var(--white); }
.ex-pick  { background: var(--gray-1); border-radius: 6px; padding: 3px 10px; font-size: 12px; font-weight: 600; color: var(--gray-5); }
.ex-info  { font-size: 13px; color: var(--gray-4); margin-top: 8px; }

/* ────────────────────────────────────────────────
   PRIZES
──────────────────────────────────────────────── */
.prizes-hero {
  background: var(--black);
  border-radius: 14px;
  padding: 3.5rem 2rem;
  text-align: center;
  border: 1.5px solid #222;
}
.prizes-hero h2 { color: var(--gold); font-weight: 900; font-size: 1.75rem; margin-bottom: .5rem; }
.prizes-hero p  { color: #888; font-size: 15px; line-height: 1.7; margin: 0; }

/* ────────────────────────────────────────────────
   SHARED COMPONENTS
──────────────────────────────────────────────── */
.page-title { font-size: 22px; font-weight: 800; color: var(--black); margin-bottom: 4px; }
.gold-line  { width: 36px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 20px; }
.card-base  { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); }
.section-label { font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--gray-4); margin-bottom: 12px; }

.btn-primary, .btn-black { background: var(--black) !important; border-color: var(--black) !important; color: var(--white) !important; font-weight: 700; }
.btn-primary:hover, .btn-black:hover { background: #222 !important; }
.btn-gold, .btn-warning, .btn-orange { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--black) !important; font-weight: 700; }
.btn-gold:hover, .btn-warning:hover, .btn-orange:hover { background: #E0B800 !important; }

footer { background: var(--white); border-top: 1px solid var(--gray-2); padding: 20px 0; text-align: center; color: var(--gray-4); font-size: 12px; margin-top: 40px; }

/* ────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-nav  { display: none; }
  .header-user { display: none; }
  .nav-toggle  { display: block; }
  .header-nav.open { display: flex; flex-direction: column; position: fixed; top: 62px; left: 0; right: 0; background: #000; padding: 8px 0 12px; border-bottom: 1px solid #222; z-index: 998; }
  .header-nav.open a { padding: 10px 20px; border-bottom: none; border-bottom: none; }

  .mrow { grid-template-columns: 36px 1fr auto 1fr; gap: 4px; padding: 9px 10px; }
  .savecol { display: flex; }
  .tname { font-size: 11px; max-width: 72px; }
  .sinp  { width: 36px; height: 36px; font-size: 14px; }
  .countdown-strip .container { gap: 8px; }
  .cd-match { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
