:root {
  --jlfc-green: #0d5c3b;
  --jlfc-green-deep: #083d27;
  --jlfc-gold: #c8a74b;
  --jlfc-cream: #f3f5f0;
  --jlfc-ink: #17301f;
  --jlfc-maroon: #6b1f2a;
  --jlfc-muted: #6d7c72;
  --jlfc-border: rgba(13, 92, 59, 0.12);
  --jlfc-shadow: 0 20px 45px rgba(8, 61, 39, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--jlfc-ink);
  background: var(--jlfc-cream);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-name,
.page-heading {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.02em;
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(200, 167, 75, 0.18),
      transparent 28%
    ),
    linear-gradient(180deg, #f5f8f2 0%, #edf1ea 100%);
}

.login-body,
.public-body,
.error-body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(200, 167, 75, 0.25),
      transparent 24%
    ),
    radial-gradient(circle at 85% 15%, rgba(13, 92, 59, 0.22), transparent 18%),
    linear-gradient(160deg, #f7f8f2 0%, #eef2ea 100%);
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar-panel {
  width: 290px;
  background: linear-gradient(
    180deg,
    var(--jlfc-green-deep) 0%,
    var(--jlfc-green) 100%
  );
  color: #fff;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--jlfc-shadow);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--jlfc-gold), #f5e0a0);
  color: var(--jlfc-green-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-mark-image {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-logo-preview {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--jlfc-border);
  background: rgba(255, 255, 255, 0.86);
}

.settings-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.navbar-brand-logo,
.hero-pill-logo {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.web-push-prompt {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  width: min(420px, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(13, 92, 59, 0.14);
  box-shadow: var(--jlfc-shadow);
  display: grid;
  gap: 0.85rem;
}

.web-push-prompt-copy p {
  color: var(--jlfc-muted);
  font-size: 0.94rem;
}

.web-push-prompt-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.web-push-prompt-state {
  min-height: 1.1rem;
}

@media (max-width: 767.98px) {
  .web-push-prompt {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 0.75rem;
  }
}

.brand-name {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.brand-subtitle,
.sidebar-section-label,
.eyebrow,
.label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.68);
}

.sidebar-nav {
  gap: 0.4rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  transition: 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sidebar-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sidebar-card-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(245, 248, 242, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 92, 59, 0.08);
}

.page-heading {
  font-size: 2rem;
  line-height: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-meta,
.topbar-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--jlfc-border);
  border-radius: 999px;
  padding: 0.65rem 1rem;
}

.topbar-profile {
  padding-right: 0.7rem;
}

.topbar-profile-name {
  font-weight: 600;
}

.context-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--jlfc-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 35px rgba(8, 61, 39, 0.08);
}

.context-action-bar-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.context-action-bar-copy .eyebrow {
  color: var(--jlfc-muted);
  margin: 0;
}

.context-action-bar-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-jlfc,
.btn-outline-jlfc,
.btn-topbar-icon {
  border-radius: 14px;
}

.btn-jlfc {
  background: linear-gradient(
    135deg,
    var(--jlfc-green),
    var(--jlfc-green-deep)
  );
  border: none;
  color: #fff;
  box-shadow: 0 12px 24px rgba(13, 92, 59, 0.24);
}

.btn-jlfc:hover,
.btn-jlfc:focus {
  color: #fff;
  background: linear-gradient(135deg, #0e6742, #072d1d);
}

.btn-outline-jlfc {
  border: 1px solid rgba(13, 92, 59, 0.22);
  color: var(--jlfc-green-deep);
  background: rgba(255, 255, 255, 0.92);
}

.btn-outline-jlfc:hover,
.btn-outline-jlfc:focus {
  color: #fff;
  background: var(--jlfc-green);
  border-color: var(--jlfc-green);
}

.btn-topbar-icon {
  border: 1px solid var(--jlfc-border);
  background: rgba(255, 255, 255, 0.92);
}

.admin-content {
  flex: 1;
  padding-top: 0.25rem !important;
}

.hero-banner,
.panel-card,
.metric-card,
.public-stat-card,
.hero-card,
.public-badge-card,
.error-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--jlfc-shadow);
}

.hero-banner {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
}

.hero-banner h2,
.hero-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.hero-banner-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-pill {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(13, 92, 59, 0.1);
  color: var(--jlfc-green-deep);
  font-weight: 700;
}

.metric-card,
.panel-card,
.public-stat-card {
  padding: 1.5rem;
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -28% auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 167, 75, 0.26),
    transparent 68%
  );
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(13, 92, 59, 0.1);
  color: var(--jlfc-green);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.metric-label,
.public-stat-card span {
  display: block;
  color: var(--jlfc-muted);
}

.metric-value,
.public-stat-card strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  margin: 0.35rem 0 0.4rem;
}

.panel-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.traffic-chart {
  min-height: 220px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26px, 1fr));
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(13, 92, 59, 0.05);
}

.traffic-chart-bar-wrap {
  display: flex;
  min-height: 188px;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 0.45rem;
}

.traffic-chart-value,
.traffic-chart-label {
  font-size: 0.72rem;
  color: var(--jlfc-muted);
}

.traffic-chart-bar {
  width: 100%;
  min-height: 8px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #c8a74b 0%, #0d5c3b 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.page-share-list {
  display: grid;
  gap: 1rem;
}

.page-share-item {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(13, 92, 59, 0.05);
}

.page-share-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(13, 92, 59, 0.1);
  overflow: hidden;
}

.page-share-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d5c3b 0%, #114e7c 100%);
}

.feature-tile {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(13, 92, 59, 0.05);
  border-radius: 18px;
  height: 100%;
}

.feature-tile i {
  font-size: 1.4rem;
  color: var(--jlfc-green);
}

.license-scanner-panel {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(13, 92, 59, 0.05);
}

.license-scanner-reader {
  min-height: 260px;
  border: 2px dashed rgba(13, 92, 59, 0.25);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(13, 92, 59, 0.04),
    rgba(200, 167, 75, 0.09)
  );
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--jlfc-muted);
  padding: 1rem;
}

.license-scanner-reader video {
  width: 100% !important;
  border-radius: 16px;
}

.license-scanner-hit {
  box-shadow: inset 0 0 0 2px rgba(13, 92, 59, 0.22);
}

.public-home-hero {
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(200, 167, 75, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at 85% 10%,
      rgba(255, 255, 255, 0.12),
      transparent 22%
    ),
    linear-gradient(135deg, #0a3a25 0%, #0d5c3b 58%, #114e7c 100%);
}

.public-badge-hero-card {
  background: rgba(6, 23, 15, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-quick-stats div {
  padding: 0.8rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.hero-quick-stats strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
}

.hero-quick-stats span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.next-matches-strip {
  margin-top: 2rem;
}

.match-card {
  height: 100%;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(241, 246, 241, 0.96) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 34px rgba(8, 61, 39, 0.16);
}

.homepage-match-card {
  padding: 0.8rem;
}

.match-card-top,
.match-card-meta,
.news-home-meta,
.standing-row,
.scorer-row {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: center;
}

.match-status-pill {
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  background: rgba(13, 92, 59, 0.08);
  color: var(--jlfc-green-deep);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.match-card-stage {
  margin-top: 0.18rem;
  color: var(--jlfc-muted);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.25;
}

.match-card-body {
  padding: 0.65rem 0;
}

.match-card-countdown,
.match-card-note {
  margin-top: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 14px;
  background: rgba(13, 92, 59, 0.08);
  color: var(--jlfc-green-deep);
}

.match-card-countdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.match-card-countdown strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.9rem;
  color: #000;
}

.match-card-note {
  font-size: 0.72rem;
  line-height: 1.4;
}

.club-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.club-line span {
  font-weight: 700;
  font-size: 0.72rem;
}

.club-line strong,
.match-vs,
.scorer-goals,
.standing-rank,
.standing-points strong {
  font-family: "Barlow Condensed", sans-serif;
}

.club-line strong {
  font-size: 0.92rem;
  color: var(--jlfc-green);
}

.club-line-with-logo {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}

.club-logo-chip {
  width: 34px;
  height: 34px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(107, 31, 42, 0.1);
  border: 1px solid rgba(107, 31, 42, 0.14);
}

.club-logo-chip img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.club-logo-chip span {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.8rem;
  line-height: 1;
  color: var(--jlfc-maroon);
}

.next-matches-strip .club-line span,
.next-matches-strip .club-line strong {
  color: var(--jlfc-maroon);
}

.public-fixture-team {
  color: var(--jlfc-maroon);
}

.match-vs {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.35rem 0;
  color: var(--jlfc-gold);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.match-card-meta {
  flex-direction: column;
  align-items: flex-start;
  color: var(--jlfc-muted);
  font-size: 0.68rem;
}

.match-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.match-card-actions .btn {
  font-size: 0.68rem;
  padding: 0.35rem 0.55rem;
}

.homepage-match-card .eyebrow {
  font-size: 0.58rem;
}

.match-share-wrap {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.match-share-preview-shell {
  position: relative;
  width: min(100%, 480px);
  display: flex;
  justify-content: center;
}

.match-share-download-card {
  position: relative;
  display: grid;
  gap: 0;
  width: 480px;
  max-width: none;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  font-family: "Barlow Condensed", sans-serif;
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(255, 255, 255, 0.88),
      rgba(255, 255, 255, 0) 28%
    ),
    linear-gradient(180deg, #145ea2 0%, #0b4f93 34%, #0a6f45 72%, #0d6738 100%);
  box-shadow: 0 28px 56px rgba(8, 61, 39, 0.22);
}

.match-share-download-card::before,
.match-share-download-card::after {
  content: "";
  position: absolute;
  top: 1rem;
  width: 46%;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.18) 36%,
    rgba(255, 255, 255, 0) 72%
  );
  filter: blur(2px);
  pointer-events: none;
}

.match-share-download-card::before {
  left: -12%;
}

.match-share-download-card::after {
  right: -12%;
}

.match-share-poster-top {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem 1rem;
  text-align: center;
  color: #fff;
}

.match-share-poster-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.match-share-poster-title {
  margin: 0.35rem 0 0;
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  line-height: 0.88;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 4px 0 rgba(5, 67, 129, 0.9),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.match-share-poster-subtitle {
  margin-top: 0.55rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.match-share-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.25rem 10rem;
  border-radius: 0;
  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0) 30%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(5, 55, 32, 0.08) 100%);
  color: #fff;
}

.match-share-ribbon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.match-share-ribbon-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.25rem 0.3rem;
  text-align: center;
}

.match-share-ribbon-side-away {
  justify-content: flex-start;
}

.match-share-ribbon-logo {
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  flex-shrink: 0;
}

.match-share-ribbon-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.match-share-ribbon-logo span {
  font-size: 1.2rem;
  line-height: 1;
  color: #fff;
}

.match-share-ribbon-team {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.match-share-ribbon-label {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.match-share-ribbon-team-name {
  display: block;
  max-width: 150px;
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  word-break: break-word;
}

.match-share-ribbon-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 112px;
  padding: 0.55rem 1rem 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 72%, #d8d8d8 100%);
  color: #0b0d10;
  clip-path: polygon(12% 0, 88% 0, 100% 28%, 92% 100%, 8% 100%, 0 28%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.match-share-ribbon-center-label {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(11, 13, 16, 0.62);
}

.match-share-ribbon-center-score {
  display: block;
  font-size: 2.9rem;
  line-height: 0.9;
  color: #111;
}

.match-share-ribbon-center-stage {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 13, 16, 0.62);
}

.match-share-venue-block {
  margin: 1.5rem auto 0;
  max-width: 320px;
  text-align: center;
}

.match-share-venue-title {
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
}

.match-share-venue-divider {
  position: relative;
  width: 100%;
  height: 12px;
  margin: 0.55rem auto 0.8rem;
}

.match-share-venue-divider::before,
.match-share-venue-divider::after {
  content: "";
  position: absolute;
  top: 5px;
  width: calc(50% - 18px);
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
}

.match-share-venue-divider::before {
  left: 0;
}

.match-share-venue-divider::after {
  right: 0;
}

.match-share-venue-time {
  font-size: 3rem;
  line-height: 0.9;
  color: #ffffff;
}

.match-share-venue-meta {
  margin-top: 0.35rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.match-share-scorers {
  position: relative;
  z-index: 1;
  margin-top: 1.4rem;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  background: rgba(4, 19, 12, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.match-share-scorers-title {
  margin-bottom: 0.65rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.match-share-scorers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.match-share-scorers-team {
  min-width: 0;
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.match-share-scorers-team-away {
  text-align: right;
}

.match-share-scorers-team-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.match-share-scorers-list {
  margin-top: 0.4rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.match-share-lineups {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(4, 19, 12, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.match-share-lineups-title {
  margin-bottom: 0.7rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.match-share-lineups-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.match-share-lineup-card {
  padding: 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.match-share-lineup-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.match-share-lineup-head strong {
  color: #ffffff;
  font-size: 0.98rem;
}

.match-share-lineup-head span {
  font-family: "DM Sans", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.match-share-lineup-section-label {
  margin-top: 0.65rem;
  margin-bottom: 0.4rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4df97;
}

.match-share-lineup-list {
  margin: 0;
  padding-left: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
}

.match-share-lineup-list li + li {
  margin-top: 0.14rem;
}

.match-share-lineup-list-substitutes {
  color: rgba(255, 255, 255, 0.74);
}

.match-share-formations {
  position: relative;
  z-index: 1;
  margin-top: 1.75rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(8, 31, 19, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.match-share-formations-title {
  margin-bottom: 0.65rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.match-share-formations-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.match-share-formation-item {
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.match-share-formation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.match-share-formation-club-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.match-share-formation-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.match-share-formation-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-share-formation-logo span {
  font-size: 1rem;
  line-height: 1;
  color: #f4df97;
}

.match-share-formation-club {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.94);
}

.match-share-formation-source {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
}

.match-share-formation-shape {
  font-size: 1.7rem;
  line-height: 1;
  color: #f4df97;
}

.match-share-formation-note {
  margin: 0.55rem 0 0;
  font-family: "DM Sans", sans-serif;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.74);
}

.match-share-formation-lineup-meta {
  margin-top: 0.6rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.71rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.74);
}

.match-share-formation-lineup-meta strong {
  color: #f4df97;
}

.match-share-formation-lineup-meta span {
  display: block;
  margin-top: 0.15rem;
}

.match-share-pitch-markings {
  position: absolute;
  left: 50%;
  bottom: -110px;
  width: 135%;
  height: 220px;
  transform: translateX(-50%);
  border: 10px solid rgba(255, 255, 255, 0.92);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  opacity: 0.95;
  pointer-events: none;
}

.match-share-pitch-markings::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.92);
}

.match-formations-section {
  display: grid;
  gap: 1rem;
}

.match-formation-card {
  height: 100%;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(13, 58, 39, 0.06),
    rgba(107, 31, 42, 0.08)
  );
  border: 1px solid rgba(17, 73, 50, 0.12);
}

.match-formation-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(17, 73, 50, 0.1);
  color: #114932;
  flex-shrink: 0;
}

.match-formation-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-formation-logo span {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  line-height: 1;
}

.match-formation-shape {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  color: #6b1f2a;
}

@media (max-width: 575.98px) {
  .match-share-preview-shell {
    width: 100%;
  }

  .match-share-formations-grid {
    grid-template-columns: 1fr;
  }

  .match-share-lineups-grid {
    grid-template-columns: 1fr;
  }

  .match-share-scorers-grid {
    grid-template-columns: 1fr;
  }

  .match-share-scorers-team-away {
    text-align: left;
  }
}

.standings-rail {
  top: 1.5rem;
}

.standings-list,
.scorers-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.standing-row,
.scorer-row {
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
  background: rgba(13, 92, 59, 0.05);
  align-items: center;
}

.standing-rank,
.scorer-rank {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(13, 92, 59, 0.12);
  color: var(--jlfc-green-deep);
  font-size: 1.15rem;
}

.standing-club,
.scorer-player {
  flex: 1;
  min-width: 0;
}

.standing-club strong,
.scorer-player strong {
  display: block;
}

.standing-club span,
.scorer-player span,
.standing-points span {
  display: block;
  color: var(--jlfc-muted);
  font-size: 0.82rem;
}

.standing-points {
  text-align: right;
}

.standing-points strong {
  font-size: 1.45rem;
  line-height: 1;
}

.news-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.news-home-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(13, 92, 59, 0.04);
  border: 1px solid rgba(13, 92, 59, 0.08);
}

.news-home-card-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.news-home-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.news-home-copy {
  padding: 1.2rem;
}

.news-home-meta {
  flex-wrap: wrap;
  color: var(--jlfc-muted);
  font-size: 0.9rem;
}

.floating-utility {
  position: fixed;
  bottom: 1.4rem;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(8, 61, 39, 0.24);
  font-weight: 700;
}

.floating-utility i {
  font-size: 1.15rem;
}

.floating-utility-left {
  left: 1rem;
  background: linear-gradient(135deg, var(--jlfc-gold), #f4df97);
  color: var(--jlfc-green-deep);
}

.floating-utility-right {
  right: 1rem;
  background: linear-gradient(
    135deg,
    var(--jlfc-green),
    var(--jlfc-green-deep)
  );
  color: #fff;
}

.floating-utility:hover,
.floating-utility:focus {
  color: inherit;
  transform: translateY(-1px);
}

.scorers-canvas {
  background: #f7f8f2;
}

.login-canvas {
  background:
    radial-gradient(
      circle at top right,
      rgba(200, 167, 75, 0.18),
      transparent 24%
    ),
    linear-gradient(180deg, #f7f8f2 0%, #eef2ea 100%);
}

.login-canvas-form {
  padding: 1.1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(13, 92, 59, 0.08);
  box-shadow: 0 18px 32px rgba(8, 61, 39, 0.08);
}

.login-canvas-meta {
  display: grid;
  gap: 0.85rem;
}

.login-canvas-meta > div {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(13, 92, 59, 0.05);
}

.login-canvas-meta strong {
  display: block;
}

.scorer-goals {
  min-width: 42px;
  text-align: right;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--jlfc-green);
}

@media (max-width: 1199.98px) {
  .standings-rail {
    position: static !important;
  }
}

@media (max-width: 991.98px) {
  .news-home-grid,
  .news-home-card-featured {
    grid-template-columns: 1fr;
  }

  .news-home-card-featured {
    grid-column: auto;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .floating-utility {
    bottom: 1rem;
    padding: 0.8rem 0.9rem;
  }

  .floating-utility span {
    display: none;
  }

  .hero-quick-stats {
    grid-template-columns: 1fr;
  }

  .homepage-match-rail,
  .homepage-stats-rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.85rem 0;
    padding-bottom: 0.35rem;
    margin-right: 0;
    margin-left: 0;
    scroll-snap-type: x proximity;
  }

  .club-line-with-logo {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .club-logo-chip {
    width: 30px;
    height: 30px;
  }

  .homepage-match-rail > *,
  .homepage-stats-rail > * {
    scroll-snap-align: start;
  }

  .homepage-match-card-col {
    width: 190px;
    min-width: 190px;
    padding-left: 0;
    padding-right: 0;
  }

  .homepage-stat-col {
    width: 190px;
    min-width: 190px;
    padding-left: 0;
    padding-right: 0;
  }

  .public-stat-card,
  .match-card {
    min-height: 100%;
  }

  .match-share-top,
  .match-share-body,
  .match-share-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .match-share-score {
    align-self: center;
  }
}

.feature-tile h4 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.feature-tile p {
  margin-bottom: 0;
  color: var(--jlfc-muted);
}

.status-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: rgba(13, 92, 59, 0.05);
  border-radius: 16px;
}

.badge-soft-success {
  color: #0d5c3b;
  background: rgba(13, 92, 59, 0.13);
}

.badge-soft-danger {
  color: #9d2f2f;
  background: rgba(157, 47, 47, 0.12);
}

.admin-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--jlfc-border);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(320px, 1fr);
}

.login-panel,
.login-aside {
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-panel {
  background: rgba(255, 255, 255, 0.9);
}

.login-panel > * {
  width: min(100%, 420px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--jlfc-green),
    var(--jlfc-green-deep)
  );
  color: #fff;
  box-shadow: 0 15px 30px rgba(13, 92, 59, 0.25);
}

.login-form .form-control {
  border-radius: 16px;
  border-color: rgba(13, 92, 59, 0.14);
  padding: 0.9rem 1rem;
}

.login-form .form-control:focus {
  border-color: rgba(13, 92, 59, 0.35);
  box-shadow: 0 0 0 0.25rem rgba(13, 92, 59, 0.12);
}

.login-help {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.login-help > div {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(13, 92, 59, 0.05);
}

.login-help strong {
  display: block;
  margin-top: 0.35rem;
}

.hero-card,
.public-badge-card {
  background: linear-gradient(
    180deg,
    rgba(8, 61, 39, 0.96),
    rgba(13, 92, 59, 0.94)
  );
  color: #fff;
  padding: 2rem;
}

.public-transfer-countdown,
.public-transfer-countdown .eyebrow,
.public-transfer-countdown .small,
.public-transfer-countdown strong,
.public-transfer-countdown [data-transfer-countdown-value] {
  color: #000;
}

.public-transfer-countdown-date {
  color: #000;
  opacity: 1;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-metrics strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
}

.public-hero {
  background:
    linear-gradient(135deg, rgba(8, 61, 39, 0.95), rgba(13, 92, 59, 0.92)),
    radial-gradient(
      circle at top right,
      rgba(200, 167, 75, 0.25),
      transparent 22%
    );
  color: #fff;
}

.public-hero .navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  background: rgba(8, 61, 39, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.public-stat-card {
  text-align: center;
}

.error-card {
  max-width: 520px;
  padding: 2rem;
  text-align: center;
}

.error-code {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--jlfc-green);
  margin-bottom: 1rem;
}

.flash-stack .alert {
  border-radius: 16px;
}

@media (max-width: 991.98px) {
  .sidebar-panel {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: min(290px, 84vw);
  }

  .sidebar-panel.is-open {
    transform: translateX(0);
  }

  .admin-shell {
    display: block;
  }

  .topbar-panel,
  .admin-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .topbar-panel,
  .admin-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .context-action-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .login-help,
  .hero-metrics {
    grid-template-columns: 1fr;
  }
}
