:root {
  --bg: #141913;
  --bg-deep: #0d110c;
  --ink: #e7eadf;
  --olive: #6f7f3f;
  --olive-dark: #4e5b2f;
  --sand: #afb7a1;
  --card: rgba(23, 30, 22, 0.86);
  --accent: #9d5d2f;
  --border: #5a6453;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(220px 170px at 12% 16%, rgba(104, 120, 78, 0.32) 0%, transparent 70%),
    radial-gradient(260px 190px at 84% 22%, rgba(71, 81, 58, 0.44) 0%, transparent 72%),
    radial-gradient(300px 210px at 18% 76%, rgba(91, 67, 41, 0.28) 0%, transparent 70%),
    radial-gradient(260px 200px at 86% 84%, rgba(55, 65, 47, 0.4) 0%, transparent 70%),
    linear-gradient(155deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      25deg,
      rgba(17, 23, 15, 0.24) 0,
      rgba(17, 23, 15, 0.24) 10px,
      rgba(38, 46, 32, 0.14) 10px,
      rgba(38, 46, 32, 0.14) 22px
    ),
    repeating-linear-gradient(
      -35deg,
      rgba(70, 57, 39, 0.08) 0,
      rgba(70, 57, 39, 0.08) 14px,
      transparent 14px,
      transparent 28px
    );
  mix-blend-mode: multiply;
  opacity: 0.82;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  backdrop-filter: blur(8px);
  background: rgba(14, 18, 13, 0.76);
  border-bottom: 1px solid rgba(130, 145, 114, 0.28);
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
}

.top-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
  border: 1px solid rgba(130, 145, 114, 0.3);
  border-radius: 999px;
  background: rgba(32, 40, 30, 0.8);
}

.top-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}

.top-tab-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.top-tab-link:hover {
  background: rgba(111, 127, 63, 0.18);
}

.top-tab.active {
  background: linear-gradient(120deg, var(--olive) 0%, var(--olive-dark) 100%);
  color: #fff;
}

.header-player-name {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(130, 145, 114, 0.45);
  background: rgba(32, 40, 30, 0.82);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}

.header-user-menu {
  position: relative;
}

.header-player-name:hover,
.header-player-name[aria-expanded="true"] {
  background: rgba(46, 57, 42, 0.92);
}

.header-player-caret {
  font-size: 0.78rem;
  opacity: 0.8;
}

.header-user-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 180px;
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid rgba(130, 145, 114, 0.28);
  background: rgba(20, 26, 19, 0.96);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.header-user-dropdown-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: rgba(132, 64, 45, 0.2);
  color: var(--ink);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.header-user-dropdown-btn + .header-user-dropdown-btn {
  margin-top: 0.35rem;
}

.header-user-dropdown-btn.profile {
  background: rgba(111, 127, 63, 0.22);
}

.header-user-dropdown-btn:hover {
  background: rgba(132, 64, 45, 0.34);
}

.header-user-dropdown-btn.profile:hover {
  background: rgba(111, 127, 63, 0.36);
}

main {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.page-tab-panel {
  animation: panel-enter 0.35s ease;
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 3rem;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 1rem;
  width: min(350px, 34vw);
  height: min(350px, 34vw);
  border-radius: 12px;
  border: 1px solid rgba(136, 150, 121, 0.36);
  background:
    linear-gradient(rgba(20, 24, 17, 0.68), rgba(20, 24, 17, 0.68)),
    url("https://images.pexels.com/photos/30396789/pexels-photo-30396789.jpeg?auto=compress&cs=tinysrgb&w=1200&q=80");
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 8%, 84% 0, 100% 26%, 100% 100%, 0 100%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  color: #a7b59a;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.92;
  max-width: 10ch;
  margin-top: 0.25rem;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 62ch;
  margin: 1rem 0;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  position: relative;
  z-index: 1;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.8rem 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--olive) 0%, var(--olive-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 25px rgba(63, 75, 35, 0.22);
}

.btn-ghost {
  background: rgba(27, 35, 26, 0.64);
  border-color: #6d7765;
  color: var(--ink);
}

.btn-danger {
  background: linear-gradient(120deg, #cc2936 0%, #9b1f2a 100%);
  color: #fff;
  box-shadow: 0 12px 25px rgba(204, 41, 54, 0.22);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.8rem;
  position: relative;
  z-index: 1;
}

.hero-metrics article,
.stats-grid article,
.event-card,
.auth-box,
.dashboard-box,
.cta-strip {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.hero-metrics article,
.stats-grid article {
  padding: 0.9rem;
}

.value {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.value.small {
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.label {
  font-size: 0.9rem;
  color: #b3bcab;
}

.section {
  padding: 1.2rem 0 2.2rem;
}

.section-head {
  margin-bottom: 0.8rem;
}

.section-head h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 6vw, 3.3rem);
}

.section-head.compact h2 {
  font-size: 2.1rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.9rem;
}

.intro-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  min-height: 220px;
}

.intro-main {
  padding: 1rem;
}

.intro-main h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.55rem;
}

.intro-main p {
  margin-top: 0;
}

.intro-list {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.intro-photo {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.photo-a,
.photo-b {
  background-size: cover;
  background-position: center;
}

.photo-a {
  background-image:
    linear-gradient(rgba(25, 26, 20, 0.35), rgba(25, 26, 20, 0.78)),
    url("https://images.pexels.com/photos/5323839/pexels-photo-5323839.jpeg?auto=compress&cs=tinysrgb&w=1200&q=80");
}

.photo-b {
  background-image:
    linear-gradient(rgba(25, 26, 20, 0.3), rgba(25, 26, 20, 0.78)),
    url("https://images.pexels.com/photos/30042212/pexels-photo-30042212.jpeg?auto=compress&cs=tinysrgb&w=1200&q=80");
}

.photo-overlay {
  padding: 1rem;
  color: #f5f1e7;
  background: linear-gradient(0deg, rgba(22, 24, 16, 0.72) 0%, rgba(22, 24, 16, 0) 100%);
}

.photo-overlay h3 {
  margin-bottom: 0.25rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  font-size: 1.7rem;
}

.photo-overlay p {
  margin: 0;
}

.brief-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.brief-strip article {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 0.9rem;
  background: rgba(27, 35, 26, 0.78);
}

.brief-strip h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.brief-strip p {
  margin: 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.85rem;
}

.event-card {
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.match-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 1rem;
}

.match-filter {
  border: 1px solid rgba(130, 145, 114, 0.34);
  border-radius: 999px;
  background: rgba(27, 35, 26, 0.72);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.match-filter.active,
.match-filter:hover {
  background: rgba(111, 127, 63, 0.42);
  border-color: rgba(167, 181, 154, 0.58);
}

.event-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.event-price {
  color: #e8dccb;
  font-weight: 900;
}

.event-capacity {
  display: grid;
  gap: 0.35rem;
}

.event-capacity-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #b5bcac;
  font-size: 0.82rem;
  font-weight: 800;
}

.event-capacity-track,
.rank-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(11, 15, 10, 0.76);
  border: 1px solid rgba(130, 145, 114, 0.16);
}

.event-capacity-bar,
.rank-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #81934b 0%, #b08b4a 100%);
}

.price-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.price-options span {
  border: 1px solid rgba(130, 145, 114, 0.2);
  border-radius: 10px;
  padding: 0.55rem;
  background: rgba(18, 25, 18, 0.66);
  font-size: 0.82rem;
  font-weight: 900;
}

.event-team-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.event-team-summary .team-pill {
  justify-content: center;
  padding: 0.5rem 0.6rem;
  font-size: 0.82rem;
}

.btn-event-players {
  width: 100%;
}

.event-players-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid rgba(130, 145, 114, 0.22);
  border-radius: 8px;
  background: rgba(11, 15, 10, 0.55);
}

.event-players-panel section {
  min-width: 0;
}

.event-players-panel h4 {
  margin: 0 0 0.45rem;
  color: #e8dccb;
  font-size: 0.82rem;
}

.event-players-panel ul {
  display: grid;
  gap: 0.38rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-players-panel li {
  display: grid;
  gap: 0.12rem;
  padding: 0.45rem;
  border-radius: 8px;
  background: rgba(18, 25, 18, 0.7);
  border: 1px solid rgba(130, 145, 114, 0.16);
}

.event-players-panel strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.86rem;
}

.event-players-panel span,
.event-team-empty {
  color: #b5bcac;
  font-size: 0.76rem;
  font-weight: 800;
}

.event-card-note {
  margin: 0;
  color: #d4edc4;
  font-size: 0.84rem;
  font-weight: 800;
}

.team-picker {
  gap: 0.45rem;
}

.team-picker span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b5bcac;
}

.team-picker select {
  font-size: 0.92rem;
}

.event-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #b5bcac;
}

.event-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.9rem;
  padding-top: 2.2rem;
}

.reservation-success-layout {
  min-height: calc(100vh - 96px);
  display: grid;
  place-items: center;
  padding-top: 2.2rem;
}

.reservation-success-card {
  width: min(780px, 100%);
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
  border: 1px solid rgba(130, 145, 114, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(129, 147, 75, 0.14), rgba(18, 25, 18, 0.82)),
    rgba(18, 25, 18, 0.78);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.reservation-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.payment-summary-card,
.payment-form-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  padding: 1rem;
}

.payment-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 0.95;
  margin-top: 0.2rem;
}

.payment-form-card h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
}

.payment-summary-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.payment-summary-grid div {
  border: 1px solid rgba(130, 145, 114, 0.22);
  border-radius: 10px;
  padding: 0.75rem;
  display: grid;
  gap: 0.2rem;
  background: rgba(25, 34, 24, 0.92);
}

.payment-summary-grid strong {
  font-size: 1rem;
}

.payment-alert {
  margin-top: 0.9rem;
  border: 1px solid rgba(141, 191, 103, 0.45);
  background: rgba(97, 137, 69, 0.24);
  color: #d4edc4;
  padding: 0.72rem 0.8rem;
  border-radius: 10px;
  font-weight: 700;
}

.payment-alert.error {
  border-color: rgba(178, 95, 73, 0.5);
  background: rgba(132, 64, 45, 0.32);
  color: #f2c8bb;
}

.payment-provider-box {
  border: 1px dashed rgba(130, 145, 114, 0.36);
  border-radius: 10px;
  background: rgba(27, 35, 26, 0.75);
  padding: 0.8rem;
}

.payment-provider-box p {
  margin: 0;
}

.payment-provider-box p + p {
  margin-top: 0.5rem;
}

.payment-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.payments-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0.9rem;
}

.payment-status-card,
.payment-provider-card,
.payment-config-grid article {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  padding: 1rem;
}

.payment-provider-mark {
  width: fit-content;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(141, 191, 103, 0.45);
  background: rgba(97, 137, 69, 0.24);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.payment-status-card h3,
.payment-provider-card h3,
.payment-config-grid h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
}

.payment-status-card p,
.payment-provider-card p,
.payment-config-grid p {
  margin-top: 0.45rem;
}

.payment-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.payment-status-grid div {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(130, 145, 114, 0.22);
  background: rgba(25, 34, 24, 0.82);
}

.payment-provider-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
}

.payment-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.payment-config-grid code {
  display: block;
  margin-top: 0.45rem;
  padding: 0.65rem;
  border-radius: 8px;
  background: rgba(10, 14, 10, 0.62);
  color: #dce5d5;
  overflow-wrap: anywhere;
}

.payment-actions-panel {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.95rem;
}

.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.auth-box,
.dashboard-box {
  padding: 1rem;
}

.auth-page-layout {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.9rem;
  align-items: center;
  padding-top: clamp(2rem, 6vw, 4rem);
}

.auth-page-layout.single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.auth-hero-panel {
  min-height: 460px;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(rgba(17, 22, 15, 0.62), rgba(17, 22, 15, 0.86)),
    url("https://images.pexels.com/photos/30396789/pexels-photo-30396789.jpeg?auto=compress&cs=tinysrgb&w=1200&q=80");
  background-size: cover;
  background-position: center;
  display: grid;
  align-content: end;
}

.auth-hero-panel h1 {
  max-width: 11ch;
}

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.auth-benefits span,
.login-required-actions {
  border-radius: 999px;
}

.auth-benefits span {
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(167, 181, 154, 0.34);
  background: rgba(16, 22, 15, 0.66);
  font-size: 0.82rem;
  font-weight: 900;
}

.login-required-box {
  display: grid;
  gap: 0.7rem;
}

.login-required-actions,
.logout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.logout-card {
  text-align: center;
}

.logout-card .section-head h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
}

.logout-actions {
  justify-content: center;
}

.tabs {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.tab {
  border: 0;
  padding: 0.55rem 0.85rem;
  font-weight: 800;
  cursor: pointer;
  background: transparent;
}

.tab.active {
  background: #3f4838;
}

.auth-form {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

.rank-info-box {
  margin: 0.1rem 0 0;
  padding: 0.72rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(157, 93, 47, 0.5);
  background: rgba(157, 93, 47, 0.16);
  color: #e6ddd0;
  font-size: 0.88rem;
  line-height: 1.45;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #161e16;
  color: var(--ink);
  padding: 0.72rem 0.75rem;
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(126, 143, 89, 0.34);
  border-color: var(--olive);
}

.message {
  min-height: 1.2rem;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.welcome-text {
  font-weight: 800;
  margin: 0 0 0.6rem;
}

.account-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.shortcut-btn {
  border: 1px solid rgba(130, 145, 114, 0.34);
  border-radius: 999px;
  background: rgba(27, 35, 26, 0.72);
  color: var(--ink);
  padding: 0.48rem 0.72rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.shortcut-btn:hover {
  background: rgba(111, 127, 63, 0.28);
}

.email-verification-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.85rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(178, 95, 73, 0.38);
  background: rgba(132, 64, 45, 0.16);
}

.email-verification-banner strong {
  display: block;
  margin-bottom: 0.15rem;
}

.email-verification-text {
  margin: 0;
  color: #d8ddd3;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
}

.next-match {
  margin: 0.85rem 0;
  padding: 0.8rem;
  border-radius: 12px;
  background: rgba(32, 41, 30, 0.82);
  border: 1px dashed var(--border);
}

.next-match p {
  display: grid;
  gap: 0.18rem;
  margin-bottom: 0;
}

.next-match span {
  color: #b5bcac;
}

.rank-progress-card {
  margin: 0.85rem 0;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(130, 145, 114, 0.24);
  background: rgba(24, 33, 23, 0.78);
}

.rank-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.8rem;
  margin-bottom: 0.55rem;
}

.rank-progress-head div {
  display: grid;
  gap: 0.15rem;
}

.rank-progress-head strong,
.rank-progress-head > span {
  font-size: 0.9rem;
}

.moderator-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(130, 145, 114, 0.24);
}

.moderator-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.moderator-head h3 {
  margin: 0.1rem 0 0;
}

.moderator-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.moderator-summary article {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: rgba(25, 34, 24, 0.92);
}

.moderator-view-tabs {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
}

.moderator-view-tab {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.moderator-view-tab.active {
  background: #3f4838;
}

.season-box {
  margin-top: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(24, 33, 23, 0.92);
}

.season-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.season-head h3 {
  margin: 0.1rem 0 0;
}

.season-dates {
  margin: 0.5rem 0 0;
  color: #b5bcac;
  font-size: 0.9rem;
}

.season-actions {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.moderation-events-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.moderation-event-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(23, 31, 22, 0.92);
}

.moderation-event-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.moderation-scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.moderation-scoreboard article {
  border: 1px solid rgba(130, 145, 114, 0.22);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: rgba(29, 38, 27, 0.85);
}

.moderation-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.moderation-team-column {
  border: 1px solid rgba(130, 145, 114, 0.22);
  border-radius: 12px;
  padding: 0.8rem;
  background: rgba(18, 25, 18, 0.84);
}

.moderation-team-column h4 {
  margin: 0 0 0.6rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.moderation-player-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.moderation-player-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: rgba(32, 41, 30, 0.78);
  border: 1px solid rgba(130, 145, 114, 0.18);
}

.moderation-player-head {
  display: grid;
  gap: 0.15rem;
}

.moderation-player-actions {
  margin-top: 0.35rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
}

.btn-team-switch {
  border-radius: 8px;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(130, 145, 114, 0.45);
  background: rgba(111, 127, 63, 0.22);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-team-switch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.moderation-player-item.empty {
  color: #b5bcac;
}

.moderation-players-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.moderation-search-controls {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.6rem;
}

.moderation-pagination {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.calendar-create-wrap {
  position: relative;
  margin-top: 0.9rem;
}

.moderation-event-form {
  width: min(420px, 100%);
  margin-top: 0.65rem;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18, 25, 18, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.moderation-event-form button {
  width: 100%;
  white-space: nowrap;
}

.fixed-schedule-panel,
.audit-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(18, 25, 18, 0.82);
}

.fixed-schedule-panel .moderation-event-form {
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
}

.compact-schedule-card {
  padding: 0.8rem;
}

.calendar-create-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.moderator-calendar-shell {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(18, 25, 18, 0.82);
  overflow: hidden;
}

.moderator-calendar-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem;
  border-bottom: 1px solid rgba(130, 145, 114, 0.24);
}

.moderator-calendar-head h3 {
  text-align: center;
  text-transform: capitalize;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
}

.moderator-calendar-note {
  margin: 0;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid rgba(130, 145, 114, 0.18);
  color: #b5bcac;
  font-size: 0.86rem;
  font-weight: 700;
}

.moderator-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekday {
  padding: 0.55rem;
  border-bottom: 1px solid rgba(130, 145, 114, 0.2);
  border-right: 1px solid rgba(130, 145, 114, 0.16);
  color: #b5bcac;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 132px;
  padding: 0.45rem;
  border-right: 1px solid rgba(130, 145, 114, 0.16);
  border-bottom: 1px solid rgba(130, 145, 114, 0.16);
  background: rgba(23, 31, 22, 0.64);
}

.calendar-day-muted {
  background: rgba(12, 16, 12, 0.42);
}

.calendar-day-number {
  font-weight: 900;
  color: #dfe5d8;
}

.calendar-day-events {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.calendar-event {
  display: grid;
  gap: 0.1rem;
  padding: 0.42rem;
  border-radius: 8px;
  font-size: 0.74rem;
  line-height: 1.25;
}

.calendar-event strong {
  font-size: 0.78rem;
}

.calendar-public {
  border: 1px solid rgba(141, 191, 103, 0.42);
  background: rgba(97, 137, 69, 0.2);
}

.calendar-private {
  border: 1px solid rgba(178, 95, 73, 0.42);
  background: rgba(132, 64, 45, 0.22);
}

.calendar-fixed-schedule {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.2rem;
}

.calendar-fixed-slot {
  display: grid;
  gap: 0.06rem;
  padding: 0.36rem 0.4rem;
  border-radius: 8px;
  border: 1px dashed rgba(130, 145, 114, 0.34);
  background: rgba(24, 33, 23, 0.52);
  font-size: 0.72rem;
  line-height: 1.2;
}

.calendar-fixed-slot span {
  color: #c8d0c0;
  font-weight: 900;
}

.calendar-fixed-slot strong {
  color: #e1e7da;
  font-size: 0.74rem;
}

.moderation-player-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(23, 31, 22, 0.9);
  display: grid;
  gap: 0.35rem;
}

.moderation-player-main {
  display: grid;
  gap: 0.15rem;
}

.moderation-player-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #c6cdc0;
}

.ranking-table-wrap {
  margin-top: 0.75rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(23, 31, 22, 0.9);
}

.ranking-page {
  padding-top: 2rem;
}

.current-ranking-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0;
  padding: 0.95rem;
  border: 1px solid rgba(141, 191, 103, 0.45);
  border-radius: 12px;
  background: rgba(97, 137, 69, 0.18);
}

.current-ranking-card.hidden {
  display: none;
}

.current-ranking-card strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.2rem;
}

.current-ranking-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.current-ranking-stats span {
  border-radius: 999px;
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(167, 181, 154, 0.24);
  background: rgba(18, 25, 18, 0.62);
  font-size: 0.82rem;
  font-weight: 900;
}

.ranking-podium {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.9fr;
  align-items: end;
  gap: 0.75rem;
  margin: 1rem 0;
}

.podium-card {
  min-height: 210px;
  display: grid;
  align-content: end;
  gap: 0.28rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(23, 31, 22, 0.92);
}

.moderation-event-card-closed {
  border-color: rgba(176, 139, 74, 0.34);
  background: rgba(25, 30, 23, 0.92);
}

.podium-card.first {
  min-height: 260px;
  border-color: rgba(205, 170, 86, 0.74);
  background: linear-gradient(180deg, rgba(151, 116, 46, 0.28) 0%, rgba(23, 31, 22, 0.94) 58%);
}

.podium-card.second {
  min-height: 230px;
}

.podium-card.third {
  min-height: 205px;
}

.podium-card.is-current {
  box-shadow: 0 0 0 2px rgba(141, 191, 103, 0.32);
}

.podium-place {
  width: fit-content;
  border-radius: 999px;
  padding: 0.25rem 0.52rem;
  background: rgba(111, 127, 63, 0.34);
  font-weight: 900;
}

.podium-card strong {
  font-size: 1.15rem;
}

.podium-score {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  line-height: 0.95;
}

.podium-card small {
  color: #b5bcac;
  font-weight: 800;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.ranking-table th,
.ranking-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(130, 145, 114, 0.2);
  text-align: left;
  vertical-align: middle;
}

.ranking-table th {
  color: #b5bcac;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.ranking-table td:first-child {
  width: 48px;
  font-weight: 900;
}

.ranking-table td strong,
.ranking-table td span {
  display: block;
}

.ranking-table td span {
  margin-top: 0.1rem;
  color: #b5bcac;
  font-size: 0.8rem;
}

.ranking-table tr:last-child td {
  border-bottom: 0;
}

.ranking-current-user td {
  background: rgba(111, 127, 63, 0.2);
}

.reservations-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.reservation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(23, 31, 22, 0.9);
}

.reservation-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.empty-state {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.8rem;
  padding: 0.9rem;
  border: 1px dashed rgba(130, 145, 114, 0.4);
  border-radius: 12px;
  background: rgba(18, 25, 18, 0.72);
  color: #cbd3c4;
}

.empty-state strong {
  color: var(--ink);
}

.empty-state.compact {
  margin-top: 0;
}

.empty-state.hidden {
  display: none;
}

.reservation-actions {
  display: flex;
  gap: 0.35rem;
}

.btn-result-win,
.btn-result-loss {
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-result-win {
  background: rgba(97, 137, 69, 0.35);
  color: #d4edc4;
  border-color: rgba(141, 191, 103, 0.45);
}

.btn-result-loss {
  background: rgba(132, 64, 45, 0.35);
  color: #f2c8bb;
  border-color: rgba(178, 95, 73, 0.5);
}

.reservation-details {
  display: grid;
  gap: 0.15rem;
}

.reservation-details strong {
  font-size: 0.95rem;
}

.moderator-details {
  flex: 1;
}

.moderator-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.team-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.team-rojo {
  background: rgba(132, 64, 45, 0.32);
  color: #f2c8bb;
  border: 1px solid rgba(178, 95, 73, 0.5);
}

.team-azul {
  background: rgba(49, 89, 137, 0.3);
  color: #c8dcf7;
  border: 1px solid rgba(94, 142, 204, 0.48);
}

.status-upcoming {
  background: rgba(115, 135, 84, 0.3);
}

.status-played {
  background: rgba(157, 93, 47, 0.34);
}

.cta-strip {
  padding: 1.2rem;
}

.cta-strip p {
  margin: 0.45rem 0 1rem;
  max-width: 65ch;
}

.site-footer {
  border-top: 1px solid rgba(130, 145, 114, 0.24);
  padding: 1.2rem 1rem 2.4rem;
  text-align: center;
  font-size: 0.9rem;
}

.whatsapp-float {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.5rem);
  bottom: clamp(0.9rem, 3vw, 1.5rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.62rem 0.85rem 0.62rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 238, 191, 0.38);
  background: linear-gradient(135deg, #1f8f4d 0%, #146c3c 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.38);
}

.whatsapp-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.whatsapp-text {
  font-size: 0.92rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  padding: 1rem;
}

.contact-card h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.contact-card p {
  margin: 0 0 0.35rem;
}

.map-block {
  margin-top: 0.8rem;
}

.map-block iframe {
  width: 100%;
  height: 220px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: block;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .top-tabs {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .header-user-menu {
    margin-left: auto;
  }

  .hero::after {
    position: static;
    display: block;
    width: 100%;
    height: 160px;
    margin-top: 1rem;
  }

  .hero-metrics,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .email-verification-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-grid,
  .brief-strip,
  .contact-layout,
  .account-layout,
  .auth-page-layout,
  .payment-layout,
  .payments-layout,
  .payment-config-grid {
    grid-template-columns: 1fr;
  }

  .auth-page-layout {
    align-items: start;
  }

  .auth-hero-panel {
    min-height: 300px;
  }

  .current-ranking-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .current-ranking-stats {
    justify-content: flex-start;
  }

  .ranking-podium {
    grid-template-columns: 1fr;
  }

  .podium-card,
  .podium-card.first,
  .podium-card.second,
  .podium-card.third {
    min-height: auto;
  }

  .whatsapp-float {
    min-height: 48px;
    padding: 0.55rem;
  }

  .whatsapp-text {
    display: none;
  }

  .payment-summary-grid,
  .payment-actions {
    grid-template-columns: 1fr;
  }

  .moderation-team-grid,
  .moderation-scoreboard {
    grid-template-columns: 1fr;
  }

  .moderation-search-controls {
    grid-template-columns: 1fr;
  }

  .moderation-event-form {
    grid-template-columns: 1fr;
  }

  .moderator-calendar-head {
    grid-template-columns: 1fr;
  }

  .moderator-calendar-grid {
    display: block;
  }

  .calendar-weekday,
  .calendar-day-muted {
    display: none;
  }

  .calendar-day {
    min-height: auto;
  }

  .moderation-pagination {
    justify-content: flex-start;
  }

  .moderator-head,
  .reservation-item,
  .moderation-event-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .reservation-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}
