:root{
  --bg:#0f0f10;
  --panel:#17171a;
  --border:rgba(200,184,133,.22);
  --text:#e6e6e6;
  --muted:#b9b9b9;
  --muted2:#9a9a9a;
  --gold:#C8B885;
  --gold2:#b2a06f;
  --shadow:0 20px 60px rgba(0,0,0,.35);
  --radius:16px;
  --radius2:24px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(200,184,133,.12), transparent 55%),
    radial-gradient(900px 500px at 110% 10%, rgba(200,184,133,.08), transparent 60%),
    var(--bg);
  color:var(--text);
  line-height:1.6;
}

a{color:var(--gold); text-decoration:none}
a:hover{color:var(--gold2)}

.container{max-width:1100px; margin:0 auto; padding:0 18px}

.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden
}
.skip-link:focus{
  left:12px; top:12px; width:auto; height:auto;
  padding:10px 12px; background:#000;
  border:1px solid var(--border); border-radius:10px; z-index:9999
}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(15,15,16,.75);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:12px}

.brand{display:flex; align-items:center; gap:12px; min-width:220px}
.brand-mark{
  width:42px; height:42px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(200,184,133,.18), rgba(200,184,133,.05));
  border:1px solid var(--border);
  color:var(--gold);
  font-weight:800;
  letter-spacing:1px;
}
.brand-title{font-weight:800; letter-spacing:1.6px}
.brand-subtitle{color:var(--muted2); font-size:.9rem}

.nav{display:flex; gap:16px; align-items:center}
.nav a{color:var(--text); font-weight:600; opacity:.92}
.nav a:hover{color:var(--gold)}
.nav-toggle{display:none; background:transparent; border:0; padding:8px; cursor:pointer}
.nav-toggle span{display:block; width:22px; height:2px; background:var(--text); margin:5px 0; opacity:.85}

/* Hero */
.hero{padding:64px 0 26px; border-bottom:1px solid rgba(255,255,255,.06)}
.hero-inner{display:grid; grid-template-columns:1.35fr .85fr; gap:22px; align-items:stretch}
.hero h1{margin:14px 0 10px; font-size:2.6rem; line-height:1.15; letter-spacing:.3px}
.accent{color:var(--gold)}
.lead{color:var(--muted); font-size:1.05rem; max-width:58ch}
.hero-actions{display:flex; gap:12px; margin-top:18px; flex-wrap:wrap}
.hero-links{margin-top:16px; color:var(--muted2); font-size:.95rem}
.hero-links a{
  color:var(--muted);
  text-decoration:underline;
  text-decoration-color: rgba(200,184,133,.35);
}
.hero-links a:hover{color:var(--gold)}

.hero-card{
  border-radius:var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--shadow);
  padding:18px;
}

/* Dashboard */
.dashboard{display:flex; flex-direction:column; gap:14px}
.dash-top{display:flex; align-items:flex-end; justify-content:space-between; gap:10px}
.dash-title{font-weight:900; letter-spacing:.7px; color:var(--gold)}
.dash-sub{color:var(--muted2); font-size:.9rem}

.dash-metrics{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
.metric{
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  padding:10px 12px;
}
.metric-label{color:var(--muted2); font-size:.85rem}
.metric-value{font-weight:900; font-size:1.25rem; letter-spacing:.3px}

.dash-next{
  border-radius:14px;
  border:1px solid rgba(200,184,133,.28);
  background: rgba(200,184,133,.06);
  padding:12px;
}
.dash-next-row{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap}
.dash-next-label{color:var(--muted2); font-weight:800}
.dash-next-value{font-weight:800}
.countdown{margin-top:8px; display:flex; justify-content:space-between; gap:10px; align-items:center}
.countdown-label{color:var(--muted2); font-size:.9rem}
.countdown-value{font-weight:900; letter-spacing:.6px}

.dash-form{display:flex; flex-direction:column; gap:8px}
.dash-form-label{color:var(--muted2); font-weight:800}
.form-chips{display:flex; gap:8px; flex-wrap:wrap}
.form-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:26px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  font-weight:900;
}
.dash-actions{display:flex; gap:10px; flex-wrap:wrap}

/* Sections */
.section{padding:44px 0}
.section-muted{background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0))}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:18px}
.section-head h2{margin:0; font-size:1.8rem; letter-spacing:.4px}

.grid{display:grid; gap:16px}
.grid.cards{grid-template-columns:repeat(3, minmax(0,1fr))}
.grid.two{grid-template-columns:repeat(2, minmax(0,1fr))}

.card,.panel{
  border-radius:var(--radius);
  background:var(--panel);
  border:1px solid rgba(255,255,255,.07);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  padding:18px;
}

.card h3{margin:0 0 10px; font-size:1.15rem}
.card p{margin:0 0 14px; color:var(--muted)}
.card-link{display:inline-block; font-weight:700; color:var(--gold)}
.card-link:hover{color:var(--gold2)}
.panel h3{margin:0 0 12px}

.list{margin:0; padding-left:18px}
.list li{margin:6px 0}

.muted{color:var(--muted)}
.tiny{font-size:.85rem; color:var(--muted2); margin-top:10px}

.shop-row{display:flex; justify-content:space-between; gap:14px; align-items:flex-start; flex-wrap:wrap}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 16px; border-radius:12px; font-weight:800;
  border:1px solid rgba(255,255,255,.08);
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{transform: translateY(-1px)}
.btn-primary{background:var(--gold); color:#0b0b0c; border-color: rgba(200,184,133,.55)}
.btn-primary:hover{background:var(--gold2)}
.btn-ghost{background:rgba(255,255,255,.03); color:var(--text)}
.btn-ghost:hover{border-color:var(--border)}
.btn-small{padding:9px 14px; font-size:.95rem}

/* Footer */
.site-footer{
  border-top:1px solid rgba(255,255,255,.06);
  padding:24px 0;
  background: rgba(0,0,0,.12);
}
.footer-inner{display:flex; justify-content:space-between; align-items:flex-start; gap:14px; flex-wrap:wrap}
.footer-title{font-weight:900; letter-spacing:1px; color:var(--gold)}
.footer-text{color:var(--muted2); max-width:70ch}
.footer-links{display:flex; gap:14px; align-items:center}
.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--gold)}

/* Responsive */
@media (max-width:900px){
  .hero-inner{grid-template-columns:1fr}
  .grid.cards,.grid.two{grid-template-columns:1fr}
  .section-head{flex-direction:column; align-items:flex-start}
  .nav{display:none}
  .nav-toggle{display:block}
  .nav.nav-open{
    display:flex; position:absolute; right:18px; top:64px;
    flex-direction:column;
    background: rgba(15,15,16,.97);
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:12px;
    box-shadow:var(--shadow);
    min-width:220px;
  }
  .nav.nav-open a{padding:8px 10px}
  .dash-metrics{grid-template-columns:1fr}
}

/* Social */
.social-feed{margin-top:18px}
.instagram-feed{
  width:100%;
  overflow:hidden;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  padding:10px;
}

/* Table */
.table-wrap{width:100%; overflow:auto}
.league-table{width:100%; border-collapse:collapse}
.league-table th,
.league-table td{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
  white-space:nowrap;
}
.league-table th{color:var(--muted2); font-size:.9rem; font-weight:700}
.league-table td.num{text-align:right}
.league-table td.team{text-align:left}
.league-table td.strong{font-weight:800}
.league-table tbody tr:hover{background: rgba(255,255,255,.03)}

.teamcell{display:flex; align-items:center; gap:10px}
.teamlogo{width:22px; height:22px; object-fit:contain; flex:0 0 auto}

/* ELV highlight in table */
.league-table tbody tr.is-elv{
  background: rgba(200,184,133,.14);
  outline: 1px solid rgba(200,184,133,.35);
}
.league-table tbody tr.is-elv td{font-weight:700}
.league-table tbody tr.is-elv td.team span{color: var(--gold)}

.badge-mini{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(200,184,133,.55);
  background: rgba(200,184,133,.12);
  color: var(--gold);
  font-weight:800;
  font-size:.75rem;
  letter-spacing:.6px;
  line-height:1.4;
}

/* Fixtures */
.fixtures-grid{margin-top:16px}
.match-box{margin-top:8px}

.pill{
  display:inline-flex;
  align-items:center;
  padding:3px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight:700;
  font-size:.85rem;
}
.pill.small{font-size:.8rem; padding:2px 8px}

.match-row{display:flex; flex-direction:column; gap:12px}
.match-top{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap}
.match-teams{display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap}
.match-teams.compact{justify-content:flex-start}
.vs{color: var(--muted2); font-weight:800}

.mini-team{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  font-weight:700;
}
.mini-team-elv{
  border-color: rgba(200,184,133,.35);
  background: rgba(200,184,133,.08);
}

.match-bottom{display:flex; align-items:center; gap:10px}

/* Next game highlight + 2 more */
.next-highlight{
  border:1px solid rgba(200,184,133,.45);
  background: rgba(200,184,133,.10);
  border-radius: var(--radius);
  padding:12px;
}

.upcoming-wrap{margin-top:12px}
.upcoming-title{
  color: var(--muted2);
  font-weight:800;
  letter-spacing:.4px;
  margin:4px 0 10px;
}
.upcoming-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.upcoming-item{
  display:grid;
  grid-template-columns:170px 1fr 54px;
  gap:12px;
  align-items:center;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.upcoming-left{display:flex; flex-direction:column; gap:6px}
.upcoming-right{display:flex; justify-content:flex-end}

.ha-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:26px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight:900;
}

/* Last 5 list */
.match-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.match-item{
  display:grid;
  grid-template-columns:170px 1fr 90px;
  gap:12px;
  align-items:center;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.match-item-left{display:flex; flex-direction:column; gap:6px}
.small{font-size:.85rem}
.score{
  font-weight:900;
  letter-spacing:.4px;
  text-align:right;
  display:block;
}
.result-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:24px;
  border-radius:999px;
  font-weight:900;
  margin-left:auto;
  border:1px solid rgba(255,255,255,.10);
}

/* Result colors (subtle) */
.tag-win{background: rgba(46,204,113,.10)}
.tag-draw{background: rgba(241,196,15,.10)}
.tag-loss{background: rgba(231,76,60,.10)}

/* Also reuse for dashboard chips */
.form-chip.tag-win{background: rgba(46,204,113,.10)}
.form-chip.tag-draw{background: rgba(241,196,15,.10)}
.form-chip.tag-loss{background: rgba(231,76,60,.10)}

@media (max-width:700px){
  .upcoming-item{grid-template-columns:1fr}
  .upcoming-right{justify-content:flex-start}
  .match-item{grid-template-columns:1fr}
  .score{text-align:left}
}
