* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, .16), transparent 32rem),
    linear-gradient(135deg, #020617 0%, #07111f 54%, #030712 100%);
  color: #eef6ff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.modern-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.modern-topbar,
.modern-card,
.modern-table-card {
  border: 1px solid rgba(245, 215, 122, .22);
  background: rgba(3, 7, 18, .72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

.modern-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  position: sticky;
  top: 16px;
  z-index: 10;
}

.modern-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.modern-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.modern-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modern-nav a,
.modern-button {
  border: 1px solid rgba(34, 211, 238, .26);
  border-radius: 999px;
  background: rgba(15, 23, 42, .78);
  color: #dff9ff;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.modern-button.primary {
  border-color: rgba(245, 215, 122, .54);
  background: linear-gradient(135deg, #f5d77a, #22d3ee);
  color: #04111f;
}

.modern-hero {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 20px;
  align-items: stretch;
  padding: 42px 0 22px;
}

.modern-card {
  border-radius: 24px;
  padding: 24px;
}

.modern-kicker {
  margin: 0 0 10px;
  color: #f5d77a;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.modern-hero h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 74px);
  line-height: .94;
  text-transform: uppercase;
}

.modern-hero h1 span {
  color: #22d3ee;
}

.modern-muted {
  color: #a9bdd2;
}

.modern-filter {
  display: inline-grid;
  gap: 7px;
  margin-top: 16px;
  color: #f5d77a;
  font-weight: 800;
}

.modern-filter select {
  min-width: 190px;
  height: 42px;
  color: #eef6ff;
  border: 1px solid rgba(34, 211, 238, .32);
  border-radius: 12px;
  background: rgba(15, 23, 42, .88);
  padding: 0 12px;
}

.modern-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.modern-stat {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  padding: 14px;
  background: rgba(8, 13, 27, .72);
}

.modern-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

.modern-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(34, 211, 238, .1);
  color: #c6f7ff;
}

.modern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.modern-deck-card,
.modern-event-row {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  padding: 16px;
  background: rgba(15, 23, 42, .76);
}

.modern-deck-card h3 {
  margin: 8px 0;
  font-size: 21px;
}

.modern-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(245, 215, 122, .14);
  color: #ffeaa6;
  font-size: 12px;
  font-weight: 800;
}

.modern-bars {
  display: grid;
  gap: 16px;
}

.modern-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
}

.modern-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #f5d77a);
}

.modern-events {
  display: grid;
  gap: 12px;
}

.modern-event-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.modern-empty {
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: 18px;
  color: #a9bdd2;
}

@media (max-width: 760px) {
  .modern-topbar,
  .modern-hero,
  .modern-event-row {
    grid-template-columns: 1fr;
  }

  .modern-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .modern-grid,
  .modern-stats {
    grid-template-columns: 1fr;
  }
}
