:root {
  --ink: #111827;
  --muted: #667085;
  --paper: #f5f7fb;
  --panel: #ffffff;
  --line: #e5e7ef;
  --black: #070a17;
  --brand-blue: #1f2a7a;
  --brand-blue-2: #11194f;
  --brand-red: #cf1018;
  --brand-red-2: #9f0b13;
  --green: #16c784;
  --teal: #11b8c9;
  --amber: #ffb21a;
  --coral: #ef4444;
  --blue: #355cff;
  --radius: 8px;
  --shadow: 0 24px 60px rgba(6, 10, 30, 0.28);
  --nav-height: 88px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100%;
}

html {
  background: #070a17;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(160deg, rgba(207, 16, 24, 0.22), transparent 34%),
    linear-gradient(35deg, rgba(53, 92, 255, 0.2), transparent 44%),
    linear-gradient(145deg, #070a17 0%, #11194f 48%, #080912 100%);
  color: var(--ink);
  overflow: hidden;
  overscroll-behavior: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  width: min(100vw, 430px);
  height: 100svh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 22rem),
    linear-gradient(145deg, rgba(207, 16, 24, 0.08), transparent 28rem),
    var(--paper);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.app-shell.is-busy {
  pointer-events: none;
  filter: saturate(0.92);
}

@supports (height: 100dvh) {
  .app-shell {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.screen {
  height: 100%;
  min-height: 100%;
  padding: env(safe-area-inset-top) 18px calc(var(--nav-height) + 22px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.auth-screen {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  height: 100%;
  overflow-y: auto;
  padding: calc(18px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
  color: #ffffff;
  isolation: isolate;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.auth-screen::-webkit-scrollbar {
  display: none;
}

.auth-screen::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(180deg, rgba(7, 10, 23, 0.16), rgba(7, 10, 23, 0.9)),
    url("assets/real-padel-courts.jpg");
  background-position: center;
  background-size: cover;
}

.register-screen::before {
  background-image:
    linear-gradient(180deg, rgba(7, 10, 23, 0.16), rgba(7, 10, 23, 0.9)),
    var(--auth-image);
}

.auth-screen::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(135deg, rgba(31, 42, 122, 0.72), transparent 42%),
    linear-gradient(20deg, rgba(207, 16, 24, 0.36), transparent 34%),
    linear-gradient(0deg, rgba(7, 10, 23, 0.7), transparent 62%);
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: inline-grid;
  width: 132px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.logo-mark img {
  display: block;
  width: 118px;
  height: auto;
}

.logo-mark.small {
  width: 82px;
  height: 36px;
  box-shadow: 0 8px 20px rgba(7, 10, 23, 0.12);
}

.logo-mark.small img {
  width: 73px;
}

.logo-mark.large {
  width: 194px;
  height: 82px;
  border-radius: 18px;
}

.logo-mark.large img {
  width: 170px;
}

.logo-mark.card {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 112px;
  height: 44px;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.logo-mark.card img {
  width: 99px;
}

.logo-mark.hero {
  width: 124px;
  height: 48px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.logo-mark.hero img {
  width: 108px;
}

.logo-mark.poster {
  width: 126px;
  height: 46px;
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(56, 32, 14, 0.18);
}

.logo-mark.poster img {
  width: 113px;
}

.brand-title {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.brand-subtitle {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.beta-status {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(7, 10, 23, 0.7);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.beta-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffbf00;
  box-shadow: 0 0 0 4px rgba(255, 191, 0, 0.16);
}

.beta-status strong,
.beta-status small {
  letter-spacing: 0;
}

.beta-status strong {
  font-size: 11px;
  font-weight: 950;
}

.beta-status small {
  padding-left: 7px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 850;
}

.auth-copy h1 {
  max-width: 11ch;
  margin: 0;
  color: #ffffff;
  font-size: 46px;
  line-height: 0.94;
}

.auth-copy p {
  max-width: 31ch;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.45;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-red);
  content: "";
}

.eyebrow.dark {
  color: var(--brand-blue);
}

.auth-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(7, 10, 23, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.auth-switch button {
  min-height: 42px;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-blue-2);
  font-size: 13px;
  font-weight: 900;
  text-shadow: none;
}

.auth-switch button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-red), #ff3b4a 46%, var(--amber));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(207, 16, 24, 0.34);
  text-shadow: none;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.auth-form-head strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.auth-form-head span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.profile-photo-uploader {
  position: relative;
  display: grid;
  min-height: 76px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.profile-photo-uploader input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-photo-uploader strong,
.profile-photo-uploader small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-photo-uploader strong {
  font-size: 14px;
  font-weight: 950;
}

.profile-photo-uploader small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 750;
}

.profile-photo-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.profile-photo-icon .icon {
  width: 22px;
  height: 22px;
}

.venue-payment-list {
  display: grid;
  gap: 9px;
}

.venue-payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #ffffff;
}

.venue-payment-head strong {
  font-size: 14px;
  font-weight: 950;
}

.venue-payment-head span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.venue-payment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
}

.stripe-registration-link {
  display: flex;
  grid-column: 1 / -1;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.stripe-registration-link[hidden] {
  display: none;
}

.stripe-registration-link .icon {
  width: 17px;
  height: 17px;
}

.venue-payment-card strong,
.venue-payment-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-payment-card strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.venue-payment-card small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 760;
}

.venue-payment-card select {
  width: 100%;
  min-height: 40px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.venue-payment-card select option {
  color: #111827;
}

.auth-panel .inline-warning {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(207, 16, 24, 0.24);
  color: #ffffff;
}

.input-field {
  display: grid;
  gap: 6px;
}

.input-field span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.input-field input,
.input-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  outline: 0;
}

.input-field select option {
  color: #111827;
}

.input-field input:focus,
.input-field select:focus {
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(207, 16, 24, 0.18);
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 850;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background: linear-gradient(135deg, var(--brand-red), #ff3b4a 44%, var(--amber));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(207, 16, 24, 0.28);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.secondary-button.is-quiet {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #eef1f8;
  color: var(--ink);
}

.full-width {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  min-height: 46px;
  place-items: center;
  border: 1px solid rgba(226, 230, 240, 0.88);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(7, 10, 23, 0.06);
}

.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.filled-heart .icon {
  fill: var(--coral);
  stroke: var(--coral);
}

.splash-screen {
  display: grid;
  height: 100%;
  min-height: 100%;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(207, 16, 24, 0.22), transparent 48%),
    linear-gradient(180deg, var(--brand-blue-2), #070a17);
  color: #ffffff;
}

.splash-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  animation: pulseIn 900ms ease both;
}

.splash-card h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.live-loader {
  width: 140px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.live-loader span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-red), #ffffff, var(--brand-blue));
  animation: loaderMove 900ms ease-in-out infinite;
}

.venue-screen {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 22px;
}

.venue-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.venue-top .brand-title,
.venue-top .brand-subtitle {
  color: var(--ink);
}

.venue-heading h1 {
  margin: 8px 0 8px;
  color: var(--brand-blue-2);
  font-size: 36px;
  line-height: 1.02;
}

.venue-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.venue-list {
  display: grid;
  gap: 12px;
}

.venue-card {
  position: relative;
  display: grid;
  min-height: 236px;
  overflow: hidden;
  padding: 16px;
  align-content: end;
  border-radius: var(--radius);
  color: #ffffff;
  text-align: left;
  isolation: isolate;
  box-shadow: 0 20px 42px rgba(17, 25, 79, 0.18);
}

.venue-card::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--venue-image);
  background-position: center;
  background-size: cover;
  content: "";
  transition: transform 400ms ease;
}

.venue-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 10, 23, 0.06) 0%, rgba(7, 10, 23, 0.9) 100%),
    linear-gradient(135deg, rgba(31, 42, 122, 0.58), transparent 42%),
    linear-gradient(22deg, rgba(207, 16, 24, 0.24), transparent 48%);
  content: "";
}

.venue-card:active::before {
  transform: scale(1.04);
}

.venue-card.is-selected {
  outline: 3px solid rgba(207, 16, 24, 0.74);
  outline-offset: 2px;
  box-shadow: 0 24px 50px rgba(207, 16, 24, 0.2);
}

.venue-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.venue-name {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.venue-handle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.venue-selection-footer {
  position: sticky;
  bottom: 12px;
  z-index: 3;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(226, 230, 240, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(17, 25, 79, 0.14);
  backdrop-filter: blur(18px);
}

.venue-selection-footer strong,
.venue-selection-footer span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-selection-footer strong {
  color: var(--brand-blue-2);
  font-size: 14px;
  font-weight: 950;
}

.venue-selection-footer span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.pill,
.live-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.pill {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.mini-pill {
  padding: 6px 9px;
  background: #eef2ff;
  color: var(--brand-blue);
}

.live-pill {
  padding: 7px 10px;
  background: rgba(207, 16, 24, 0.1);
  color: var(--brand-red);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 0 5px rgba(207, 16, 24, 0.14);
}

.app-view {
  display: grid;
  height: 100%;
  min-height: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 28%),
    var(--paper);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: calc(10px + env(safe-area-inset-top)) 14px 11px;
  border-bottom: 1px solid rgba(226, 230, 240, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-header .brand-lockup {
  flex: 1 1 auto;
  gap: 9px;
}

.app-header .logo-mark.small {
  width: 70px;
  height: 30px;
}

.app-header .logo-mark.small img {
  width: 62px;
}

.header-title {
  min-width: 0;
}

.header-title strong,
.header-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-title strong {
  color: var(--brand-blue-2);
  font-size: 15px;
  line-height: 1.1;
}

.header-title span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 5px;
}

.header-actions .icon-button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 12px;
}

.header-actions .icon-button .icon {
  width: 18px;
  height: 18px;
}

.admin-button {
  position: relative;
}

.ai-admin-button {
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-red));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(207, 16, 24, 0.18);
}

.admin-button span {
  position: absolute;
  right: -3px;
  top: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.content {
  width: 100%;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  padding: 14px 14px calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.content::-webkit-scrollbar {
  display: none;
}

.view-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
  animation: enterView 260ms ease both;
}

.blank-view {
  min-height: calc(100svh - var(--nav-height) - 96px);
}

.home-view {
  display: grid;
  gap: 14px;
  align-content: start;
}

.home-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(226, 230, 240, 0.96);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31, 42, 122, 0.09), rgba(207, 16, 24, 0.055)),
    #ffffff;
  box-shadow: 0 20px 46px rgba(17, 25, 79, 0.12);
}

.home-welcome h1 {
  margin: 4px 0 4px;
  color: var(--brand-blue-2);
  font-size: 22px;
  line-height: 1.02;
  letter-spacing: 0;
}

.home-welcome p {
  margin: 0;
  color: #5e6679;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.28;
}

.home-primary-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 16px 28px rgba(31, 42, 122, 0.22);
}

.home-primary-action .icon {
  width: 17px;
  height: 17px;
}

.instagram-panel {
  display: grid;
  gap: 12px;
}

.instagram-gallery-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 0;
}

.instagram-avatar {
  flex: 0 0 auto;
}

.instagram-gallery-head h2 {
  margin: 3px 0 2px;
  color: var(--brand-blue-2);
  font-size: 18px;
  line-height: 1.06;
  letter-spacing: 0;
}

.instagram-gallery-head p {
  margin: 0;
  color: #6c7487;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-red);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-red);
  box-shadow: 0 0 0 5px rgba(207, 16, 24, 0.1);
}

.live-pill.is-loading i {
  animation: pulseIn 1s ease-in-out infinite alternate;
}

.refresh-button,
.instagram-profile-link {
  min-height: 36px;
  border: 1px solid rgba(226, 230, 240, 0.96);
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand-blue-2);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(17, 25, 79, 0.08);
}

.refresh-button {
  margin-left: auto;
  padding: 0 12px;
}

.refresh-button.icon-only {
  width: 36px;
  padding: 0;
}

.refresh-button.icon-only .icon {
  width: 16px;
  height: 16px;
}

.refresh-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.instagram-stories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 5px;
  scrollbar-width: none;
}

.instagram-stories::-webkit-scrollbar {
  display: none;
}

.story-bubble {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  justify-items: center;
  width: 56px;
  border: 0;
  background: transparent;
  color: var(--brand-blue-2);
  font: inherit;
}

.story-bubble span {
  display: grid;
  width: 52px;
  height: 52px;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-red), #ffcf5a, var(--brand-blue));
  box-shadow: 0 12px 22px rgba(17, 25, 79, 0.14);
}

.story-bubble img {
  width: 46px;
  height: 46px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  object-fit: cover;
}

.story-bubble small {
  width: 100%;
  overflow: hidden;
  color: #4c5570;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-bubble.is-active span {
  box-shadow: 0 0 0 3px rgba(31, 42, 122, 0.13), 0 12px 22px rgba(17, 25, 79, 0.14);
}

.instagram-profile-strip {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 230, 240, 0.96);
  border-radius: 16px;
  background: #ffffff;
  color: var(--brand-blue-2);
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(17, 25, 79, 0.11);
}

.instagram-profile-logo {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(31, 42, 122, 0.1);
  border-radius: 14px;
  background: #ffffff;
}

.instagram-profile-logo .logo-mark.small {
  width: 44px;
  height: 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.instagram-profile-logo .logo-mark.small img {
  width: 42px;
}

.instagram-profile-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.instagram-profile-copy strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instagram-profile-copy small {
  color: #7a8295;
  font-size: 11px;
  font-weight: 800;
}

.instagram-profile-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  margin-left: auto;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-blue-2);
  color: #ffffff;
}

.instagram-profile-arrow .icon {
  width: 16px;
  height: 16px;
}

.competition-hub {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(31, 42, 122, 0.1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(17, 25, 79, 0.1);
}

.competition-hub-head,
.automatic-groups-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.competition-hub-head span:first-child,
.automatic-groups-head span {
  color: var(--brand-red);
  font-size: 10px;
  font-weight: 950;
}

.competition-hub-head h2 {
  margin: 2px 0 0;
  color: var(--brand-blue-2);
  font-size: 19px;
  letter-spacing: 0;
}

.competition-format {
  display: grid;
  min-width: 58px;
  min-height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-blue-2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
}

.competition-selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-home-venue {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.8fr);
  align-items: end;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(31, 42, 122, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(18, 28, 70, 0.06);
}

.admin-home-venue > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.admin-home-venue > div > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--brand-blue-2);
  color: #ffffff;
}

.admin-home-venue > div > span .icon {
  width: 17px;
  height: 17px;
}

.admin-home-venue > div > div,
.admin-home-venue label {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-home-venue strong {
  color: var(--brand-blue-2);
  font-size: 12px;
}

.admin-home-venue small,
.admin-home-venue label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.admin-home-venue select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(31, 42, 122, 0.14);
  border-radius: 7px;
  background: #f7f8fc;
  color: var(--brand-blue-2);
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  padding: 0 9px;
}

.admin-tournament-hub {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(31, 42, 122, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 25, 79, 0.08);
}

.admin-tournament-title,
.home-tournament-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-tournament-title {
  justify-content: space-between;
}

.admin-tournament-title > div {
  display: grid;
  gap: 2px;
}

.admin-tournament-title span,
.home-tournament-card > div:nth-child(2) > span {
  color: var(--brand-red);
  font-size: 9px;
  font-weight: 950;
}

.admin-tournament-title h2,
.home-tournament-card h3 {
  margin: 0;
  color: var(--brand-blue-2);
  letter-spacing: 0;
}

.admin-tournament-title h2 {
  font-size: 15px;
}

.home-tournament-list,
.home-tournament-form {
  display: grid;
  gap: 9px;
}

.home-tournament-form {
  padding: 10px;
  border-radius: 8px;
  background: #f7f8fc;
}

.home-tournament-form > label {
  display: grid;
  gap: 5px;
  color: var(--brand-blue-2);
  font-size: 10px;
  font-weight: 900;
}

.home-tournament-form > label input {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--brand-blue-2);
  font: inherit;
}

.home-tournament-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 10px;
  border: 1px solid rgba(31, 42, 122, 0.1);
  border-radius: 8px;
  background: #f7f8fc;
}

.home-tournament-card.is-active {
  border-color: rgba(207, 16, 24, 0.24);
  background: linear-gradient(135deg, rgba(31, 42, 122, 0.06), rgba(207, 16, 24, 0.05)), #ffffff;
}

.home-tournament-badge {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: var(--brand-blue-2);
  color: #ffffff;
}

.home-tournament-badge .icon {
  width: 18px;
  height: 18px;
}

.home-tournament-card h3 {
  margin-top: 2px;
  font-size: 13px;
}

.home-tournament-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.home-tournament-card .primary-button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 10px;
}

.home-tournament-card .primary-button .icon {
  width: 14px;
  height: 14px;
}

.home-tournament-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-tournament-actions .tournament-delete {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: var(--brand-red);
}

@media (max-width: 390px) {
  .home-tournament-card {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .home-tournament-card .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .home-tournament-actions {
    grid-column: 1 / -1;
  }

  .home-tournament-actions .primary-button {
    flex: 1 1 auto;
  }
}

.bookable-court-list {
  display: grid;
  gap: 8px;
}

.bookable-court-card {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(31, 42, 122, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.bookable-court-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bookable-court-head strong {
  color: var(--brand-blue-2);
  font-size: 13px;
}

.bookable-court-head span {
  color: #06724d;
  font-size: 9px;
  font-weight: 900;
}

.bookable-slot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.bookable-slot {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 42px;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid rgba(22, 199, 132, 0.2);
  border-radius: 7px;
  background: rgba(22, 199, 132, 0.08);
  color: #06724d;
  font: inherit;
  text-align: left;
}

.bookable-slot .icon {
  width: 14px;
  height: 14px;
}

.bookable-slot strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bookable-slot small {
  grid-column: 2;
  font-size: 8px;
  font-weight: 850;
}

.bookable-slot.is-selectable {
  cursor: pointer;
}

.bookable-slot.is-selected {
  border-color: var(--brand-blue-2);
  background: var(--brand-blue-2);
  color: #ffffff;
}

.bookable-empty {
  grid-column: 1 / -1;
  padding: 10px;
  border-radius: 7px;
  background: #f7f8fc;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.booking-refresh {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--brand-blue-2);
}

.booking-refresh .icon {
  width: 16px;
  height: 16px;
}

.booking-refresh:disabled {
  opacity: 0.45;
}

.calendar-slot.is-free-continuation {
  opacity: 0.72;
}

.manual-match-panel {
  overflow: hidden;
  border: 1px solid rgba(31, 42, 122, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.manual-match-panel summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 2px 9px;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
  color: var(--brand-blue-2);
  cursor: pointer;
  list-style: none;
}

.manual-match-panel summary::-webkit-details-marker {
  display: none;
}

.manual-match-panel summary > span {
  display: grid;
  width: 36px;
  height: 36px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 8px;
  background: #f1f3fa;
}

.manual-match-panel summary .icon {
  width: 18px;
  height: 18px;
}

.manual-match-panel summary strong {
  font-size: 13px;
}

.manual-match-panel summary small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.25;
}

.manual-match-panel[open] summary {
  border-bottom: 1px solid var(--line);
}

.manual-match-panel .admin-match-form {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.created-match-list-head {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-blue-2);
  font-size: 12px;
}

.created-match-list-head span {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-blue-2);
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
}

.competition-selectors label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.competition-selectors select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8fc;
  color: var(--brand-blue-2);
  font-size: 11px;
  font-weight: 850;
}

.league-choice {
  display: grid;
  gap: 7px;
}

.league-choice > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.league-choice > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.league-chip {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f8fc;
  color: #72798b;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.league-chip.is-selected {
  border-color: var(--brand-blue-2);
  background: var(--brand-blue-2);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 42, 122, 0.2);
}

.player-achievements,
.mvp-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.player-achievements span,
.mvp-achievements em {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(207, 16, 24, 0.08);
  color: var(--brand-red);
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
}

.player-achievements .icon {
  width: 12px;
  height: 12px;
}

.classification-group-list,
.classification-table {
  display: grid;
  gap: 8px;
}

.classification-group-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 25, 79, 0.07);
}

.classification-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.classification-group-head > div {
  display: grid;
  gap: 2px;
}

.classification-group-head > div span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.classification-group-head strong {
  color: var(--brand-blue-2);
  font-size: 14px;
}

.classification-group-head > span {
  padding: 7px 8px;
  border-radius: 8px;
  background: var(--brand-blue-2);
  color: #ffffff;
  font-size: 9px;
  font-weight: 950;
}

.classification-table > div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 9px;
  border-radius: 9px;
  background: #f7f8fc;
}

.classification-table > div > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand-blue-2);
  font-size: 10px;
  font-weight: 950;
}

.classification-table strong {
  min-width: 0;
  overflow: hidden;
  color: #343b55;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.classification-table small {
  color: var(--brand-red);
  font-size: 10px;
  font-weight: 950;
}

.instagram-spotlight {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 28px 58px rgba(17, 25, 79, 0.24);
}

.instagram-spotlight > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-spotlight::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(6, 10, 25, 0.55), transparent 36%),
    linear-gradient(0deg, rgba(6, 10, 25, 0.82), transparent 54%);
}

.spotlight-top,
.spotlight-bottom,
.spotlight-nav {
  position: relative;
  z-index: 1;
}

.spotlight-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  color: #ffffff;
}

.spotlight-top span,
.spotlight-top strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 950;
  backdrop-filter: blur(14px);
}

.spotlight-top strong {
  background: rgba(207, 16, 24, 0.88);
}

.spotlight-nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font: inherit;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
}

.spotlight-nav.is-prev {
  left: 12px;
}

.spotlight-nav.is-next {
  right: 12px;
}

.spotlight-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 12px;
  padding: 18px;
  color: #ffffff;
}

.spotlight-bottom h3 {
  margin: 0 0 5px;
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: 0;
}

.spotlight-bottom p {
  max-width: 92%;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.35;
}

.instagram-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ig-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.ig-action .icon {
  width: 16px;
  height: 16px;
}

.ig-action.is-liked {
  background: rgba(207, 16, 24, 0.92);
  border-color: rgba(207, 16, 24, 0.92);
}

.instagram-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.instagram-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #ffffff;
  padding: 0;
  box-shadow: 0 12px 22px rgba(17, 25, 79, 0.1);
}

.instagram-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-thumb.is-active {
  border-color: var(--brand-blue);
}

.instagram-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #7a8295;
  font-size: 11px;
  font-weight: 850;
}

.instagram-profile-link {
  display: inline-grid;
  min-width: 96px;
  place-items: center;
  padding: 0 12px;
  color: var(--brand-blue-2);
  text-decoration: none;
}

.booking-view {
  display: grid;
  align-content: start;
  gap: 12px;
  width: 100%;
  min-height: calc(100svh - var(--nav-height) - 130px);
}

.booking-toolbar {
  display: flex;
  gap: 7px;
  align-items: center;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: none;
}

.booking-toolbar::-webkit-scrollbar {
  display: none;
}

.booking-chip,
.booking-arrow,
.booking-sport {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid rgba(226, 230, 240, 0.96);
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand-blue-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(17, 25, 79, 0.08);
}

.booking-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 0 11px;
}

.booking-chip .icon {
  width: 15px;
  height: 15px;
}

.booking-chip.is-muted {
  color: #a2a9ba;
  background: #f7f8fb;
}

.booking-arrow {
  display: grid;
  width: 38px;
  place-items: center;
  padding: 0;
  font-size: 25px;
  line-height: 1;
}

.booking-sport {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  padding: 0 12px;
  color: #4c5570;
}

.booking-chip.is-date {
  color: #111827;
}

.booking-live-status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(22, 199, 132, 0.22);
  border-radius: 999px;
  background: rgba(22, 199, 132, 0.09);
  color: #06724d;
  font-size: 11px;
  font-weight: 950;
}

.booking-live-status span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #16c784;
  box-shadow: 0 0 0 5px rgba(22, 199, 132, 0.12);
}

.booking-live-status strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-live-status.is-loading {
  border-color: rgba(31, 42, 122, 0.18);
  background: rgba(31, 42, 122, 0.08);
  color: var(--brand-blue-2);
}

.booking-live-status.is-loading span {
  background: var(--brand-blue);
  animation: pulseDot 900ms ease-in-out infinite;
  box-shadow: 0 0 0 5px rgba(31, 42, 122, 0.1);
}

.booking-live-status.is-error {
  border-color: rgba(255, 178, 26, 0.36);
  background: rgba(255, 178, 26, 0.12);
  color: #925c00;
}

.booking-live-status.is-error span {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(255, 178, 26, 0.14);
}

.booking-calendar {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(226, 230, 240, 0.96);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(31, 42, 122, 0.035), rgba(255, 255, 255, 0)),
    #ffffff;
  box-shadow: 0 20px 46px rgba(17, 25, 79, 0.12);
}

.booking-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.booking-calendar-head strong {
  color: var(--brand-blue-2);
  font-size: 14px;
  font-weight: 950;
  text-transform: capitalize;
}

.calendar-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(226, 230, 240, 0.96);
  border-radius: 12px;
  background: #ffffff;
  color: #4c5570;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

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

.calendar-weekdays span {
  display: grid;
  min-height: 22px;
  place-items: center;
  color: #8890a3;
  font-size: 10px;
  font-weight: 950;
}

.calendar-day {
  display: grid;
  min-width: 0;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(226, 230, 240, 0.82);
  border-radius: 12px;
  background: #fbfcff;
  color: #20283c;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.calendar-day.is-empty {
  border-color: transparent;
  background: transparent;
}

.calendar-day.is-today {
  border-color: rgba(207, 16, 24, 0.34);
  color: var(--brand-red);
}

.calendar-day.is-selected {
  border-color: var(--brand-blue);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(31, 42, 122, 0.24);
}

.booking-day-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(58px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 4px;
  scrollbar-width: none;
}

.booking-day-strip::-webkit-scrollbar {
  display: none;
}

.booking-day-button {
  display: grid;
  min-width: 0;
  min-height: 66px;
  align-content: center;
  justify-items: center;
  gap: 3px;
  border: 1px solid rgba(226, 230, 240, 0.95);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8faff);
  color: #20283c;
  font: inherit;
  box-shadow: 0 10px 24px rgba(17, 25, 79, 0.06);
}

.booking-day-button span,
.booking-day-button small {
  color: #7b8498;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.booking-day-button strong {
  color: #111827;
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
}

.booking-day-button.is-today {
  border-color: rgba(207, 16, 24, 0.28);
}

.booking-day-button.is-today span,
.booking-day-button.is-today small,
.booking-day-button.is-today strong {
  color: var(--brand-red);
}

.booking-day-button.is-selected {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-blue), #11194f);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(31, 42, 122, 0.25);
}

.booking-day-button.is-selected span,
.booking-day-button.is-selected small,
.booking-day-button.is-selected strong {
  color: #ffffff;
}

.live-calendar-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(226, 230, 240, 0.96);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.98)),
    #ffffff;
  box-shadow: 0 20px 46px rgba(17, 25, 79, 0.12);
}

.calendar-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-live-head div:first-child {
  min-width: 0;
}

.calendar-live-head span {
  display: block;
  color: #7b8498;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.calendar-live-head strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--brand-blue-2);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: capitalize;
}

.availability-pill {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 999px;
  background: rgba(22, 199, 132, 0.1);
  color: #06724d;
  font-size: 11px;
  font-weight: 950;
}

.availability-pill .icon {
  width: 14px;
  height: 14px;
}

.calendar-court-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(122px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.calendar-court-strip::-webkit-scrollbar {
  display: none;
}

.calendar-court-chip {
  display: grid;
  min-height: 52px;
  align-content: center;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(31, 42, 122, 0.1);
  border-radius: 15px;
  background: #ffffff;
}

.calendar-court-chip strong {
  overflow: hidden;
  color: #151d33;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-court-chip span {
  color: #7b8498;
  font-size: 10px;
  font-weight: 850;
}

.calendar-viewport {
  overflow: auto;
  border: 1px solid rgba(226, 230, 240, 0.96);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.official-calendar {
  min-width: calc(58px + (var(--court-count, 5) * 116px));
  background: #ffffff;
}

.official-calendar-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  min-height: 48px;
  grid-template-columns: 58px repeat(var(--court-count, 5), minmax(116px, 1fr));
  border-bottom: 1px solid #e2e6ef;
  background: #f7f8fc;
}

.official-calendar-head > div,
.official-calendar-head > strong {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 0 7px;
  border-right: 1px solid #e2e6ef;
  color: var(--brand-blue-2);
  font-size: 10px;
  text-align: center;
}

.official-calendar-head .icon {
  width: 16px;
  height: 16px;
}

.official-calendar-body {
  display: grid;
  height: calc(var(--calendar-rows) * var(--calendar-row));
  grid-template-columns: 58px repeat(var(--court-count, 5), minmax(116px, 1fr));
}

.official-time-rail,
.official-court-track {
  position: relative;
  min-width: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--calendar-row) - 1px), #edf0f5 calc(var(--calendar-row) - 1px), #edf0f5 var(--calendar-row));
}

.official-time-rail {
  position: sticky;
  left: 0;
  z-index: 3;
  border-right: 1px solid #e2e6ef;
  background-color: #ffffff;
}

.official-time-rail span {
  position: absolute;
  top: calc(var(--row) * var(--calendar-row) - 7px);
  right: 9px;
  color: #657087;
  font-size: 9px;
  font-weight: 900;
}

.official-court-track {
  border-right: 1px solid #e2e6ef;
  background-color: #fbfcff;
}

.official-slot-block {
  position: absolute;
  z-index: 1;
  top: calc(var(--start-row) * var(--calendar-row) + 2px);
  right: 3px;
  left: 3px;
  display: grid;
  height: max(32px, calc(var(--span-rows) * var(--calendar-row) - 4px));
  align-content: center;
  gap: 2px;
  overflow: hidden;
  padding: 6px;
  border-radius: 7px;
  text-align: center;
}

.official-slot-block strong {
  font-size: 9px;
  line-height: 1.1;
}

.official-slot-block small {
  font-size: 8px;
  font-weight: 850;
}

.official-slot-block.is-busy,
.official-slot-block.is-match {
  background: #8c3734;
  color: #ffffff;
}

.official-slot-block.is-free {
  border: 1px solid rgba(22, 137, 87, 0.24);
  background: #ffffff;
  color: #08714d;
  box-shadow: 0 5px 13px rgba(22, 137, 87, 0.1);
}

.official-slot-block.is-past {
  border: 1px solid #d9dde7;
  background: #eef0f4;
  color: #8b93a3;
}

.proposal-mode-note {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(31, 42, 122, 0.12);
  border-radius: 10px;
  background: #ffffff;
}

.proposal-mode-note > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-blue-2);
  color: #ffffff;
}

.proposal-mode-note .icon {
  width: 17px;
  height: 17px;
}

.proposal-mode-note > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.proposal-mode-note strong {
  color: var(--brand-blue-2);
  font-size: 11px;
}

.proposal-mode-note small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.calendar-timeline {
  display: grid;
  min-width: calc(62px + (var(--court-count, 5) * 112px));
  grid-template-columns: 62px repeat(var(--court-count, 5), minmax(112px, 1fr));
  grid-auto-rows: 58px;
  overflow: hidden;
}

.calendar-timeline-corner,
.calendar-court,
.calendar-time,
.calendar-slot {
  border-right: 1px solid #e8ebf2;
  border-bottom: 1px solid #e8ebf2;
}

.calendar-timeline-corner,
.calendar-court {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8faff;
}

.calendar-timeline-corner {
  left: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  color: var(--brand-blue-2);
}

.calendar-timeline-corner .icon {
  width: 17px;
  height: 17px;
}

.calendar-court {
  display: grid;
  place-items: center;
  padding: 0 8px;
  color: var(--brand-blue-2);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  word-break: break-word;
}

.calendar-time {
  position: sticky;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #111827;
  font-size: 11px;
  font-weight: 950;
}

.calendar-slot {
  display: grid;
  width: 100%;
  height: 100%;
  align-content: center;
  justify-items: stretch;
  gap: 3px;
  padding: 5px;
  background: #fbfcff;
  color: #20283c;
  font: inherit;
  cursor: pointer;
}

.calendar-slot span {
  display: grid;
  width: 100%;
  min-height: 29px;
  place-items: center;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.calendar-slot small {
  overflow: hidden;
  color: #8a93a6;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-slot.is-free span {
  border: 1px solid rgba(22, 199, 132, 0.18);
  background: rgba(22, 199, 132, 0.08);
  color: #06724d;
}

.calendar-slot.is-busy span {
  background: #cf5f4d;
  color: #ffffff;
  font-size: 9px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.calendar-slot.is-match span {
  background: #19a76f;
  color: #ffffff;
  font-size: 9px;
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 0 2px;
  color: #5e6679;
  font-size: 11px;
  font-weight: 850;
}

.schedule-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.legend-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 4px;
}

.legend-dot.is-busy {
  background: #cf5f4d;
}

.legend-dot.is-match {
  background: #19a76f;
}

.legend-dot.is-free {
  border: 1px solid #d9deea;
  background: #ffffff;
}

.legend-dot.is-choice {
  background: var(--brand-blue);
}

.stats-view,
.matches-view {
  align-content: start;
}

.mvp-hero {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(31, 42, 122, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31, 42, 122, 0.94), rgba(17, 25, 79, 0.96)),
    var(--brand-blue-2);
  color: #ffffff;
  box-shadow: 0 20px 42px rgba(17, 25, 79, 0.22);
}

.mvp-crown {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--amber);
}

.mvp-crown .icon {
  width: 28px;
  height: 28px;
}

.mvp-hero span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.mvp-hero h3 {
  overflow: hidden;
  margin: 3px 0 4px;
  font-size: 25px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mvp-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.mvp-hero > strong {
  display: grid;
  min-width: 48px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.mvp-list {
  display: grid;
  gap: 9px;
}

.mvp-row {
  display: grid;
  grid-template-columns: 30px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 25, 79, 0.07);
}

.mvp-row.is-leader {
  border-color: rgba(255, 178, 26, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 178, 26, 0.12), rgba(31, 42, 122, 0.04)),
    #ffffff;
}

.mvp-rank {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), #ffdf84);
  color: #18100a;
  font-size: 12px;
  font-weight: 950;
}

.mvp-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
}

.mvp-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.mvp-copy strong,
.mvp-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mvp-copy strong {
  color: var(--brand-blue-2);
  font-size: 14px;
  font-weight: 950;
}

.mvp-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.mvp-score {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.mvp-score strong {
  color: var(--brand-blue-2);
  font-size: 20px;
  line-height: 1;
}

.mvp-score span {
  color: #06724d;
  font-size: 11px;
  font-weight: 950;
}

.upcoming-match-card {
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31, 42, 122, 0.06), rgba(207, 16, 24, 0.06)),
    #ffffff;
}

.versus-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 86px;
  padding: 12px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--brand-blue-2), var(--brand-blue));
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(31, 42, 122, 0.2);
}

.versus-card strong {
  overflow: hidden;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.versus-card strong:last-child {
  text-align: right;
}

.versus-card span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand-red);
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.match-status-box {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(226, 230, 240, 0.96);
  border-radius: 14px;
  background: #f8faff;
}

.match-status-box span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.match-status-box strong {
  color: var(--brand-blue-2);
  font-size: 14px;
  line-height: 1.25;
}

.match-status-box.is-pending {
  border-color: rgba(255, 178, 26, 0.34);
  background: rgba(255, 178, 26, 0.1);
}

.match-status-box.is-approved {
  border-color: rgba(22, 199, 132, 0.3);
  background: rgba(22, 199, 132, 0.1);
}

.match-status-box.is-approved span {
  color: #06724d;
}

.match-status-box.is-proposed {
  border-color: rgba(31, 42, 122, 0.28);
  background: rgba(31, 42, 122, 0.08);
}

.match-status-box.is-rejected {
  border-color: rgba(207, 16, 24, 0.24);
  background: rgba(207, 16, 24, 0.07);
}

.match-status-box.is-rejected span {
  color: var(--brand-red);
}

.created-match-card {
  border-color: rgba(22, 199, 132, 0.26);
  background:
    linear-gradient(135deg, rgba(22, 199, 132, 0.08), transparent 50%),
    #ffffff;
}

.created-versus-card {
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-red));
}

.selected-slot-list {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #edf0f7;
  border-radius: 13px;
  background: #ffffff;
}

.selected-slot-list span,
.selected-slot-list.is-empty {
  color: #4c5570;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.selected-slot-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 7px;
}

.selected-slot-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-slot-list button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: #f1f3fa;
  color: var(--brand-red);
}

.selected-slot-list button .icon {
  width: 15px;
  height: 15px;
}

.slot-selection-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 42, 122, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31, 42, 122, 0.09), rgba(207, 16, 24, 0.06)),
    #ffffff;
  box-shadow: 0 18px 38px rgba(17, 25, 79, 0.1);
}

.slot-selection-panel h1 {
  margin: 0;
  color: var(--brand-blue-2);
  font-size: 24px;
  line-height: 1.02;
}

.slot-selection-panel p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.selection-progress {
  display: grid;
  gap: 7px;
}

.selection-progress strong {
  color: var(--brand-blue-2);
  font-size: 12px;
  font-weight: 950;
}

.selection-progress span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red), var(--amber));
  box-shadow: 0 8px 18px rgba(207, 16, 24, 0.18);
}

.player-slot-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(31, 42, 122, 0.12);
  border-radius: 10px;
  background: #ffffff;
}

.player-slot-form label,
.admin-proposal-form label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.player-slot-form input,
.player-slot-form select,
.admin-proposal-form input,
.admin-proposal-form select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--brand-blue-2);
  font: inherit;
  font-size: 11px;
  font-weight: 850;
}

.player-slot-form label:nth-child(3),
.player-slot-form .secondary-dark-button {
  grid-column: 1 / -1;
}

.player-proposal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.player-proposal-actions .ghost-button {
  min-width: 100px;
}

.slot-selection-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.slot-selection-actions .ghost-button {
  width: auto;
  min-width: 102px;
  padding: 0 12px;
}

.calendar-slot.is-selectable span {
  border: 1px solid rgba(31, 42, 122, 0.18);
  background: #ffffff;
  color: var(--brand-blue-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.calendar-slot.is-choice span {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(31, 42, 122, 0.2);
}

.calendar-slot:disabled {
  cursor: not-allowed;
}

.schedule-request-card {
  display: grid;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 25, 79, 0.07);
}

.schedule-request-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.admin-slot-options {
  display: grid;
  gap: 8px;
}

.admin-slot-option {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #edf0f7;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #ffffff, #f8faff);
  color: var(--brand-blue-2);
  text-align: left;
}

.admin-slot-option span {
  color: var(--brand-red);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-slot-option strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-admin-actions {
  display: grid;
  gap: 9px;
  padding-top: 2px;
}

.ghost-button.is-danger {
  border-color: rgba(207, 16, 24, 0.18);
  color: var(--brand-red);
}

.admin-proposal-form {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(31, 42, 122, 0.1);
  border-radius: 10px;
  background: #f7f8fc;
}

.admin-proposal-form > strong {
  color: var(--brand-blue-2);
  font-size: 11px;
}

.admin-proposal-form > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.inline-warning {
  padding: 12px 13px;
  border: 1px solid rgba(207, 16, 24, 0.18);
  border-radius: var(--radius);
  background: rgba(207, 16, 24, 0.07);
  color: var(--brand-red-2);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.pending-screen {
  display: grid;
  min-height: 100%;
  height: 100%;
  place-items: center;
  padding: calc(22px + env(safe-area-inset-top)) 18px calc(22px + env(safe-area-inset-bottom));
  background:
    linear-gradient(160deg, rgba(207, 16, 24, 0.11), transparent 42%),
    linear-gradient(24deg, rgba(31, 42, 122, 0.12), transparent 48%),
    var(--paper);
}

.pending-card {
  display: grid;
  width: 100%;
  gap: 13px;
  justify-items: center;
  padding: 20px;
  border: 1px solid rgba(226, 230, 240, 0.92);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 24px 52px rgba(17, 25, 79, 0.14);
  text-align: center;
}

.status-orb {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(31, 42, 122, 0.12), rgba(207, 16, 24, 0.12));
  color: var(--brand-blue-2);
}

.pending-card h1 {
  margin: 0;
  color: var(--brand-blue-2);
  font-size: 26px;
  line-height: 1.03;
}

.pending-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.pending-meta {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faff;
  text-align: left;
}

.pending-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.pending-meta strong {
  overflow: hidden;
  color: var(--brand-blue-2);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-match-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-match-form {
  border-radius: 16px;
}

.created-match-admin-list {
  display: grid;
  gap: 9px;
}

.created-match-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 25, 79, 0.07);
}

.created-match-row .match-result-form {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.created-match-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.created-match-copy strong,
.created-match-copy span,
.created-match-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.created-match-copy strong {
  color: var(--brand-blue-2);
  font-size: 14px;
  font-weight: 950;
}

.created-match-copy span {
  color: #4c5570;
  font-size: 12px;
  font-weight: 820;
}

.created-match-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.admin-match-schedule-status {
  grid-column: 1 / -1;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(31, 42, 122, 0.1);
  border-radius: 10px;
  background: #f6f7fb;
}

.admin-match-schedule-status > div {
  display: grid;
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 1px 7px;
}

.admin-match-schedule-status > div > span {
  grid-row: 1 / 3;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: rgba(31, 42, 122, 0.1);
  color: var(--brand-blue-2);
}

.admin-match-schedule-status .icon {
  width: 13px;
  height: 13px;
}

.admin-match-schedule-status strong,
.admin-match-schedule-status small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-match-schedule-status strong {
  color: var(--brand-blue-2);
  font-size: 11px;
  white-space: nowrap;
}

.admin-match-schedule-status small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.admin-match-schedule-status.is-approved {
  border-color: rgba(22, 137, 87, 0.18);
  background: rgba(22, 137, 87, 0.07);
}

.admin-match-schedule-status.is-pending {
  border-color: rgba(211, 151, 14, 0.2);
  background: rgba(255, 191, 0, 0.09);
}

.admin-match-schedule-status.is-rejected {
  border-color: rgba(207, 16, 24, 0.16);
  background: rgba(207, 16, 24, 0.05);
}

.match-result-details {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.match-result-details > summary {
  display: grid;
  min-height: 42px;
  grid-template-columns: 18px minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--brand-blue-2);
  cursor: pointer;
  list-style: none;
}

.match-result-details > summary::-webkit-details-marker {
  display: none;
}

.match-result-details > summary .icon {
  width: 14px;
  height: 14px;
  color: var(--brand-red);
}

.match-result-details > summary span {
  font-size: 11px;
  font-weight: 900;
}

.match-result-details > summary small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-approval-panel {
  display: grid;
  gap: 14px;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(31, 42, 122, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31, 42, 122, 0.07), transparent 52%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(17, 25, 79, 0.08);
}

.admin-head > div,
.admin-intro > div,
.section-head > div {
  min-width: 0;
}

.admin-head h1 {
  margin: 0;
  color: var(--brand-blue-2);
  font-size: 20px;
  line-height: 1.08;
}

.venue-admin-panel {
  display: grid;
  gap: 14px;
}

.admin-venue-list {
  display: grid;
  gap: 10px;
}

.admin-venue-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 25, 79, 0.07);
}

.admin-venue-photo {
  min-height: 70px;
  border-radius: 12px;
  background-image:
    linear-gradient(180deg, rgba(7, 10, 23, 0.08), rgba(7, 10, 23, 0.34)),
    var(--venue-image);
  background-position: center;
  background-size: cover;
}

.admin-venue-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-venue-copy strong,
.admin-venue-copy span,
.admin-venue-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-venue-copy strong {
  color: var(--brand-blue-2);
  font-size: 14px;
  font-weight: 950;
}

.admin-venue-copy span {
  color: #4c5570;
  font-size: 12px;
  font-weight: 800;
}

.admin-venue-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.venue-photo-action {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  cursor: pointer;
}

.venue-photo-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.status-count {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-red));
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
}

.approval-list {
  display: grid;
  gap: 10px;
}

.approval-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 25, 79, 0.07);
}

.user-management-panel,
.admin-user-form {
  display: grid;
  gap: 12px;
}

.admin-venue-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-venue-fieldset legend {
  margin-bottom: 8px;
  color: var(--brand-blue-2);
  font-size: 12px;
  font-weight: 950;
}

.admin-user-venues {
  display: grid;
  gap: 8px;
}

.admin-user-venue {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f8fc;
  opacity: 0.68;
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.admin-user-venue.is-selected {
  border-color: rgba(31, 42, 122, 0.28);
  background: #ffffff;
  opacity: 1;
  box-shadow: 0 9px 20px rgba(17, 25, 79, 0.07);
}

.admin-venue-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--brand-blue-2);
  cursor: pointer;
}

.form-grid .admin-venue-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-venue-toggle > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(31, 42, 122, 0.18);
  border-radius: 7px;
  background: #ffffff;
  color: transparent;
}

.form-grid .admin-venue-toggle input:checked + span {
  border-color: var(--brand-blue-2);
  background: var(--brand-blue-2);
  color: #ffffff;
}

.admin-venue-toggle .icon {
  width: 14px;
  height: 14px;
}

.admin-venue-toggle strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-venue-payment-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-venue-payment-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.admin-venue-payment-controls select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 11px;
}

.admin-league-options {
  display: grid;
  gap: 6px;
}

.admin-league-options > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.admin-league-options > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.admin-league-options label,
.achievement-selector label {
  cursor: pointer;
}

.form-grid .admin-league-options input,
.form-grid .achievement-selector input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}

.admin-league-options label span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f8fc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.admin-league-options input:checked + span {
  border-color: var(--brand-blue-2);
  background: var(--brand-blue-2);
  color: #ffffff;
}

.achievement-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.achievement-selector label span {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f8fc;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.achievement-selector label:last-child {
  grid-column: 1 / -1;
}

.achievement-selector input:checked + span {
  border-color: rgba(207, 16, 24, 0.26);
  background: rgba(207, 16, 24, 0.08);
  color: var(--brand-red);
}

.achievement-selector .icon {
  width: 13px;
  height: 13px;
}

.approval-details .achievement-badge {
  background: rgba(207, 16, 24, 0.08);
  color: var(--brand-red);
}

.automatic-groups-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(31, 42, 122, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 25, 79, 0.07);
}

.match-generation-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.match-generation-flow > div {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: 9px;
  border-radius: 9px;
  background: #f5f6fa;
}

.match-generation-flow span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: var(--brand-blue-2);
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
}

.match-generation-flow strong {
  color: var(--brand-blue-2);
  font-size: 10px;
}

.match-generation-flow small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

.automatic-group-details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
}

.automatic-group-details > summary {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--brand-blue-2);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  list-style: none;
}

.automatic-group-details > summary::-webkit-details-marker {
  display: none;
}

.automatic-group-details > summary .icon {
  width: 14px;
  height: 14px;
}

.automatic-group-details .automatic-group-list {
  padding: 0 8px 8px;
}

.tournament-setup {
  align-content: start;
  gap: 18px;
  padding: 24px 16px;
  border: 1px solid rgba(31, 42, 122, 0.1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 25, 79, 0.1);
}

.tournament-setup-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-blue-2);
  color: #ffffff;
}

.tournament-setup-mark .icon {
  width: 25px;
  height: 25px;
}

.tournament-setup h1 {
  margin: 5px 0 6px;
  color: var(--brand-blue-2);
  font-size: 28px;
  letter-spacing: 0;
}

.tournament-setup p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tournament-setup-form {
  display: grid;
  gap: 14px;
}

.tournament-setup-form label {
  display: grid;
  gap: 7px;
  color: var(--brand-blue-2);
  font-size: 11px;
  font-weight: 900;
}

.tournament-setup-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7f8fc;
  color: var(--brand-blue-2);
  font: inherit;
}

.tournament-category-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.tournament-category-preview legend {
  grid-column: 1 / -1;
  margin-bottom: 7px;
  color: var(--brand-blue-2);
  font-size: 11px;
  font-weight: 900;
}

.tournament-category-preview label {
  position: relative;
  display: block;
}

.tournament-setup-form .tournament-category-preview input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tournament-category-preview label span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  background: rgba(31, 42, 122, 0.07);
  color: var(--brand-blue-2);
  font-size: 11px;
  font-weight: 950;
}

.tournament-category-preview input:checked + span {
  background: var(--brand-blue-2);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 42, 122, 0.18);
}

.tournament-category-preview input:checked + span .icon {
  color: #ffbf00;
}

.tournament-category-preview .icon {
  width: 14px;
  height: 14px;
  color: var(--brand-red);
}

.automatic-groups-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.automatic-groups-head strong {
  color: var(--brand-blue-2);
  font-size: 14px;
}

.automatic-groups-head small {
  color: var(--muted);
  font-size: 10px;
}

.automatic-groups-head .primary-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 10px;
  font-size: 10px;
}

.automatic-groups-action {
  width: 100%;
  min-height: 42px;
}

.scoring-rules-panel,
.match-result-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(31, 42, 122, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.scoring-rules-panel > div:first-child {
  display: grid;
  gap: 2px;
}

.scoring-rules-panel > div:first-child > span,
.match-result-head > div > span {
  color: var(--brand-red);
  font-size: 9px;
  font-weight: 950;
}

.scoring-rules-panel > div:first-child > strong,
.match-result-head > div > strong {
  color: var(--brand-blue-2);
  font-size: 13px;
}

.scoring-rules-panel > div:first-child > small {
  color: var(--muted);
  font-size: 10px;
}

.scoring-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.scoring-rules-grid label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.scoring-rules-grid label > span {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 7px;
  background: #f7f8fc;
  color: var(--brand-blue-2);
  font-size: 10px;
}

.scoring-rules-grid input,
.set-score-row input,
.set-result-title input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--brand-blue-2);
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.scoring-rules-grid input {
  width: 100%;
  height: 30px;
}

.match-result-form {
  margin-top: 2px;
  background: #f7f8fc;
}

.match-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.75fr);
  align-items: end;
  gap: 8px;
}

.match-result-head > div,
.match-result-head label {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.match-result-head label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.match-result-head select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--brand-blue-2);
  font-size: 10px;
  font-weight: 850;
}

.set-score-table {
  display: grid;
  gap: 5px;
}

.set-score-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
}

.set-result-card {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(31, 42, 122, 0.1);
  border-radius: 7px;
  background: #ffffff;
}

.set-result-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.set-result-title > strong {
  color: var(--brand-blue-2);
  font-size: 11px;
  font-weight: 950;
}

.set-result-title label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.set-result-title input {
  width: 48px;
  height: 30px;
}

.set-score-row label,
.set-winner-label {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.set-score-row label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.set-score-row input {
  width: 100%;
  height: 36px;
}

.set-winner-label select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f8fc;
  color: var(--brand-blue-2);
  font-size: 10px;
  font-weight: 850;
}

.match-result-form .primary-button,
.scoring-rules-panel .secondary-dark-button {
  width: 100%;
  min-height: 40px;
}

.demo-group-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(31, 42, 122, 0.1);
  border-radius: 8px;
  background: #f7f8fc;
}

.demo-group-controls > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.demo-group-controls strong {
  color: var(--brand-blue-2);
  font-size: 12px;
}

.demo-group-controls small {
  color: var(--muted);
  font-size: 10px;
}

.demo-group-controls .mini-action {
  flex: 0 0 auto;
  min-height: 36px;
}

.automatic-group-list,
.automatic-team-list {
  display: grid;
  gap: 7px;
}

.automatic-group-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 11px;
  background: #f7f8fc;
}

.automatic-group-card > div:first-child {
  display: grid;
  gap: 2px;
}

.automatic-group-card > div:first-child span,
.automatic-group-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.automatic-group-card strong {
  color: var(--brand-blue-2);
  font-size: 13px;
}

.automatic-team-list span {
  padding: 7px 8px;
  border-radius: 8px;
  background: #ffffff;
  color: #4c5570;
  font-size: 10px;
  font-weight: 850;
}

.admin-user-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-user-form-actions .primary-button,
.admin-user-form-actions .danger-button {
  flex: 1 1 150px;
}

.danger-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(207, 16, 24, 0.18);
  border-radius: 11px;
  background: rgba(207, 16, 24, 0.07);
  color: var(--brand-red);
  font: inherit;
  font-size: 11px;
  font-weight: 950;
}

.danger-button .icon {
  width: 15px;
  height: 15px;
}

.admin-user-editor {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.admin-user-editor summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 9px;
  background: #f2f5ff;
  color: var(--brand-blue-2);
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  list-style: none;
}

.admin-user-editor summary::-webkit-details-marker {
  display: none;
}

.admin-user-editor summary .icon {
  width: 14px;
  height: 14px;
}

.admin-user-editor[open] summary {
  margin-bottom: 10px;
}

.admin-user-editor .form-panel {
  padding: 12px;
  box-shadow: none;
}

.approval-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.approval-avatar.has-photo {
  border: 2px solid #ffffff;
  background: #eef2ff;
  box-shadow: 0 8px 18px rgba(17, 25, 79, 0.13);
}

.approval-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.approval-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.approval-copy strong,
.approval-copy span,
.approval-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-copy strong {
  color: var(--brand-blue-2);
  font-size: 14px;
}

.approval-copy span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.approval-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.approval-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.approval-details em {
  display: inline-flex;
  max-width: 100%;
  min-height: 26px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2f5ff;
  color: var(--brand-blue-2);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-details .icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.approval-actions {
  display: grid;
  min-width: 116px;
  gap: 7px;
}

.profile-photo-action {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(31, 42, 122, 0.08);
  cursor: pointer;
}

.profile-photo-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.approval-status {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(22, 199, 132, 0.13);
  color: #06724d;
  font-size: 11px;
  font-weight: 950;
}

.approval-status .icon {
  width: 14px;
  height: 14px;
}

.empty-approval {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.hero-band {
  position: relative;
  min-height: 282px;
  overflow: hidden;
  padding: 16px;
  border-radius: var(--radius);
  color: #ffffff;
  isolation: isolate;
  box-shadow: 0 24px 48px rgba(17, 25, 79, 0.22);
}

.hero-band::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  content: "";
}

.hero-band::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 10, 23, 0.16), rgba(7, 10, 23, 0.9)),
    linear-gradient(135deg, rgba(31, 42, 122, 0.62), transparent 58%),
    linear-gradient(25deg, rgba(207, 16, 24, 0.28), transparent 56%);
  content: "";
}

.hero-band h1 {
  max-width: 12ch;
  margin: 38px 0 10px;
  font-size: 36px;
  line-height: 1;
}

.hero-band p {
  max-width: 30ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.45;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.hero-actions .ghost-button {
  min-height: 46px;
  background: rgba(255, 255, 255, 0.17);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  color: var(--brand-blue-2);
  font-size: 20px;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.metric-card {
  display: grid;
  min-height: 86px;
  padding: 10px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f9fafc);
  box-shadow: 0 12px 26px rgba(17, 25, 79, 0.07);
}

.metric-card strong {
  color: var(--brand-blue-2);
  font-size: 22px;
}

.metric-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
}

.match-card,
.post-card,
.stat-card,
.profile-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(17, 25, 79, 0.08);
}

.match-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.match-top,
.post-top,
.player-row,
.table-row,
.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.match-kicker,
.post-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.court-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 850;
}

.score-line {
  display: grid;
  gap: 7px;
}

.team-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.team-name {
  overflow: hidden;
  font-size: 16px;
  color: #151a2f;
  font-weight: 880;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score {
  display: flex;
  gap: 5px;
  font-weight: 900;
}

.score span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: #f0f3ff;
  color: var(--brand-blue-2);
}

.winner-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--brand-red);
}

.confirm-grid {
  display: grid;
  gap: 8px;
}

.player-confirm {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius);
  background: #f7f8fc;
  border: 1px solid #eef1f7;
}

.player-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  font-weight: 780;
}

.player-name span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.confirm-button {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--brand-blue-2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.confirm-button.is-done {
  background: rgba(22, 199, 132, 0.14);
  color: #06724d;
}

.progress-line {
  display: grid;
  gap: 6px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0e8;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red), var(--amber));
  transition: width 260ms ease;
}

.post-list,
.match-list,
.table-stack {
  display: grid;
  gap: 12px;
}

.post-card {
  overflow: hidden;
}

.post-top {
  padding: 12px;
}

.post-user {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.post-user strong,
.post-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-user span {
  color: var(--muted);
  font-size: 12px;
}

.post-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e4e8f3;
}

.post-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.action-row {
  display: flex;
  gap: 8px;
}

.round-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.caption {
  margin: 0;
  color: #2f3435;
  font-size: 14px;
  line-height: 1.4;
}

.stories-row,
.venue-tabs,
.segmented {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.stories-row::-webkit-scrollbar,
.venue-tabs::-webkit-scrollbar,
.segmented::-webkit-scrollbar {
  display: none;
}

.story-chip,
.segmented button,
.venue-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.story-chip.is-active,
.segmented button.is-active,
.venue-tabs button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-blue));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 42, 122, 0.18);
}

.form-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(31, 42, 122, 0.06), transparent 52%),
    #ffffff;
}

.form-grid {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.form-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-grid input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
  color: var(--ink);
  font-size: 16px;
  outline: 0;
}

.form-grid select {
  min-height: 48px;
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 780;
  outline: 0;
}

.form-grid input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(31, 42, 122, 0.12);
}

.form-grid select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(31, 42, 122, 0.12);
}

.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.stat-card {
  overflow: hidden;
}

.stat-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #ffffff, #f7f8ff);
}

.stat-title h3 {
  margin: 0;
  color: var(--brand-blue-2);
  font-size: 16px;
}

.table-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px 42px 42px 42px;
  min-height: 48px;
  padding: 0 12px;
  border-bottom: 1px solid #edf0e8;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row.head {
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.rank {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), #ffdc73);
  color: #18100a;
  font-size: 12px;
  font-weight: 900;
}

.pair-name {
  overflow: hidden;
  font-weight: 830;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-row > span:not(.pair-name):not(.rank) {
  color: #333839;
  text-align: right;
  font-weight: 750;
}

.winner-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(207, 16, 24, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(31, 42, 122, 0.06), transparent),
    #ffffff;
}

.winner-card strong {
  font-size: 13px;
}

.trophy-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-red));
  color: var(--amber);
}

.profile-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.profile-row {
  min-height: 58px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
}

.profile-row:last-child {
  border-bottom: 0;
}

.profile-row span {
  color: var(--muted);
  font-size: 13px;
}

.profile-row strong {
  font-size: 14px;
}

.admin-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(31, 42, 122, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31, 42, 122, 0.08), transparent 54%),
    linear-gradient(25deg, rgba(207, 16, 24, 0.08), transparent 62%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(17, 25, 79, 0.08);
}

.admin-intro h3 {
  margin: 0;
  color: var(--brand-blue-2);
  font-size: 20px;
  line-height: 1.08;
}

.admin-intro p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.32;
}

.admin-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-red));
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(31, 42, 122, 0.2);
}

.admin-panel {
  gap: 11px;
  min-width: 0;
  max-width: 100%;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  max-width: 100%;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(226, 230, 240, 0.96);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(17, 25, 79, 0.08);
}

.admin-tabs button {
  position: relative;
  display: inline-flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 0 9px;
  border-radius: 12px;
  background: #f6f8fc;
  color: #4c5570;
  font-size: clamp(10px, 2.65vw, 11.5px);
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.admin-tabs button .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.admin-tabs button.is-active {
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-blue));
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(31, 42, 122, 0.18);
}

.admin-tabs button > span {
  position: absolute;
  right: 4px;
  top: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
}

.admin-block {
  display: grid;
  gap: 10px;
}

.admin-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-block-head strong {
  color: var(--brand-blue-2);
  font-size: 14px;
}

.admin-block-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.upload-logo {
  position: relative;
  overflow: hidden;
}

.upload-logo input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.player-photo-grid,
.logo-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.player-photo-tile {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 9px;
  border: 1px solid #edf0f7;
  border-radius: var(--radius);
  background: #f9faff;
}

.player-photo-tile strong,
.player-photo-tile span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-photo-tile strong {
  color: #151a2f;
  font-size: 13px;
}

.player-photo-tile span:last-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.mock-player-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  overflow: hidden;
  border-radius: 7px;
  background-image: url("assets/real-padel-players.jpg");
  background-size: 360%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.photo-1 {
  background-position: 6% 42%;
}

.photo-2 {
  background-position: 37% 42%;
}

.photo-3 {
  background-position: 66% 42%;
}

.photo-4 {
  background-position: 92% 42%;
}

.logo-option {
  display: grid;
  min-height: 72px;
  min-width: 0;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid #edf0f7;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--brand-blue-2);
  text-align: center;
}

.logo-option.is-selected {
  border-color: rgba(207, 16, 24, 0.42);
  background: linear-gradient(180deg, #ffffff, #fff6f7);
  box-shadow: 0 10px 22px rgba(207, 16, 24, 0.1);
}

.logo-option img {
  max-width: 92px;
  max-height: 30px;
  object-fit: contain;
}

.logo-option strong {
  font-size: 15px;
  line-height: 1.05;
}

.logo-option span {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-preview-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(17, 25, 79, 0.08);
}

.poster-reference-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #080d14;
  box-shadow: 0 18px 36px rgba(17, 25, 79, 0.14);
}

.poster-reference-image.is-feed {
  border-radius: 0;
  box-shadow: none;
}

.ai-poster {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 620px;
  overflow: hidden;
  align-content: space-between;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.2) 0 9%, transparent 9% 18%, rgba(255, 255, 255, 0.14) 18% 26%, transparent 26%),
    linear-gradient(65deg, transparent 0 42%, rgba(255, 255, 255, 0.18) 42% 54%, transparent 54%),
    #dfb27d;
  color: #ffffff;
  isolation: isolate;
}

.ai-poster::before,
.ai-poster::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}

.ai-poster::before {
  background:
    repeating-linear-gradient(115deg, transparent 0 10px, rgba(255, 255, 255, 0.22) 10px 12px, transparent 12px 20px),
    linear-gradient(180deg, rgba(92, 53, 20, 0.02), rgba(92, 53, 20, 0.18));
  opacity: 0.42;
}

.ai-poster::after {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
  box-shadow: inset 0 0 90px rgba(84, 43, 11, 0.16);
}

.ai-poster.blue {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0 9%, transparent 9% 18%, rgba(255, 255, 255, 0.12) 18% 26%, transparent 26%),
    linear-gradient(180deg, #2c3a98, #0f174c);
}

.ai-poster.red {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0 9%, transparent 9% 18%, rgba(255, 255, 255, 0.12) 18% 26%, transparent 26%),
    linear-gradient(180deg, #d74447, #8b0b18);
}

.ai-poster.is-feed {
  min-height: 560px;
  border-radius: 0;
}

.ai-poster-output {
  position: relative;
  display: block;
  width: min(100%, 260px);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius);
  background: #08101c;
  box-shadow: 0 18px 36px rgba(17, 25, 79, 0.14);
}

.ai-poster-output img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-poster-output span {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 13, 20, 0.58);
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  backdrop-filter: blur(14px);
}

.ai-poster-output.is-feed {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.poster-top,
.poster-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.poster-logos {
  display: grid;
  min-width: 120px;
  min-height: 44px;
  place-items: center;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: #182044;
  text-align: center;
}

.poster-logos img,
.poster-sponsors img {
  max-width: 118px;
  max-height: 38px;
  object-fit: contain;
}

.poster-logos strong,
.poster-sponsors strong {
  font-size: 13px;
  line-height: 1.05;
}

.poster-time {
  display: grid;
  width: 104px;
  min-height: 94px;
  align-content: center;
  padding: 10px;
  border-radius: 7px;
  background: rgba(186, 112, 50, 0.72);
  text-transform: uppercase;
}

.poster-time span,
.poster-time strong {
  display: block;
  line-height: 1;
}

.poster-time span {
  font-size: 30px;
  font-weight: 950;
}

.poster-time strong {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 950;
}

.poster-team {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.poster-team strong {
  min-width: min(88%, 290px);
  padding: 12px 18px;
  border-radius: 999px 999px 999px 14px;
  background: rgba(196, 118, 51, 0.86);
  color: #ffffff;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.poster-players {
  display: flex;
  justify-content: center;
  width: 100%;
}

.poster-player-photo {
  display: grid;
  width: 118px;
  height: 158px;
  place-items: end center;
  overflow: hidden;
  margin: 0 -8px;
  border-radius: 52px 52px 10px 10px;
  background-image: url("assets/real-padel-players.jpg");
  background-size: 520%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 12px 16px rgba(61, 31, 9, 0.22));
}

.poster-player-photo span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 25, 79, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.poster-versus {
  display: grid;
  justify-items: center;
  margin: -4px 0;
}

.poster-versus span {
  display: grid;
  width: 106px;
  height: 82px;
  place-items: center;
  transform: rotate(-8deg);
  color: #ffffff;
  font-size: 44px;
  font-weight: 950;
  text-shadow:
    -3px -3px 0 #111,
    3px -3px 0 #111,
    -3px 3px 0 #111,
    3px 3px 0 #111,
    0 8px 0 rgba(0, 0, 0, 0.22);
}

.poster-sponsors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}

.poster-sponsors div {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.55);
  color: #182044;
  text-align: center;
}

.poster-footer {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.poster-builder {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.poster-builder-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  max-width: 100%;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(226, 230, 240, 0.96);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(207, 16, 24, 0.08), transparent 52%),
    linear-gradient(25deg, rgba(31, 42, 122, 0.08), transparent 62%),
    #ffffff;
  box-shadow: 0 18px 38px rgba(17, 25, 79, 0.1);
}

.poster-builder-head h1 {
  margin: 0;
  color: var(--brand-blue-2);
  font-size: 26px;
  line-height: 1.02;
}

.poster-builder-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.poster-ai-badge {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-red));
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 14px 26px rgba(207, 16, 24, 0.22);
}

.poster-quota-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(31, 42, 122, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(17, 25, 79, 0.06), rgba(207, 16, 24, 0.05)),
    #ffffff;
}

.poster-quota-card span,
.poster-quota-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.poster-quota-card strong {
  display: block;
  margin-top: 3px;
  color: var(--brand-blue-2);
  font-size: 17px;
  line-height: 1.1;
}

.poster-quota-ring {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 56%, transparent 57%),
    conic-gradient(var(--brand-red) var(--quota-used), rgba(31, 42, 122, 0.12) 0);
}

.poster-quota-ring strong {
  margin: 0;
  font-size: 20px;
}

.poster-quota-ring small {
  margin-top: -18px;
  font-size: 9px;
  text-transform: uppercase;
}

.poster-quota-bar {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 42, 122, 0.1);
}

.poster-quota-bar i {
  display: block;
  width: var(--quota-used);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
}

.poster-editor {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.poster-control-panel {
  border-radius: 16px;
  min-width: 0;
  max-width: 100%;
}

.poster-upload-card {
  position: relative;
  display: grid;
  min-height: 118px;
  min-width: 0;
  max-width: 100%;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 10px;
  overflow: hidden;
  border: 1px dashed rgba(31, 42, 122, 0.2);
  border-radius: 13px;
  background:
    linear-gradient(180deg, #ffffff, #f7f9ff);
  color: var(--brand-blue-2);
  text-align: center;
}

.poster-upload-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.poster-upload-card.has-file {
  border-style: solid;
  border-color: rgba(31, 42, 122, 0.18);
  background: #ffffff;
}

.poster-upload-card strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-upload-card small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(31, 42, 122, 0.12), rgba(207, 16, 24, 0.12));
  color: var(--brand-blue-2);
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-photo-slot {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.sponsor-uploader {
  min-height: 92px;
}

.sponsor-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.sponsor-chip {
  position: relative;
  display: grid;
  min-height: 74px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 9px 30px 8px 8px;
  border: 1px solid #edf0f7;
  border-radius: 12px;
  background: #ffffff;
}

.sponsor-chip img {
  max-width: 100%;
  max-height: 34px;
  object-fit: contain;
}

.sponsor-chip span {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sponsor-chip button {
  position: absolute;
  right: 7px;
  top: 7px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--brand-blue-2);
}

.sponsor-chip button .icon {
  width: 14px;
  height: 14px;
}

.empty-sponsor {
  display: grid;
  min-height: 58px;
  place-items: center;
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.mini-action {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--brand-blue-2);
  font-size: 11px;
  font-weight: 900;
}

.mini-action .icon {
  width: 14px;
  height: 14px;
}

.poster-actions {
  display: grid;
  gap: 9px;
  min-width: 0;
}

[data-poster-preview] {
  display: grid;
  justify-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.poster-preview-card .ai-poster {
  width: min(100%, 260px);
  min-height: 448px;
  gap: 4px;
  padding: 8px;
}

.poster-preview-card .logo-mark.poster {
  width: 86px;
  height: 32px;
}

.poster-preview-card .logo-mark.poster img {
  width: 78px;
}

.poster-preview-card .poster-venue-lockup strong {
  font-size: 11px;
}

.poster-preview-card .poster-venue-lockup span {
  font-size: 8px;
}

.poster-preview-card .poster-time {
  width: 56px;
  min-height: 54px;
  padding: 6px;
}

.poster-preview-card .poster-time span {
  font-size: 17px;
}

.poster-preview-card .poster-time strong {
  margin-top: 4px;
  font-size: 20px;
}

.poster-preview-card .poster-round span {
  font-size: 10px;
}

.poster-preview-card .poster-round strong {
  margin-top: 2px;
  font-size: 7px;
}

.poster-preview-card .poster-player-photo {
  width: 60px;
  height: 78px;
  margin: 0 -3px;
  border-radius: 27px 27px 7px 7px;
}

.poster-preview-card .poster-player-photo span {
  width: 22px;
  height: 22px;
  margin-bottom: 5px;
  font-size: 8px;
}

.poster-preview-card .poster-team {
  gap: 4px;
}

.poster-preview-card .poster-team strong {
  min-width: min(82%, 178px);
  padding: 6px 9px;
  font-size: 14px;
}

.poster-preview-card .poster-versus {
  margin: -2px 0;
}

.poster-preview-card .poster-versus span {
  width: 48px;
  height: 34px;
  font-size: 22px;
  text-shadow:
    -2px -2px 0 #111,
    2px -2px 0 #111,
    -2px 2px 0 #111,
    2px 2px 0 #111,
    0 6px 0 rgba(0, 0, 0, 0.2);
}

.poster-preview-card .poster-versus small {
  min-height: 18px;
  padding: 0 7px;
  font-size: 6px;
}

.poster-preview-card .poster-sponsors {
  gap: 6px;
}

.poster-preview-card .poster-sponsors div {
  min-height: 28px;
  padding: 5px;
}

.poster-preview-card .poster-sponsors strong {
  font-size: 8px;
}

.poster-preview-card .poster-footer {
  font-size: 7px;
}

.secondary-dark-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
  color: #ffffff;
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(31, 42, 122, 0.16);
}

.primary-button:disabled,
.secondary-dark-button:disabled,
.ghost-button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.poster-preview-top,
.poster-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.poster-preview-top strong,
.poster-feed-head h2 {
  display: block;
  margin: 0;
  color: var(--brand-blue-2);
  font-size: 17px;
  line-height: 1.05;
}

.poster-preview-top span,
.poster-feed-head p {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.poster-venue-lockup {
  display: grid;
  justify-items: end;
  color: #ffffff;
  text-align: right;
}

.poster-venue-lockup strong {
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0;
}

.poster-venue-lockup span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 850;
}

.poster-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.poster-round {
  display: grid;
  min-width: 0;
  justify-items: end;
  color: #ffffff;
  text-align: right;
}

.poster-round span {
  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.poster-round strong {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.poster-player-photo.is-empty {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(135deg, var(--brand-blue-2), var(--brand-red));
}

.poster-player-photo.is-uploaded {
  background: rgba(255, 255, 255, 0.18);
}

.poster-player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-versus small {
  display: inline-grid;
  max-width: 92%;
  min-height: 32px;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.poster-sponsor-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: -2px 0 2px;
}

.poster-sponsor-strip:has(div:nth-child(3)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.poster-sponsor-strip:has(div:nth-child(3)) div {
  min-height: 48px;
}

.published-poster-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(226, 230, 240, 0.96);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 46px rgba(17, 25, 79, 0.12);
}

.poster-feed-frame {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(17, 25, 79, 0.16);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(226, 230, 240, 0.92);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 -12px 30px rgba(17, 25, 79, 0.08);
  transform: translateZ(0);
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.nav-button {
  display: grid;
  min-height: 64px;
  padding: 5px 2px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.nav-button span {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.nav-button .icon {
  width: 19px;
  height: 19px;
}

.nav-button.is-active {
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-blue));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 42, 122, 0.2);
}

.toast {
  position: fixed;
  right: 14px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 14px;
  z-index: 30;
  width: min(calc(100vw - 28px), 402px);
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-red));
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  animation: toastIn 260ms ease both;
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

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

@keyframes pulseIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loaderMove {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(260%);
  }
}

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

@media (min-width: 760px) {
  body {
    padding: 26px 0;
  }

  .app-shell {
    height: calc(100svh - 52px);
    min-height: calc(100svh - 52px);
    border-radius: 22px;
  }

  .bottom-nav {
    bottom: 26px;
    border-radius: 0 0 22px 22px;
  }
}

@media (max-width: 430px) {
  .app-shell {
    width: 100vw;
    box-shadow: none;
  }

  .screen,
  .auth-screen {
    padding-right: 16px;
    padding-left: 16px;
  }

  .content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .bottom-nav {
    width: 100%;
  }

  .automatic-groups-head {
    display: block;
  }

  .demo-group-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-group-controls .mini-action {
    justify-content: center;
    width: 100%;
  }

  .scoring-rules-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .auth-copy h1 {
    font-size: 40px;
  }

  .venue-heading h1 {
    font-size: 32px;
  }

  .hero-band {
    min-height: 258px;
  }

  .hero-band h1 {
    font-size: 31px;
  }

  .section-head {
    align-items: start;
  }

  .approval-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .approval-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .table-row {
    grid-template-columns: 30px minmax(0, 1fr) 28px 34px 34px 34px;
    padding: 0 9px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
