:root {
  --red:#cc1b1b; --red-dark:#9e1010; --red-mid:#b81a1a;
  --yellow:#f5c800; --yellow-dark:#c9a000; --yellow-pale:#fff8d0;
  --blue:#1a3a8f; --blue-dark:#0f2260; --blue-mid:#1e45a8; --blue-light:#2d5cc8;
  --white:#ffffff; --cream:#fdf9f0;
  --gray-100:#f3f1eb; --gray-200:#e2dfd8; --gray-500:#8a8578; --gray-700:#4a4640;
  --green-win:#1e7a45; --text:#1a1714;
  --radius:4px;
  --shadow:0 4px 24px rgba(26,58,143,.10);
  --shadow-lg:0 12px 48px rgba(26,58,143,.18);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'DM Sans',sans-serif;background:var(--cream);color:var(--text);overflow-x:hidden}

/* TOP BAR */
.top-bar{display:none}
.top-bar-inner{display:none}
.top-bar-links{display:none}
.top-bar-links a{display:none}
.top-bar-links a:hover{display:none}

/* HEADER */
.site-header{background:var(--blue-dark);position:sticky;top:0;z-index:1000;box-shadow:0 2px 20px rgba(0,0,0,.4);border-bottom:3px solid var(--red)}
.header-inner{max-width:1200px;margin:0 auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;height:76px;gap:24px}
.logo-area{display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0}
.logo-img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 2px 6px rgba(0,0,0,.4))}
.logo-text-block{display:flex;flex-direction:column;line-height:1.1}
.logo-name{font-family:'Playfair Display',serif;font-weight:900;font-size:19px;color:var(--yellow);letter-spacing:.3px}
.logo-sub{font-size:10px;font-family:'DM Mono',monospace;letter-spacing:2px;color:rgba(255,255,255,.5);text-transform:uppercase;margin-top:2px}

.footer-email {
  cursor: pointer;
  color: inherit;
  font-weight: 500;
  position: relative;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
  transform-origin: left center;
}

.footer-email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: rgba(245, 200, 0, 0.35);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease, background 0.25s ease;
}

.footer-email:hover {
  color: var(--yellow);
  transform: scale(1.3);
}

.footer-email:hover::after {
  transform: scaleX(1);
  background: var(--yellow);
}

.page-email {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 700;
  position: relative;
  transition: color 0.2s ease;
  display: inline-block;
}

.page-email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background: rgba(245, 200, 0, 0.35);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease, background 0.25s ease;
}

.page-email:hover {
  color: var(--red);
}

.page-email:hover::after {
  transform: scaleX(1);
  background: var(--yellow);
}

	.page-embed-wrap{
  width:100%;
  overflow:hidden;
  border-radius:10px;
}

.page-embed-wrap iframe{
  width:100%;
  max-width:100%;
  border:none;
  min-height:480px;
  display:block;
}

.btn-login-icon{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  font-size:16px;
  cursor:pointer;
  transition:background .2s,border-color .2s,color .2s,transform .15s;
  padding:0;
}

.btn-login-icon:hover{
  background:rgba(245,200,0,.08);
  border-color:rgba(245,200,0,.35);
  color:var(--yellow);
  transform:translateY(-1px);
}
	
/* NAV */
nav{display:flex;align-items:center;gap:1px}

.nav-item{
  position:relative;
}

.nav-item::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:8px;
}

.nav-link{
  display:block;
  padding:10px 13px;
  color:rgba(255,255,255,.85);
  font-size:13px;
  font-weight:500;
  text-decoration:none;
  letter-spacing:.2px;
  transition:color .2s;
  white-space:nowrap;
  border-radius:var(--radius)
}

.nav-link:hover,.nav-link.active{color:var(--yellow)}
.nav-link.has-dropdown::after{content:'▾';margin-left:4px;font-size:10px;opacity:.6}

.dropdown{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  background:var(--blue-dark);
  border:1px solid rgba(245,200,0,.25);
  border-top:3px solid var(--red);
  border-radius:var(--radius);
  min-width:220px;
  box-shadow:var(--shadow-lg);
  z-index:200;
  overflow:hidden
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown{
  display:block
}

.dropdown a{
  display:block;
  padding:10px 16px;
  color:rgba(255,255,255,.8);
  font-size:13px;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.06);
  transition:background .15s,color .15s
}

.dropdown a:last-child{border-bottom:none}
.dropdown a:hover{background:rgba(245,200,0,.1);color:var(--yellow)}

.header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.btn-publish{
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius);
  padding:8px 12px;
  font-family:'DM Sans',sans-serif;
  font-weight:600;
  font-size:12px;
  cursor:pointer;
  letter-spacing:.2px;
  transition:background .2s,border-color .2s,color .2s,transform .15s;
  display:flex;
  align-items:center;
  gap:6px;
}
.btn-publish:hover{
  background:rgba(245,200,0,.08);
  border-color:rgba(245,200,0,.35);
  color:var(--yellow);
  transform:translateY(-1px);
}
.user-pill{display:none;align-items:center;gap:8px;background:rgba(245,200,0,.12);border:1px solid rgba(245,200,0,.3);border-radius:20px;padding:5px 14px 5px 10px;color:var(--yellow);font-size:12px;font-family:'DM Mono',monospace;letter-spacing:.5px}
.user-pill.visible{display:flex}
.user-pill-avatar{width:26px;height:26px;background:var(--red);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--white);flex-shrink:0}
.btn-logout{background:none;border:1px solid rgba(255,255,255,.2);color:rgba(255,255,255,.55);border-radius:var(--radius);padding:5px 10px;font-size:11px;font-family:'DM Mono',monospace;cursor:pointer;letter-spacing:.5px;transition:border-color .15s,color .15s}
.btn-logout:hover{border-color:var(--red);color:var(--red)}

/* HERO */
.hero{position:relative;height:460px;overflow:hidden;background:linear-gradient(140deg,var(--blue-dark) 0%,var(--blue) 45%,var(--blue-mid) 100%)}
.hero-stripe-top{position:absolute;top:0;left:0;right:0;height:6px;background:linear-gradient(90deg,var(--yellow) 0%,var(--yellow-dark) 50%,var(--yellow) 100%);z-index:5}
.hero-stripe-bottom{position:absolute;bottom:0;left:0;right:0;height:5px;background:var(--red);z-index:5}
.hero-ribbon{position:absolute;top:0;right:-60px;width:340px;height:100%;background:linear-gradient(135deg,transparent 40%,rgba(204,27,27,.18) 40%,rgba(204,27,27,.22) 60%,transparent 60%);pointer-events:none}
.hero-circle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:600px;height:600px;border:1px solid rgba(245,200,0,.06);border-radius:50%;pointer-events:none}
.hero-circle-2{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:380px;height:380px;border:1px solid rgba(245,200,0,.05);border-radius:50%}
.hero-content{position:relative;z-index:10;max-width:1200px;margin:0 auto;padding:0 24px;height:100%;display:flex;align-items:center;gap:48px}
.hero-logo-bg{flex-shrink:0}
.hero-logo-img{width:200px;height:200px;object-fit:contain;filter:drop-shadow(0 8px 32px rgba(0,0,0,.45));opacity:.92}
.hero-text{
  width:100%;
  max-width:100%;
}

.hero-main-grid{
  display:grid;
  grid-template-columns:70% 30%;
  gap:28px;
  align-items:center;
  width:100%;
}

.hero-left-col{
  min-width:0;
}

.hero-badge{display:none;/* removed by request */align-items:center;gap:8px;background:rgba(245,200,0,.12);border:1px solid rgba(245,200,0,.4);color:var(--yellow);font-family:'DM Mono',monospace;font-size:11px;letter-spacing:2px;padding:5px 12px;border-radius:2px;text-transform:uppercase;margin-bottom:18px}

.hero-title{
  font-family:'Playfair Display',serif;
  font-weight:900;
  font-size:clamp(32px,4.5vw,58px);
  color:var(--white);
  line-height:1.05;
  margin-bottom:14px;
  letter-spacing:-1px;
}

.hero-title span{color:var(--yellow)}

.hero-subtitle{
  font-size:15px;
  color:rgba(255,255,255,.65);
  line-height:1.65;
  margin-bottom:26px;
  font-weight:300;
  max-width:700px;
}

.hero-cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.hero-sponsors-wrap{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:stretch;
}

.hero-sponsors-title{
  font-family:'Playfair Display',serif;
  font-size:18px;
  font-weight:700;
  letter-spacing:.2px;
  text-transform:none;
  color:var(--yellow);
  margin-bottom:8px;
  text-align:left;
  line-height:1.2;
}

.hero-sponsors-subtitle{
  font-size:12px;
  line-height:1.6;
  color:rgba(255,255,255,.72);
  margin-bottom:14px;
  max-width:340px;
  text-align:left;
}

.hero-sponsors{
  display:flex;
  gap:14px;
  align-items:stretch;
  justify-content:flex-start;
  width:100%;
  flex-wrap:wrap;
}
.hero-sponsors .sponsor-slot{width:170px;height:86px;background:rgba(255,255,255,.10);border:1px solid rgba(245,200,0,.28);color:rgba(255,255,255,.78);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.18);padding:8px}
.hero-sponsors .sponsor-slot img{width:100%;height:100%;object-fit:contain;padding:4px}
.hero-sponsors .sponsor-slot .sponsor-name{font-size:12px;font-family:'DM Mono',monospace;color:var(--yellow);text-align:center;line-height:1.3}
.mobile-menu-btn{
  display:none;
  background:transparent;
  border:1px solid rgba(255,255,255,.22);
  color:var(--white);
  border-radius:4px;
  padding:8px 12px;
  font-size:18px;
  cursor:pointer;
  transition:background .2s,border-color .2s,color .2s;
}
.mobile-menu-btn:hover{
  background:rgba(255,255,255,.06);
  border-color:rgba(245,200,0,.45);
  color:var(--yellow);
}

.mobile-nav-publish{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid rgba(245,200,0,.18);
}

.mobile-nav-publish .mobile-nav-link{
  color:var(--yellow);
  font-weight:600;
}

.mobile-nav{
  display:none;
  background:var(--blue-dark);
  border-bottom:3px solid var(--red);
  padding:8px 18px 14px;
}
.mobile-nav.open{display:block}

.mobile-nav-item{
  border-bottom:1px solid rgba(255,255,255,.08);
}
.mobile-nav-item:last-child{
  border-bottom:none;
}

.mobile-nav-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.mobile-nav-link,
.mobile-submenu a{
  color:rgba(255,255,255,.92);
  text-decoration:none;
}

.mobile-nav-link{
  display:block;
  flex:1;
  padding:13px 0;
  font-size:14px;
  font-weight:500;
}

.mobile-nav-toggle{
  flex-shrink:0;
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.85);
  border-radius:4px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:all .2s;
}
.mobile-nav-toggle:hover{
  color:var(--yellow);
  border-color:rgba(245,200,0,.35);
  background:rgba(245,200,0,.08);
}
.mobile-nav-item.open .mobile-nav-toggle{
  transform:rotate(180deg);
  color:var(--yellow);
}

.mobile-submenu{
  display:none;
  padding:0 0 10px 12px;
}
.mobile-nav-item.open .mobile-submenu,
.mobile-nav-item:hover .mobile-submenu,
.mobile-nav-item:focus-within .mobile-submenu{
  display:block;
}

.mobile-submenu a{
  display:block;
  padding:9px 0;
  font-size:13px;
  color:rgba(255,255,255,.78);
  border-top:1px solid rgba(255,255,255,.05);
}
.mobile-submenu a:hover{
  color:var(--yellow);
}
.btn-primary{background:var(--yellow);color:var(--blue-dark);padding:12px 24px;border-radius:var(--radius);font-weight:700;font-size:14px;text-decoration:none;transition:background .2s}
.btn-primary:hover{background:#ffe033}
.btn-outline{border:2px solid rgba(255,255,255,.35);color:var(--white);padding:11px 24px;border-radius:var(--radius);font-weight:500;font-size:14px;text-decoration:none;transition:border-color .2s,color .2s}
.btn-outline:hover{border-color:var(--yellow);color:var(--yellow)}

.btn-donate{
  background:var(--red);
  color:var(--white);
  border:2px solid var(--yellow);
  padding:11px 24px;
  border-radius:var(--radius);
  font-weight:800;
  font-size:14px;
  text-decoration:none;
  box-shadow:0 0 0 3px rgba(245,200,0,.18), 0 8px 22px rgba(0,0,0,.25);
  transition:background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}

.btn-donate:hover{
  background:var(--yellow);
  color:var(--blue-dark);
  border-color:var(--white);
  transform:translateY(-2px);
  box-shadow:0 0 0 4px rgba(245,200,0,.28), 0 12px 28px rgba(0,0,0,.32);
}

.btn-plain{
  background:var(--red);
  color:var(--white);
  padding:12px 24px;
  border-radius:var(--radius);
  font-weight:700;
  font-size:14px;
  text-decoration:none;
  transition:background .2s, transform .15s;
}

.btn-plain:hover{
  background:var(--red-dark);
  color:var(--white);
  transform:translateY(-1px);
}

/* STATS BAR */
.stats-bar{background:var(--red-dark);border-bottom:3px solid var(--yellow)}
.stats-bar-inner{max-width:1200px;margin:0 auto;padding:0 24px;display:grid;grid-template-columns:repeat(4,1fr)}
.stat-item{padding:16px 20px;text-align:center;border-right:1px solid rgba(255,255,255,.12)}
.stat-item:last-child{border-right:none}
.stat-number{font-family:'Playfair Display',serif;font-size:26px;font-weight:700;color:var(--yellow);display:block;line-height:1;margin-bottom:4px}
.stat-label{font-size:10px;font-family:'DM Mono',monospace;letter-spacing:1.5px;color:rgba(255,255,255,.55);text-transform:uppercase}

/* MAIN */
.main-container{max-width:1200px;margin:0 auto;padding:48px 24px;display:grid;grid-template-columns:1fr 320px;gap:40px;align-items:start}

/* SECTION */
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;padding-bottom:12px;border-bottom:3px solid var(--blue-dark)}
.section-title{font-family:'Playfair Display',serif;font-size:22px;font-weight:700;color:var(--blue-dark);display:flex;align-items:center;gap:10px}
.section-title::before{content:'';display:block;width:5px;height:26px;background:var(--red);border-radius:2px;flex-shrink:0}
.section-more{font-size:12px;font-family:'DM Mono',monospace;letter-spacing:1px;color:var(--red);text-decoration:none;text-transform:uppercase;font-weight:500}
.section-more:hover{color:var(--blue-dark)}

/* NEWS */
.news-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.news-card{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s;border:1px solid var(--gray-200);cursor:pointer}
.news-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.news-card.featured{grid-column:1/-1;display:grid;grid-template-columns:1.2fr 1fr}
.news-card-img{width:100%;height:175px;background:var(--gray-100);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;overflow:hidden}
.news-card.featured .news-card-img{height:100%;min-height:210px}
.news-card-img img{width:100%;height:100%;object-fit:cover}
.news-card-body{padding:18px;display:flex;flex-direction:column}
.news-tag{font-family:'DM Mono',monospace;font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--red);font-weight:500;margin-bottom:8px}
.news-card-title{font-family:'Playfair Display',serif;font-size:16px;font-weight:700;color:var(--blue-dark);line-height:1.3;margin-bottom:10px}
.news-card.featured .news-card-title{font-size:21px}
.news-card-excerpt{font-size:13.5px;color:var(--gray-700);line-height:1.6;flex:1;margin-bottom:12px}
.news-meta{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--gray-500);font-family:'DM Mono',monospace;border-top:1px solid var(--gray-100);padding-top:10px;margin-top:auto}
.news-attachments{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.attach-badge{font-size:10px;font-family:'DM Mono',monospace;background:var(--gray-100);border:1px solid var(--gray-200);color:var(--gray-700);padding:2px 8px;border-radius:2px;display:inline-flex;align-items:center;gap:4px;cursor:pointer;text-decoration:none;transition:background .15s}
.attach-badge:hover{background:var(--yellow-pale)}
.news-loading{text-align:center;padding:40px;color:var(--gray-500);font-family:'DM Mono',monospace;font-size:12px;grid-column:1/-1}

	.news-card-title a {
  color: inherit;
  text-decoration: none;
}

.news-card-title a:hover {
  text-decoration: underline;
}

/* SIDEBAR */
.sidebar{display:flex;flex-direction:column;gap:28px}
.sidebar-card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--gray-200);overflow:hidden}
.sidebar-card-header{background:var(--blue-dark);color:var(--yellow);font-family:'Playfair Display',serif;font-size:15px;font-weight:700;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid var(--red)}
.sidebar-card-header-actions{display:flex;gap:6px}
.sidebar-card-body{padding:14px 16px}
.fixture-row{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--gray-100);font-size:13px}
.fixture-row:last-child{border-bottom:none}
.fixture-date{font-family:'DM Mono',monospace;font-size:10px;color:var(--gray-500);min-width:56px;line-height:1.4}
.fixture-teams{flex:1;padding:0 10px;font-weight:500;color:var(--blue-dark);font-size:12px;line-height:1.4}
.fixture-comp{font-size:10px;font-family:'DM Mono',monospace;background:rgba(26,58,143,.08);padding:2px 6px;border-radius:2px;color:var(--blue);white-space:nowrap}
.result-row{padding:9px 0;border-bottom:1px solid var(--gray-100);font-size:12.5px}
.result-row:last-child{border-bottom:none}
.result-teams{font-weight:600;color:var(--blue-dark);margin-bottom:3px}
.result-score{font-family:'DM Mono',monospace;font-size:11px;color:var(--gray-700)}
.result-outcome{font-size:10px;font-weight:700;padding:1px 6px;border-radius:2px;display:inline-block;margin-top:3px}
.win{background:rgba(30,122,69,.12);color:var(--green-win)}
.loss{background:rgba(204,27,27,.1);color:var(--red)}
.draw{background:rgba(138,133,120,.1);color:var(--gray-700)}
.quick-link{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--gray-100);text-decoration:none;color:var(--blue-dark);font-size:13px;font-weight:500;transition:color .15s}
.quick-link:last-child{border-bottom:none}
.quick-link:hover{color:var(--red)}
.quick-link-arrow{color:var(--red);font-size:16px}
.sponsor-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sponsor-slot{background:var(--gray-100);border:1px dashed var(--gray-200);height:58px;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;font-size:10px;font-family:'DM Mono',monospace;color:var(--gray-500);letter-spacing:1px;overflow:hidden;cursor:pointer;transition:border-color .2s}
.sponsor-slot:hover{border-color:var(--blue)}
.sponsor-slot img{width:100%;height:100%;object-fit:contain;padding:6px}
.sidebar-empty{text-align:center;padding:20px;color:var(--gray-500);font-size:12px;font-family:'DM Mono',monospace}

/* SQUAD */
.squad-section{margin-top:48px}
.squad-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:16px;margin-top:24px}
.player-card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--gray-200);padding:16px 12px;text-align:center;transition:transform .2s}
.player-card:hover{transform:translateY(-2px)}

.player-card.clickable{cursor:pointer}
.player-card.clickable:hover{transform:translateY(-2px);border-color:var(--blue)}

.player-profile-wrap{text-align:center}
.player-profile-avatar{width:110px;height:110px;border-radius:50%;overflow:hidden;margin:0 auto 16px;background:linear-gradient(135deg,var(--blue-dark),var(--blue));display:flex;align-items:center;justify-content:center;font-family:'Playfair Display',serif;font-size:34px;font-weight:700;color:var(--yellow)}
.player-profile-avatar img{width:100%;height:100%;object-fit:cover}
.player-profile-name{font-family:'Playfair Display',serif;font-size:28px;color:var(--blue-dark);margin-bottom:8px}
.player-profile-meta{font-family:'DM Mono',monospace;font-size:12px;color:var(--gray-500);letter-spacing:1px;text-transform:uppercase;margin-bottom:14px}
.player-profile-bio{font-size:14px;line-height:1.8;color:var(--gray-700);max-width:560px;margin:0 auto}

.player-avatar{width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,var(--blue-dark),var(--blue));display:flex;align-items:center;justify-content:center;margin:0 auto 10px;font-family:'Playfair Display',serif;font-size:20px;font-weight:700;color:var(--yellow);overflow:hidden}
.player-avatar img{width:100%;height:100%;object-fit:cover}
.player-name{font-weight:600;font-size:13px;color:var(--blue-dark);margin-bottom:3px}
.player-role{font-size:10px;font-family:'DM Mono',monospace;color:var(--gray-500);letter-spacing:1px;text-transform:uppercase}
.player-team{font-size:10px;font-family:'DM Mono',monospace;background:rgba(26,58,143,.08);padding:2px 6px;border-radius:2px;color:var(--blue);display:inline-block;margin-top:4px}

	#squadGrid.homepage-team-list{
  display:block;
  margin-top:24px;
}

.homepage-team-block{
  margin-bottom:24px;
}

.homepage-team-title{
  font-family:'Playfair Display',serif;
  font-size:20px;
  color:var(--blue-dark);
  margin-bottom:12px;
}

.homepage-team-row{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding-bottom:10px;
  scroll-behavior:smooth;
  width:calc((160px * 5) + (16px * 4));
  max-width:100%;
}

.homepage-team-row .player-card{
  min-width:160px;
  max-width:160px;
  flex:0 0 160px;
}

@media (max-width: 900px){
  .homepage-team-row{
    width:100%;
  }
}

/* ABOUT STRIP */
.about-strip{background:linear-gradient(135deg,var(--blue-dark) 0%,var(--blue) 100%);padding:56px 0;margin-top:48px;position:relative;overflow:hidden;border-top:4px solid var(--red);border-bottom:4px solid var(--yellow)}
.about-strip-inner{max-width:1200px;margin:0 auto;padding:0 24px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:40px}
.about-block{text-align:center}
.about-icon{width:56px;height:56px;background:rgba(245,200,0,.12);border:2px solid rgba(245,200,0,.35);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;font-size:22px}
.about-block h3{font-family:'Playfair Display',serif;font-size:18px;color:var(--yellow);margin-bottom:10px}
.about-block p{font-size:13.5px;color:rgba(255,255,255,.6);line-height:1.7}

/* FOOTER */
footer{background:var(--blue-dark);color:rgba(255,255,255,.6);padding:52px 0 0;border-top:4px solid var(--red)}
.footer-inner{max-width:1200px;margin:0 auto;padding:0 24px 40px;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px}
.footer-brand p{font-size:13px;line-height:1.7;margin-top:12px;color:rgba(255,255,255,.45);max-width:260px}
.footer-reg{margin-top:14px;font-family:'DM Mono',monospace;font-size:10px;color:rgba(255,255,255,.3);letter-spacing:1px;line-height:1.9}
.footer-col h4{font-family:'Playfair Display',serif;font-size:14px;color:var(--yellow);margin-bottom:16px;padding-bottom:8px;border-bottom:1px solid rgba(245,200,0,.2)}
.footer-links{list-style:none}
.footer-links li{margin-bottom:8px}
.footer-links a{color:rgba(255,255,255,.5);text-decoration:none;font-size:13px;transition:color .15s}
.footer-links a:hover{color:var(--yellow)}
.footer-bottom-full{border-top:2px solid var(--yellow)}
.footer-bottom-full-inner{max-width:1200px;margin:0 auto;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-family:'DM Mono',monospace;color:rgba(255,255,255,.35)}
.footer-affiliates{display:flex;align-items:center;gap:12px}
.affiliate-badge{border:1px solid rgba(245,200,0,.3);color:rgba(245,200,0,.65);padding:2px 8px;border-radius:2px;font-size:10px;letter-spacing:1px}

/* ADMIN EDIT BUTTONS */
.admin-edit-btn{background:rgba(245,200,0,.15);border:1px solid rgba(245,200,0,.4);color:var(--yellow);padding:3px 9px;border-radius:2px;font-size:10px;font-family:'DM Mono',monospace;cursor:pointer;letter-spacing:.5px;transition:background .15s}
.admin-edit-btn:hover{background:rgba(245,200,0,.3)}
.admin-add-btn{background:rgba(30,122,69,.2);border:1px solid rgba(30,122,69,.4);color:#5fcea8;padding:3px 9px;border-radius:2px;font-size:10px;font-family:'DM Mono',monospace;cursor:pointer;letter-spacing:.5px;transition:background .15s}
.admin-add-btn:hover{background:rgba(30,122,69,.35)}
.admin-delete-btn{background:rgba(204,27,27,.1);border:1px solid rgba(204,27,27,.3);color:#e87878;padding:2px 6px;border-radius:2px;font-size:10px;cursor:pointer;transition:background .15s;font-family:'DM Mono',monospace;margin-left:6px}
.admin-delete-btn:hover{background:rgba(204,27,27,.25)}

/* MODALS BASE */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(10,22,60,.88);z-index:9000;backdrop-filter:blur(4px);padding:20px;overflow-y:auto}
.modal-overlay.open{display:flex;align-items:flex-start;justify-content:center;padding-top:40px}
#listViewerModal{
  z-index: 9100;
}

#newsDetailModal{
  z-index: 9200;
}
#publishModal{
  z-index: 9400;
}

#playerProfileModal{
  z-index: 9300;
}
#confirmModal{
  z-index: 9990;
}

.modal{background:var(--white);border-radius:6px;width:100%;max-width:780px;box-shadow:0 24px 80px rgba(0,0,0,.5);overflow:hidden}
.modal-sm{max-width:480px}
.modal-header{background:var(--blue-dark);padding:18px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:3px solid var(--red)}
.modal-title{font-family:'Playfair Display',serif;font-size:19px;color:var(--yellow);font-weight:700}
.modal-close{background:none;border:none;color:rgba(255,255,255,.6);font-size:22px;cursor:pointer;padding:4px 8px;border-radius:var(--radius);transition:color .15s}
.modal-close:hover{color:var(--white)}
.modal-tabs{display:flex;border-bottom:2px solid var(--gray-200);background:var(--gray-100)}
.modal-tab{padding:12px 20px;font-size:13px;font-weight:600;cursor:pointer;border:none;background:none;color:var(--gray-700);position:relative;font-family:'DM Sans',sans-serif;transition:color .15s}
.modal-tab.active{color:var(--blue-dark)}
.modal-tab.active::after{content:'';position:absolute;bottom:-2px;left:0;right:0;height:2px;background:var(--red)}
.modal-body{padding:24px}
.tab-panel{display:none}
.tab-panel.active{display:block}
.modal-footer{padding:14px 24px;background:var(--gray-100);border-top:1px solid var(--gray-200);display:flex;align-items:center;justify-content:flex-end;gap:10px}

/* FORMS */
.form-group{margin-bottom:18px}
.form-label{display:block;font-size:11px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:var(--gray-700);margin-bottom:6px;font-family:'DM Mono',monospace}
.form-input,.form-select,.form-textarea{width:100%;padding:10px 14px;border:1.5px solid var(--gray-200);border-radius:var(--radius);font-family:'DM Sans',sans-serif;font-size:14px;color:var(--text);background:var(--white);transition:border-color .2s,box-shadow .2s;outline:none}
.form-input:focus,.form-select:focus,.form-textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(26,58,143,.1)}
.form-textarea{resize:vertical;min-height:140px;line-height:1.6}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-hint{font-size:11px;color:var(--gray-500);font-family:'DM Mono',monospace;margin-top:4px}

/* UPLOAD */
.upload-area{border:2px dashed var(--gray-200);border-radius:var(--radius);padding:26px;text-align:center;cursor:pointer;transition:border-color .2s,background .2s;background:var(--gray-100);position:relative}
.upload-area:hover,.upload-area.dragover{border-color:var(--blue);background:rgba(26,58,143,.04)}
.upload-area input[type="file"]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.upload-icon{font-size:30px;margin-bottom:8px}
.upload-text{font-size:13px;color:var(--gray-700);margin-bottom:4px}
.upload-hint{font-size:11px;color:var(--gray-500);font-family:'DM Mono',monospace}
.upload-preview-list{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px}
.upload-preview-item{display:inline-flex;align-items:center;gap:6px;background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius);padding:4px 10px;font-size:12px;font-family:'DM Mono',monospace;color:var(--gray-700)}
.upload-preview-thumb{width:28px;height:28px;object-fit:cover;border-radius:2px}
.remove-file{color:var(--red);cursor:pointer;font-size:14px;font-weight:700;background:none;border:none;line-height:1;padding:0 2px}

/* PREVIEW */
.preview-card{border:1px solid var(--gray-200);border-radius:var(--radius);overflow:hidden}
.preview-card-img{width:100%;max-height:260px;object-fit:cover;display:none}
.preview-card-img.has-image{display:block}
.preview-card-body{padding:20px 24px}
.preview-tag{font-family:'DM Mono',monospace;font-size:10px;letter-spacing:2px;color:var(--red);text-transform:uppercase;margin-bottom:10px}
.preview-card-title{font-family:'Playfair Display',serif;font-size:23px;font-weight:900;color:var(--blue-dark);margin-bottom:14px;line-height:1.2}
.preview-card-content{font-size:14px;color:var(--gray-700);line-height:1.75;white-space:pre-line}

/* BUTTONS */
.btn-secondary{background:none;border:1.5px solid var(--gray-200);color:var(--gray-700);padding:9px 18px;border-radius:var(--radius);font-size:13px;font-weight:500;cursor:pointer;font-family:'DM Sans',sans-serif;transition:border-color .2s,color .2s}
.btn-secondary:hover{border-color:var(--blue-dark);color:var(--blue-dark)}
.btn-view-all{
  font-size:11px;
  padding:4px 10px;
  line-height:1;
  white-space:nowrap;

  background:var(--blue-dark);
  color:var(--yellow);
  border:1px solid var(--blue-dark);
  border-radius:4px;

  font-weight:600;
  transition:all .2s ease;
}
.btn-view-all:hover{
  background:var(--yellow);
  color:var(--blue-dark);
  border-color:var(--yellow);
}

.btn-publish-final{background:var(--green-win);color:var(--white);border:none;padding:10px 22px;border-radius:var(--radius);font-size:13px;font-weight:700;cursor:pointer;font-family:'DM Sans',sans-serif;display:flex;align-items:center;gap:6px;transition:background .2s}
.btn-publish-final:hover{background:#175e34}
.btn-publish-final:disabled{opacity:.6;cursor:not-allowed}
.btn-preview-tab{background:var(--blue-dark);color:var(--white);border:none;padding:10px 18px;border-radius:var(--radius);font-size:13px;font-weight:600;cursor:pointer;font-family:'DM Sans',sans-serif;transition:background .2s}
.btn-preview-tab:hover{background:var(--blue)}
.btn-save{background:var(--blue-dark);color:var(--white);border:none;padding:10px 22px;border-radius:var(--radius);font-size:13px;font-weight:700;cursor:pointer;font-family:'DM Sans',sans-serif;display:flex;align-items:center;gap:6px;transition:background .2s}
.btn-save:hover{background:var(--blue)}
.btn-save:disabled{opacity:.6;cursor:not-allowed}
.btn-danger{background:var(--red);color:var(--white);border:none;padding:9px 18px;border-radius:var(--radius);font-size:13px;font-weight:700;cursor:pointer;font-family:'DM Sans',sans-serif;transition:background .2s}
.btn-danger:hover{background:var(--red-dark)}

/* LOGIN */
.login-overlay{display:none;position:fixed;inset:0;background:rgba(10,22,60,.92);z-index:9500;backdrop-filter:blur(6px);align-items:center;justify-content:center}
.login-overlay.open{display:flex}
.login-box{background:var(--white);border-radius:8px;width:100%;max-width:400px;overflow:hidden;box-shadow:0 32px 80px rgba(0,0,0,.5);animation:loginSlideIn .28s ease}
@keyframes loginSlideIn{from{transform:translateY(-24px);opacity:0}to{transform:translateY(0);opacity:1}}
.login-header{background:var(--blue-dark);padding:28px 28px 20px;text-align:center;border-bottom:3px solid var(--red)}
.login-logo{width:72px;height:72px;object-fit:contain;margin-bottom:12px;filter:drop-shadow(0 4px 12px rgba(0,0,0,.4))}
.login-header h2{font-family:'Playfair Display',serif;font-size:20px;color:var(--yellow);font-weight:900;margin-bottom:4px}
.login-header p{font-size:11px;font-family:'DM Mono',monospace;letter-spacing:1.5px;color:rgba(255,255,255,.45);text-transform:uppercase}
.login-body{padding:28px}
.login-error{background:rgba(204,27,27,.08);border:1px solid rgba(204,27,27,.3);color:var(--red);font-size:12px;font-family:'DM Mono',monospace;padding:10px 14px;border-radius:var(--radius);margin-bottom:16px;display:none;align-items:center;gap:8px}
.login-error.show{display:flex}
.login-input-wrap{position:relative;margin-bottom:16px}
.login-input-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:15px;pointer-events:none;opacity:.5}
.login-input{width:100%;padding:11px 14px 11px 38px;border:1.5px solid var(--gray-200);border-radius:var(--radius);font-family:'DM Sans',sans-serif;font-size:14px;color:var(--text);transition:border-color .2s,box-shadow .2s;outline:none}
.login-input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(26,58,143,.1)}
.login-input.error{border-color:var(--red)}
.login-show-pw{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;font-size:16px;color:var(--gray-500);padding:0;line-height:1}
.btn-login{width:100%;background:var(--red);color:var(--white);border:none;border-radius:var(--radius);padding:12px;font-family:'DM Sans',sans-serif;font-weight:700;font-size:15px;cursor:pointer;transition:background .2s,transform .15s;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:4px}
.btn-login:hover{background:var(--red-dark);transform:translateY(-1px)}
.btn-login:disabled{opacity:.6;cursor:not-allowed;transform:none}
.login-footer-note{text-align:center;font-size:11px;font-family:'DM Mono',monospace;color:var(--gray-500);margin-top:16px;letter-spacing:.5px}

/* TOAST */
.toast{position:fixed;bottom:32px;right:32px;background:var(--green-win);color:var(--white);padding:14px 20px;border-radius:var(--radius);font-size:14px;font-weight:600;box-shadow:var(--shadow-lg);z-index:9999;transform:translateY(80px);opacity:0;transition:transform .3s ease,opacity .3s ease;display:flex;align-items:center;gap:8px}
.toast.show{transform:translateY(0);opacity:1}

/* NEWS DETAIL MODAL */
.news-detail-modal .modal{max-width:860px}
.news-detail-body{padding:28px 32px}
.news-detail-title{font-family:'Playfair Display',serif;font-size:28px;font-weight:900;color:var(--blue-dark);margin-bottom:12px;line-height:1.2}
.news-detail-meta{font-size:11px;font-family:'DM Mono',monospace;color:var(--gray-500);margin-bottom:20px;display:flex;gap:16px}
.news-detail-content{font-size:15px;color:var(--gray-700);line-height:1.8;white-space:pre-line}
.news-detail-attachments{margin-top:24px;padding-top:16px;border-top:1px solid var(--gray-200)}
.news-detail-attachments h4{font-size:11px;font-family:'DM Mono',monospace;letter-spacing:1.5px;text-transform:uppercase;color:var(--gray-500);margin-bottom:10px}

.news-slider{
  position:relative;
  background:var(--gray-100);
  border-bottom:1px solid var(--gray-200);
  display:none;
}

.news-slider.active{
  display:block;
}

.news-slider-stage{
  position:relative;
  width:100%;
  height:min(62vw, 420px);
  min-height:240px;
  max-height:420px;
  overflow:hidden;
  background:#111;
}

.news-slider-stage img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.news-slider-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:rgba(10,22,60,.68);
  color:#fff;
  font-size:22px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .2s, transform .15s;
}

.news-slider-btn:hover{
  background:rgba(10,22,60,.9);
}

.news-slider-btn.prev{left:14px}
.news-slider-btn.next{right:14px}

.news-slider-count{
  position:absolute;
  right:14px;
  bottom:12px;
  z-index:2;
  background:rgba(10,22,60,.7);
  color:#fff;
  font-family:'DM Mono',monospace;
  font-size:11px;
  padding:5px 8px;
  border-radius:999px;
}

.news-slider-caption{
  padding:10px 16px 0;
  font-size:12px;
  color:var(--gray-700);
  font-family:'DM Mono',monospace;
}

.news-slider-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  padding:12px 16px 14px;
}

.news-slider-dot{
  width:10px;
  height:10px;
  border:none;
  border-radius:50%;
  background:rgba(26,58,143,.22);
  cursor:pointer;
  transition:transform .15s, background .15s;
}

.news-slider-dot.active{
  background:var(--blue-dark);
  transform:scale(1.15);
}

@media(max-width:600px){
  .news-slider-stage{
    height:240px;
  }

  .news-slider-btn{
    width:38px;
    height:38px;
    font-size:20px;
  }
}

@media (max-width: 560px) {
  .news-rich-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-rich-link small {
    margin-left: 0;
  }
}

.rich-admin-box {
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
}

.rich-admin-title {
  font-family: 'Playfair Display', serif;
  color: var(--blue-dark);
  font-size: 16px;
  margin-bottom: 12px;
}

.rich-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rich-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 8px 10px;
}

.rich-preview-item strong {
  display: block;
  font-size: 13px;
  color: var(--blue-dark);
}

.rich-preview-item small {
  display: block;
  margin-top: 2px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--gray-500);
  overflow-wrap: anywhere;
}

.rich-empty {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--gray-500);
  padding: 10px;
  background: var(--white);
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius);
}

.preview-rich-blocks {
  margin-top: 18px;
}

.news-rich-blocks {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-rich-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue-dark);
  color: var(--blue-dark);
  text-decoration: none;
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: background .2s, border-color .2s;
}

.news-rich-link:hover {
  background: var(--yellow-pale);
  border-left-color: var(--red);
}

.news-rich-link strong {
  font-size: 13px;
}

.news-rich-link small {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--gray-500);
  margin-left: auto;
}

.news-embed-block {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.news-embed-title {
  padding: 10px 12px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--blue-dark);
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.news-embed-block iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.news-detail-text {
  white-space: normal;
}

/* FIXTURE/RESULT FORM */
.outcome-select{display:flex;gap:8px;flex-wrap:wrap}
.outcome-btn{padding:6px 14px;border-radius:var(--radius);border:1.5px solid var(--gray-200);background:none;font-size:12px;font-weight:600;cursor:pointer;font-family:'DM Mono',monospace;transition:all .15s}
.outcome-btn.win.selected{background:rgba(30,122,69,.15);border-color:var(--green-win);color:var(--green-win)}
.outcome-btn.loss.selected{background:rgba(204,27,27,.1);border-color:var(--red);color:var(--red)}
.outcome-btn.draw.selected{background:rgba(138,133,120,.1);border-color:var(--gray-500);color:var(--gray-700)}

/* SPONSOR MODAL */
.sponsor-preview-img{width:100%;max-height:120px;object-fit:contain;border:1px solid var(--gray-200);border-radius:var(--radius);padding:8px;background:var(--gray-100);display:none;margin-top:8px}
.sponsor-preview-img.show{display:block}

/* PLAYER FORM */
.player-preview-avatar{width:80px;height:80px;border-radius:50%;background:linear-gradient(135deg,var(--blue-dark),var(--blue));display:flex;align-items:center;justify-content:center;font-family:'Playfair Display',serif;font-size:28px;font-weight:700;color:var(--yellow);margin:0 auto 12px;overflow:hidden}
.player-preview-avatar img{width:100%;height:100%;object-fit:cover}

/* DB STATUS */
.db-status{display:none;align-items:center;gap:6px;font-size:11px;font-family:'DM Mono',monospace;padding:4px 10px;border-radius:10px}
.db-status.connected{display:flex;background:rgba(30,122,69,.15);border:1px solid rgba(30,122,69,.3);color:#5fcea8}
.db-status.error{display:flex;background:rgba(204,27,27,.1);border:1px solid rgba(204,27,27,.3);color:#e87878}
.db-dot{width:6px;height:6px;border-radius:50%;background:currentColor}

/* SETUP BANNER */
.setup-banner{background:linear-gradient(90deg,var(--blue-dark),var(--blue-mid));border-bottom:2px solid var(--yellow);padding:12px 24px;text-align:center;font-size:13px;color:rgba(255,255,255,.85);font-family:'DM Mono',monospace;letter-spacing:.3px}
.setup-banner a{color:var(--yellow);cursor:pointer}
.setup-banner.hidden{display:none}

@media(max-width:900px){
  .main-container{grid-template-columns:1fr}
  .sidebar{display:grid;grid-template-columns:1fr 1fr}
  .about-strip-inner{grid-template-columns:1fr;gap:28px}
  .stats-bar-inner{grid-template-columns:repeat(2,1fr)}
  .news-grid{grid-template-columns:1fr}
  .news-card.featured{grid-column:1;grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr 1fr}

  .btn-login-icon{
  display:inline-flex;
}

  nav{display:none}
  .mobile-menu-btn{display:block}

  .hero-logo-bg{display:none}

  .hero-main-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .hero-left-col,
  .hero-sponsors-wrap{
    width:100%;
    max-width:100%;
  }

  .hero-sponsors-wrap{
    min-width:0;
  }

  .hero-sponsors{
    justify-content:flex-start;
    flex-wrap:wrap;
  }

  .hero-sponsors .sponsor-slot{
    width:calc(50% - 7px);
    min-width:140px
  }

  .btn-publish{
    display:none;
  }

  .hero-actions-bar{
    flex-direction:column;
    align-items:flex-start;
  }

  .hero-cta-col,
  .hero-sponsors-wrap{
    flex:0 0 100%;
    max-width:100%;
    width:100%;
  }

  .hero-sponsors-title{
    margin-top:4px;
  }

  .hero-sponsors{
    justify-content:flex-start;
    flex-wrap:wrap;
  }

  .header-actions{
    gap:8px;
  }

  .db-status{
    display:none !important;
  }
}

.set-password-note {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 18px;
}

.mfa-qr-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}

.mfa-qr-img {
  width: 220px;
  height: 220px;
  max-width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px;
}

#mfaSecretText {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
}

@media(max-width:600px){
  .hero{height:auto;min-height:340px}
  .footer-inner{grid-template-columns:1fr}
  .sidebar{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .hero-content{padding:32px 24px 40px}
  .hero-sponsors .sponsor-slot{width:100%;height:78px}
}
@keyframes spin{to{transform:rotate(360deg)}}

.result-date-inline {
  white-space: nowrap;
  min-width: 82px;
}

  /* ══════════════════════════════════
     ADMIN PANEL
  ══════════════════════════════════ */
  .admin-panel-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--blue-dark);
    color: var(--yellow);
    border: 2px solid var(--yellow);
    border-radius: 50px;
    padding: 10px 18px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 800;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transition: background .2s, transform .15s;
  }
  .admin-panel-btn.visible { display: flex; }
  .admin-panel-btn:hover { background: var(--blue-mid); transform: translateY(-2px); }

  /* Admin Panel Drawer */
  .admin-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,22,60,.6);
    z-index: 8000;
    backdrop-filter: blur(2px);
  }
  .admin-drawer-overlay.open { display: block; }
  .admin-drawer {
    position: fixed;
    top: 0; right: -520px;
    width: 520px;
    height: 100vh;
    background: var(--white);
    z-index: 8001;
    box-shadow: -8px 0 40px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    transition: right .3s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
  }
  .admin-drawer.open { right: 0; }
  .admin-drawer-header {
    background: var(--blue-dark);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--red);
    flex-shrink: 0;
  }
  .admin-drawer-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--yellow);
    font-weight: 700;
  }
  .admin-drawer-close {
    background: none; border: none; color: rgba(255,255,255,.6);
    font-size: 20px; cursor: pointer; padding: 4px 8px;
    border-radius: var(--radius); transition: color .15s;
  }
  .admin-drawer-close:hover { color: var(--white); }

  /* Admin Tabs */
  .admin-tabs {
    display: flex;
    background: var(--gray-100);
    border-bottom: 2px solid var(--gray-200);
    flex-shrink: 0;
    overflow-x: auto;
  }
  .admin-tab-btn {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--gray-700);
    position: relative;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
    transition: color .15s;
    letter-spacing: .3px;
  }
  .admin-tab-btn.active { color: var(--blue-dark); }
  .admin-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px;
    background: var(--red);
  }
  .admin-tab-panel { display: none; flex: 1; overflow-y: auto; padding: 20px; }
  .admin-tab-panel.active { display: block; }

.admin-entry-only {
  display: none;
}

.admin-page .admin-entry-only {
  display: inline-flex;
}

  /* Menu Manager */
  .menu-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 6px;
    background: var(--white);
    cursor: grab;
    transition: box-shadow .15s, border-color .15s;
  }
  .menu-item-row:hover { border-color: var(--blue); box-shadow: var(--shadow); }
  .menu-item-row.sub-item { margin-left: 24px; background: var(--gray-100); }
  .menu-drag-handle { color: var(--gray-500); font-size: 14px; cursor: grab; flex-shrink: 0; }
  .menu-item-label { flex: 1; font-size: 13px; font-weight: 500; color: var(--blue-dark); }
  .menu-item-url { font-size: 11px; color: var(--gray-500); font-family: 'DM Mono', monospace; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .menu-item-actions { display: flex; gap: 4px; }
  .menu-edit-btn {
    background: rgba(26,58,143,.08); border: 1px solid rgba(26,58,143,.2);
    color: var(--blue); padding: 2px 8px; border-radius: 2px;
    font-size: 10px; cursor: pointer; font-family: 'DM Mono', monospace;
    transition: background .15s;
  }
  .menu-edit-btn:hover { background: rgba(26,58,143,.18); }
  .menu-del-btn {
    background: rgba(204,27,27,.08); border: 1px solid rgba(204,27,27,.2);
    color: var(--red); padding: 2px 7px; border-radius: 2px;
    font-size: 10px; cursor: pointer; font-family: 'DM Mono', monospace;
    transition: background .15s;
  }
  .menu-del-btn:hover { background: rgba(204,27,27,.18); }
  .menu-section-header {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--blue-dark);
    margin: 18px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .menu-add-sub {
    font-size: 10px;
    font-family: 'DM Mono', monospace;
    background: rgba(30,122,69,.12);
    border: 1px solid rgba(30,122,69,.3);
    color: var(--green-win);
    padding: 3px 8px;
    border-radius: 2px;
    cursor: pointer;
  }
  .menu-add-sub:hover { background: rgba(30,122,69,.22); }

  /* Page Manager */
  .page-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 6px;
    background: var(--white);
    transition: border-color .15s;
  }
  .page-list-item:hover { border-color: var(--blue); }
  .page-list-info { flex: 1; }
  .page-list-title { font-size: 13px; font-weight: 600; color: var(--blue-dark); }
  .page-list-slug { font-size: 10px; font-family: 'DM Mono', monospace; color: var(--gray-500); margin-top: 2px; }
  .page-status {
    font-size: 10px; font-family: 'DM Mono', monospace;
    padding: 2px 8px; border-radius: 2px; font-weight: 600;
  }
  .page-status.published { background: rgba(30,122,69,.12); color: var(--green-win); }
  .page-status.draft { background: rgba(245,200,0,.15); color: #a07800; }

  /* Page Editor */
  .page-editor { display: none; }
  .page-editor.active { display: block; }
  .page-list-view { display: block; }
  .page-list-view.hidden { display: none; }
  .back-btn {
    display: flex; align-items: center; gap: 6px;
    background: none; border: none; cursor: pointer;
    font-size: 12px; font-family: 'DM Mono', monospace;
    color: var(--blue); letter-spacing: .5px; margin-bottom: 16px;
    padding: 0; transition: color .15s;
  }
  .back-btn:hover { color: var(--red); }

  /* Rich content blocks */
  .content-block {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color .15s;
  }
  .content-block:hover { border-color: var(--blue); }
  .content-block-header {
    background: var(--gray-100);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-family: 'DM Mono', monospace;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
  }

.block-actions{
  display:flex;
  gap:6px;
  align-items:center;
}

  .content-block-body { padding: 10px 12px; }
  .content-block textarea {
    width: 100%; border: none; outline: none;
    font-family: 'DM Sans', sans-serif; font-size: 13.5px;
    color: var(--text); line-height: 1.6; resize: vertical;
    min-height: 80px; background: transparent;
  }

  /* Page viewer */
  .page-viewer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,22,60,.88);
    z-index: 9000;
    backdrop-filter: blur(4px);
    padding: 40px 20px;
    overflow-y: auto;
  }
  .page-viewer-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
  .page-viewer {
    background: var(--white);
    border-radius: 6px;
    width: 100%;
    max-width: 860px;
    box-shadow: 0 24px 80px rgba(0,0,0,.5);
    overflow: hidden;
  }
  .page-viewer-header {
    background: var(--blue-dark);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--red);
  }
  .page-viewer-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px; color: var(--yellow); font-weight: 700;
  }
  .page-viewer-body { padding: 36px 40px; }
  .page-viewer-body h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px; font-weight: 900;
    color: var(--blue-dark); margin-bottom: 8px; line-height: 1.15;
  }
  .page-viewer-body .page-meta {
    font-size: 11px; font-family: 'DM Mono', monospace;
    color: var(--gray-500); margin-bottom: 28px;
    padding-bottom: 16px; border-bottom: 1px solid var(--gray-200);
  }
  .page-viewer-body .page-section { margin-bottom: 24px; }
  .page-viewer-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px; color: var(--blue-dark); margin-bottom: 10px;
    display: flex; align-items: center; gap: 10px;
  }
  .page-viewer-body h2::before {
    content: ''; display: block; width: 4px; height: 22px;
    background: var(--red); border-radius: 2px; flex-shrink: 0;
  }
  .page-viewer-body p { font-size: 14.5px; color: var(--gray-700); line-height: 1.8; margin-bottom: 12px; }
  .page-viewer-body ul { padding-left: 20px; margin-bottom: 12px; }
  .page-viewer-body ul li { font-size: 14.5px; color: var(--gray-700); line-height: 1.8; margin-bottom: 4px; }
  .page-viewer-body .doc-link {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gray-100); border: 1px solid var(--gray-200);
    color: var(--blue-dark); padding: 8px 14px; border-radius: var(--radius);
    text-decoration: none; font-size: 13px; font-weight: 500;
    margin: 4px 4px 4px 0; transition: background .15s;
  }
  .page-viewer-body .doc-link:hover { background: var(--yellow-pale); }

  /* Menu item edit inline form */
  .menu-edit-form {
    background: var(--gray-100);
    border: 1.5px solid var(--blue);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 6px;
    display: none;
  }
  .menu-edit-form.open { display: block; }
  .menu-edit-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
  .menu-edit-input {
    padding: 7px 10px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; outline: none;
    transition: border-color .2s;
    width: 100%;
  }
  .menu-edit-input:focus { border-color: var(--blue); }
  .menu-edit-actions { display: flex; gap: 6px; }
  .btn-xs-save {
    background: var(--blue-dark); color: var(--white); border: none;
    padding: 6px 14px; border-radius: var(--radius);
    font-size: 11px; font-weight: 700; cursor: pointer;
    font-family: 'DM Mono', monospace; letter-spacing: .5px;
  }
  .btn-xs-cancel {
    background: none; border: 1px solid var(--gray-200); color: var(--gray-700);
    padding: 6px 14px; border-radius: var(--radius);
    font-size: 11px; cursor: pointer; font-family: 'DM Mono', monospace;
  }


  /* Links & sponsor admin lists */
  .admin-card{border:1px solid var(--gray-200);border-radius:var(--radius);padding:14px;background:var(--white);margin-bottom:14px}
  .link-list-row,.sponsor-list-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.5fr) auto auto;gap:8px;align-items:center;padding:8px 10px;border:1px solid var(--gray-200);border-radius:var(--radius);margin-bottom:8px;background:var(--white)}
  .sponsor-list-row{grid-template-columns:72px minmax(0,1fr) auto auto}
  .mini-thumb{width:56px;height:44px;border:1px solid var(--gray-200);border-radius:4px;background:var(--gray-100);display:flex;align-items:center;justify-content:center;overflow:hidden}
  .mini-thumb img{width:100%;height:100%;object-fit:contain;padding:4px}
  .link-list-label{font-size:13px;font-weight:600;color:var(--blue-dark)}
  .link-list-url{font-size:11px;color:var(--gray-500);font-family:'DM Mono',monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .link-chip{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-family:'DM Mono',monospace;background:var(--gray-100);border:1px solid var(--gray-200);padding:2px 8px;border-radius:999px}
  .section-subtitle{font-family:'Playfair Display',serif;font-size:16px;color:var(--blue-dark);margin:16px 0 10px}

	@media (max-width: 900px) {
  .main-container {
    display: block;
    padding: 32px 16px;
  }

  .main-container > main,
  .main-container > aside,
  .news-grid,
  .news-card,
  .sidebar,
  .sidebar-card,
  .sidebar-card-body,
  .squad-section,
  .squad-grid,
  .section-header {
    min-width: 0;
    width: 100%;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-card-header,
  .section-header {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }

  .sidebar-card-header-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .fixture-row,
  .quick-link {
    min-width: 0;
    gap: 8px;
  }

  .fixture-teams {
    min-width: 0;
    padding: 0 6px;
  }

  .fixture-comp {
    white-space: normal;
    text-align: right;
  }

  .quick-link {
    overflow-wrap: anywhere;
  }

  .squad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-content,
  .header-inner,
  .footer-inner,
  .about-strip-inner,
  .stats-bar-inner {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .fixture-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .fixture-date {
    min-width: auto;
    width: 100%;
  }

  .fixture-date.result-date-inline {
    width: auto;
    min-width: 82px;
  }

  .fixture-teams {
    flex: 1 1 100%;
    padding: 0;
  }

  .fixture-comp {
    margin-left: auto;
  }

  .squad-grid {
    grid-template-columns: 1fr;
  }

  .player-card {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .fixture-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
  }

  .fixture-date {
    min-width: 58px;
    font-size: 10px;
    line-height: 1.45;
  }

  .fixture-teams {
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
    min-width: 0;
  }

  .fixture-comp {
    justify-self: end;
    align-self: center;
    font-size: 9px;
    padding: 2px 6px;
  }

  .team-badge {
    display: inline-block;
    margin-left: 6px;
    margin-top: 4px;
    white-space: nowrap;
  }

  .sidebar-card {
    margin-bottom: 22px;
  }

  .admin-panel-btn {
    bottom: 14px;
    left: 12px;
    transform: scale(0.9);
    transform-origin: left bottom;
  }
}

.expense-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.expense-item-block {
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
}

.expense-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.expense-item-header h3 {
  font-family: 'Playfair Display', serif;
  color: var(--blue-dark);
  font-size: 22px;
}

.btn-remove-expense {
  background: rgba(204, 27, 27, 0.08);
  color: var(--red);
  border: 1px solid rgba(204, 27, 27, 0.25);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-remove-expense:hover {
  background: rgba(204, 27, 27, 0.14);
}

.selected-files-list {
  margin-top: 8px;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.6;
}

.upload-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--gray-500);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 11px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: var(--white);
  color: var(--text);
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
}

.expense-files {
  width: 100%;
  border: 1px dashed var(--gray-500);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
}

@media (max-width: 700px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .expense-form {
    padding: 16px;
  }

  .expense-item-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.expense-report-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
}

.expense-report-title {
  font-weight: 800;
  color: var(--blue-dark);
}

.expense-report-meta {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
  line-height: 1.5;
}

.expense-report-right {
  min-width: 170px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.expense-total {
  font-weight: 900;
  color: var(--blue-dark);
}

.expense-status {
  display: inline-block;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  background: var(--gray-100);
  color: var(--gray-700);
}

.status-pending {
  background: rgba(245, 200, 0, 0.18);
  color: #8a6d00;
}

.status-approved {
  background: rgba(30, 122, 69, 0.12);
  color: var(--green-win);
}

.status-paid {
  background: rgba(26, 58, 143, 0.12);
  color: var(--blue-dark);
}

.status-rejected {
  background: rgba(204, 27, 27, 0.10);
  color: var(--red);
}

.expense-detail-head {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.expense-item-detail {
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  background: var(--cream);
}

.expense-item-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.expense-file-row {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 13px;
}

.expense-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

@media (max-width: 700px) {
  .expense-report-row,
  .expense-item-detail-header {
    flex-direction: column;
  }

  .expense-report-right {
    text-align: left;
    align-items: flex-start;
  }
}

#turnstileContainer {
  margin: 12px 0 16px;
  min-height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.expense-file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.btn-open-expense-file {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .expense-file-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.status-partly_approved {
  background: rgba(245, 200, 0, 0.18);
  color: #8a6d00;
}

.expense-warning-box {
  background: rgba(204, 27, 27, 0.08);
  border: 1px solid rgba(204, 27, 27, 0.25);
  border-left: 4px solid var(--red);
  color: var(--text);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 24px;
  line-height: 1.6;
  font-size: 14px;
}

.expense-warning-box strong {
  color: var(--red);
}

.member-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.member-total-summary {
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  color: var(--blue-dark);
}

@media (max-width: 700px) {
  .member-total-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.expense-select-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
  cursor: pointer;
}

.expense-report-select {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.selected-export-summary {
  display: block;
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 14px 0 22px;
  color: var(--blue-dark);
  font-size: 14px;
  line-height: 1.6;
  max-width: 560px;
}

.expense-search-wrap {
  margin-bottom: 18px;
  max-width: 520px;
}

.expense-search-wrap .form-input {
  width: 100%;
}

.expense-date-filter {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.expense-date-filter .form-group {
  min-width: 180px;
  margin-bottom: 0;
}

.expense-date-filter button {
  height: 42px;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .expense-date-filter {
    align-items: stretch;
  }

  .expense-date-filter .form-group,
  .expense-date-filter button {
    width: 100%;
  }
}

.expense-filter-buttons,
.expense-action-buttons,
.expense-secondary-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.expense-action-buttons .btn-primary {
  min-width: 180px;
}

.expense-secondary-buttons .btn-secondary,
.expense-filter-buttons .btn-secondary {
  min-width: 110px;
}

.status-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.reject-reason-card h2 {
  margin-top: 0;
}

body.treasurer-page .main-container {
  max-width: 1500px !important;
  width: 100%;
  display: block;
  padding-left: 24px;
  padding-right: 24px;
}

.treasurer-expense-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(460px, 1.1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
}

.expense-list-panel,
.expense-details-panel {
  min-width: 0;
  width: 100%;
}

.expense-details-panel {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.expense-report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.expense-report-right {
  min-width: 90px;
  max-width: 120px;
  text-align: right;
}

.expense-report-title,
.expense-report-meta {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .treasurer-expense-layout {
    display: block;
  }

  .expense-details-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9800;
    background: rgba(10, 22, 60, 0.72);
    padding: 12px;
    margin-top: 0;
    overflow-y: auto;
  }

  .expense-details-panel.open {
    display: block;
  }

  .expense-details-panel #expenseReportDetailsCard {
    display: block !important;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    border-radius: 12px;
  }

  .expense-details-close {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  body.treasurer-page .main-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .expense-report-row {
    grid-template-columns: 1fr;
  }

  .expense-report-right {
    max-width: none;
    width: 100%;
    text-align: left;
  }
}

.expense-details-close {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--yellow);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 16px;
  cursor: pointer;
}

.expense-details-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Treasurer report details close button */
.expense-details-close {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

.expense-details-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Mobile: make report details open as popup */
@media (max-width: 900px) {
  .expense-details-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9800;
    background: rgba(10, 22, 60, 0.72);
    padding: 12px;
    margin-top: 0;
    overflow-y: auto;
  }

  .expense-details-panel.open {
    display: block;
  }

  .expense-details-panel #expenseReportDetailsCard {
    display: block !important;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    border-radius: 12px;
  }

  .expense-details-panel .sidebar-card-header {
    position: sticky;
    top: 0;
    z-index: 2;
  }
}

.expense-details-close {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  pointer-events: auto;
  position: relative;
  z-index: 5;
}

/* Treasurer page main container */
.treasurer-main-container {
  max-width: 1200px;
  margin: 32px auto;
}

/* Footer logo image */
.footer-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Footer club name */
.footer-club-name {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--yellow);
}

/* Footer dynamic links container */
.footer-links-container {
  display: contents;
}

.hidden-by-default {
  display: none;
}

.footer-links-container {
  display: contents;
}

/* CSP cleanup utility classes */

.hidden-by-default {
  display: none;
}

.hidden-small-btn {
  display: none;
  font-size: 10px;
}

.hidden-tiny-btn {
  display: none;
  font-size: 9px;
}

.inline-flex-visible {
  display: inline-flex;
}

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

.flex-wrap-gap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

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

.flex-between-center-mb10 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

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

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

.flex-gap8-mt16 {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.no-margin {
  margin: 0;
}

.full-width {
  width: 100%;
}

.full-width-mt12 {
  width: 100%;
  margin-top: 12px;
}

.flex-grow-1 {
  flex: 1;
}

.setup-help-text {
  font-size: 13px;
  color: var(--gray-700);
  margin-bottom: 20px;
  line-height: 1.6;
}

.admin-help-text {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 16px;
  font-family: 'DM Mono', monospace;
  line-height: 1.6;
}

.admin-small-text {
  font-size: 12px;
  color: var(--gray-500);
  font-family: 'DM Mono', monospace;
}

.preview-meta-text {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.confirm-message-text {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}

.news-content-textarea {
  min-height: 180px;
}

.setting-tagline-textarea {
  min-height: 60px;
}

.form-group-mt20 {
  margin-top: 20px;
}

.modal-wide {
  max-width: 860px;
}

.modal-player-wide {
  max-width: 700px;
}

.modal-scroll-body {
  overflow-y: auto;
  max-height: 80vh;
}

.player-upload-wrap {
  text-align: center;
  margin-bottom: 16px;
}

.upload-area-compact {
  padding: 12px;
}

.upload-area-logo {
  padding: 16px;
}

.upload-help-text {
  font-size: 12px;
  color: var(--gray-500);
}

.upload-icon-small {
  font-size: 20px;
}

.loading-pages-text {
  text-align: center;
  padding: 24px;
  color: var(--gray-500);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
}

.loading-sponsors-text {
  text-align: center;
  padding: 20px;
  color: var(--gray-500);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
}

.content-blocks-header {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hidden-by-default {
  display: none;
}

