@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --bg:        #080C10;
  --surface:   #0E1419;
  --surface2:  #141C24;
  --border:    #1E2A36;
  --border2:   #243040;
  --text:      #D6E4F0;
  --muted:     #6B8299;
  --accent:    #3B9EFF;
  --accent2:   #1D6FBF;
  --green:     #22C55E;
  --red:       #EF4444;
  --amber:     #F59E0B;
  --purple:    #818CF8;
  --mono:      'DM Mono', monospace;
  --sans:      'DM Sans', sans-serif;
  --display:   'Syne', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 72px;
  overflow-x: hidden;
  min-height: 100vh;
}

/* subtle grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,158,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,158,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  height: 60px;
  background: rgba(8,12,16,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-left { display: flex; align-items: center; gap: 20px; }
.nav-right { display: flex; align-items: center; gap: 4px; }

.nav-logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  color: var(--text) !important;
  text-decoration: none !important;
}

.nav-logo span { color: var(--accent); }

.nav-link {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 400;
  color: var(--muted) !important;
  text-decoration: none !important;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text) !important;
  background: var(--surface2);
  border-color: var(--border);
}

.nav-link.active-nav {
  color: var(--accent) !important;
  background: rgba(59,158,255,.08);
  border-color: rgba(59,158,255,.2);
}

.nav-coffee {
  font-size: .78rem;
  font-weight: 600;
  background: #FFDD00;
  color: #000 !important;
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: opacity .15s;
  white-space: nowrap;
}
.nav-coffee:hover { opacity: .85; }

/* ── FOOTER ── */
footer {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: rgba(8,12,16,.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: .72rem;
  color: var(--muted);
  z-index: 99;
}

footer a {
  color: var(--accent) !important;
  text-decoration: none !important;
  transition: opacity .15s;
}
footer a:hover { opacity: .7; }

/* ── LINKS ── */
a { color: var(--accent); text-decoration: none; }
a:visited { color: var(--accent); }

/* ── FILTERS ── */
.filters-container {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 24px 32px 8px;
}

.league-select,
.search-input {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: .82rem;
  outline: none;
  transition: border-color .15s;
}

.league-select:focus,
.search-input:focus { border-color: var(--accent); }
.search-input { flex: 1; max-width: 220px; }
.search-input::placeholder { color: var(--muted); }

/* ── MATCH GRID ── */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 32px 32px;
  position: relative;
  z-index: 1;
}

/* ── MATCH CARD ── */
.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 16px 14px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color .2s, transform .2s, background .2s;
  position: relative;
  overflow: hidden;
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .2s;
}

.match-card:hover {
  border-color: var(--border2);
  background: var(--surface2);
  transform: translateY(-2px);
}

.match-card:hover::before { opacity: 1; }

.league-badge {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(59,158,255,.08);
  border: 1px solid rgba(59,158,255,.15);
  padding: 2px 8px;
  border-radius: 4px;
}

/* keep old .league class working */
.league { color: var(--accent); font-size: .82rem; }

.match-crests-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0;
}

.crest-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.4));
}

.teams {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.match-meta {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
}

.match-score-display {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
}

.match-winner {
  font-size: .78rem;
  color: var(--green);
  font-weight: 500;
}

.match-draw { color: var(--amber); }

.odds-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.odd-pill {
  font-family: var(--mono);
  font-size: .7rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.odd-pill span { color: var(--text); font-weight: 500; }

/* ── SHARE BTN ── */
.share-btn {
  margin-top: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: .72rem;
  font-family: var(--sans);
  transition: border-color .15s, color .15s;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── LIVE badge ── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.live-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: 3px;
  animation: pulse 1.2s ease-in-out infinite;
}

/* ── DASHBOARD ── */
.page-header {
  padding: 32px 32px 0;
  position: relative;
  z-index: 1;
}

.page-title {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.page-subtitle {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 4px;
}

.dashboard-table {
  width: calc(100% - 64px);
  margin: 24px 32px;
  border-collapse: collapse;
  position: relative;
  z-index: 1;
}

.dashboard-table thead tr {
  border-bottom: 1px solid var(--border);
}

.dashboard-table th {
  padding: 10px 14px;
  text-align: left;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dashboard-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}

.dashboard-table tbody tr {
  transition: background .15s;
}

.dashboard-table tbody tr:hover {
  background: var(--surface2);
}

.profit { color: var(--green); font-weight: 500; }
.loss   { color: var(--red);   font-weight: 500; }

.agent-name-link {
  font-family: var(--display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text) !important;
  text-decoration: none !important;
  transition: color .15s;
}
.agent-name-link:hover { color: var(--accent) !important; }

.balance-value {
  font-family: var(--mono);
  font-size: .85rem;
}

.streak-badge {
  font-family: var(--mono);
  font-size: .72rem;
  background: rgba(129,140,248,.1);
  border: 1px solid rgba(129,140,248,.2);
  color: var(--purple);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ── MATCH DETAIL ── */
.match-detail-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px;
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted) !important;
  font-size: .82rem;
  text-decoration: none !important;
  margin-bottom: 24px;
  transition: color .15s;
}
.back-link:hover { color: var(--text) !important; }

.match-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.match-detail-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,158,255,.06), transparent 60%);
  pointer-events: none;
}

.match-detail-crests {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0;
}

.match-detail-crest {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

.match-detail-score {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.04em;
  margin: 8px 0 4px;
}

.match-detail-winner {
  font-size: .85rem;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 4px;
}

.match-detail-odds {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

/* ── CONSENSUS ── */
.consensus-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.consensus-title {
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
}

.consensus-bar-container { margin-bottom: 12px; }

.consensus-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
}

.consensus-bar-bg {
  background: var(--surface2);
  border-radius: 3px;
  height: 6px;
  overflow: hidden;
}

.consensus-bar-home { background: var(--accent); height: 6px; border-radius: 3px; transition: width .5s; }
.consensus-bar-draw { background: var(--amber);  height: 6px; border-radius: 3px; transition: width .5s; }
.consensus-bar-away { background: var(--green);  height: 6px; border-radius: 3px; transition: width .5s; }

/* ── SECTION TITLES ── */
.section-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── BET TABLE EXTRAS ── */
.bet-prediction { color: var(--accent); font-family: var(--mono); font-size: .78rem; font-weight: 500; }
.bet-reasoning  { color: var(--muted); font-size: .78rem; max-width: 260px; }
.no-predictions { text-align: center; color: var(--muted); padding: 32px; font-size: .9rem; }

/* ── FAQ / PRIVACY ── */
.content-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 32px;
  position: relative;
  z-index: 1;
}

.content-title {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 32px;
  letter-spacing: -.02em;
}

.content-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.content-section:last-child { border-bottom: none; }

.content-section h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.content-section p {
  color: var(--text);
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.content-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.content-section ul li {
  font-size: .88rem;
  color: var(--text);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.content-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
}

.faq-agent-name { color: var(--accent); font-weight: 500; }

.formula-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--text);
  margin: 12px 0;
}

/* ── ERROR PAGES ── */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 132px);
  text-align: center;
  padding: 32px;
  position: relative;
  z-index: 1;
}

.error-code {
  font-family: var(--display);
  font-size: 6rem;
  font-weight: 800;
  color: var(--border2);
  line-height: 1;
  letter-spacing: -.04em;
  position: relative;
}

.error-code span {
  color: var(--accent);
  position: relative;
}

.error-title {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 12px 0 8px;
}

.error-desc {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 28px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg) !important;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 7px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: #5BAEFF; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  color: var(--text) !important;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 7px;
  text-decoration: none !important;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.btn-secondary:hover { border-color: var(--border2); background: var(--surface); }

/* ── HOME PAGE ── */
.hero {
  min-height: calc(100vh - 60px - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 32px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(59,158,255,.2);
  background: rgba(59,158,255,.06);
  padding: 4px 14px;
  border-radius: 20px;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 20px;
}

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

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
}

.stat-label {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── SHARE MODAL ── */
.share-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 200;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.share-modal-overlay.active { display: flex; }

.share-modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 28px;
  max-width: 420px;
  width: 92%;
  text-align: center;
}

.share-modal h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.share-modal p {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.share-link-box { display: flex; gap: 8px; margin-bottom: 12px; }

.share-link-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: .78rem;
  outline: none;
}

.share-copy-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: .82rem;
  white-space: nowrap;
  transition: background .15s;
}
.share-copy-btn:hover { background: #5BAEFF; }

.share-close-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: .82rem;
  transition: border-color .15s, color .15s;
}
.share-close-btn:hover { border-color: var(--border2); color: var(--text); }

/* ── AGENT PAGE ── */
.agent-header {
  padding: 32px 32px 0;
  position: relative;
  z-index: 1;
}

.agent-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  margin-top: 16px;
}

/* ── AGENT CARDS ── */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 24px 32px 32px;
  position: relative;
  z-index: 1;
}

.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s, background .2s, transform .2s;
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .2s;
}

.agent-card:hover {
  border-color: var(--border2);
  background: var(--surface2);
  transform: translateY(-2px);
}

.agent-card:hover::before { opacity: 1; }

.agent-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.agent-card-rank {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
}

.agent-card-name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
}

.agent-card-balance {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.agent-card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.agent-stat {
  text-align: center;
}

.agent-stat-value {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
}

.agent-stat-label {
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .agents-grid {
    grid-template-columns: 1fr;
    padding: 12px 16px 24px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-card {
  animation: fadeInUp .35s ease both;
}

.matches-grid .match-card:nth-child(1)  { animation-delay: .03s; }
.matches-grid .match-card:nth-child(2)  { animation-delay: .06s; }
.matches-grid .match-card:nth-child(3)  { animation-delay: .09s; }
.matches-grid .match-card:nth-child(4)  { animation-delay: .12s; }
.matches-grid .match-card:nth-child(5)  { animation-delay: .15s; }
.matches-grid .match-card:nth-child(6)  { animation-delay: .18s; }
.matches-grid .match-card:nth-child(7)  { animation-delay: .21s; }
.matches-grid .match-card:nth-child(8)  { animation-delay: .24s; }
.matches-grid .match-card:nth-child(9)  { animation-delay: .27s; }
.matches-grid .match-card:nth-child(10) { animation-delay: .30s; }
.matches-grid .match-card:nth-child(11) { animation-delay: .33s; }
.matches-grid .match-card:nth-child(12) { animation-delay: .36s; }

.agent-card {
  animation: fadeInUp .35s ease both;
}

.agents-grid .agent-card:nth-child(1)  { animation-delay: .03s; }
.agents-grid .agent-card:nth-child(2)  { animation-delay: .07s; }
.agents-grid .agent-card:nth-child(3)  { animation-delay: .11s; }
.agents-grid .agent-card:nth-child(4)  { animation-delay: .15s; }
.agents-grid .agent-card:nth-child(5)  { animation-delay: .19s; }
.agents-grid .agent-card:nth-child(6)  { animation-delay: .23s; }
.agents-grid .agent-card:nth-child(7)  { animation-delay: .27s; }
.agents-grid .agent-card:nth-child(8)  { animation-delay: .31s; }
.agents-grid .agent-card:nth-child(9)  { animation-delay: .35s; }
.agents-grid .agent-card:nth-child(10) { animation-delay: .39s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .nav-right { gap: 2px; }
  .nav-link { padding: 5px 8px; font-size: .75rem; }

  .matches-grid {
    grid-template-columns: 1fr;
    padding: 12px 16px 24px;
    gap: 12px;
  }

  .filters-container { padding: 16px 16px 8px; }

  .dashboard-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    width: calc(100% - 32px);
    margin: 16px;
  }

  .match-detail-container { padding: 16px; }
  .content-container { padding: 24px 16px; }
  .page-header { padding: 24px 16px 0; }
  .agent-header { padding: 16px 16px 0; }

  .hero-stats { gap: 20px; }
  .hero-title { font-size: 2.4rem; }

  footer { padding: 10px 16px; font-size: .68rem; flex-wrap: wrap; gap: 8px; }
}