:root {
  --ink: #12110d;
  --muted: #706c60;
  --line: #ded6c5;
  --soft: #fbf7eb;
  --panel: #ffffff;
  --night: #090908;
  --play: #f3b61f;
  --connect: #f2ede2;
  --clash: #22aebd;
  --gold: var(--play);
  --green: var(--clash);
  --green-dark: #0b7f8c;
  --coral: #f05d3d;
  --blue: var(--clash);
  --shadow: 0 18px 45px rgba(9, 9, 8, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(243, 182, 31, 0.28), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(34, 174, 189, 0.2), transparent 28rem),
    linear-gradient(120deg, rgba(242, 237, 226, 0.8), rgba(255, 255, 255, 0.72)),
    #f8f1df;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 35% 24%, rgba(243, 182, 31, 0.24), transparent 17rem),
    radial-gradient(circle at 70% 64%, rgba(34, 174, 189, 0.22), transparent 18rem),
    #090908;
  transition: opacity 320ms ease, visibility 320ms ease;
}

.splash-screen.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.splash-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(330px, 86vw);
}

.splash-card img {
  width: min(210px, 58vw);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(243, 182, 31, 0.72);
  border-radius: 14px;
  box-shadow:
    0 0 34px rgba(243, 182, 31, 0.34),
    0 0 52px rgba(34, 174, 189, 0.18);
  animation: splashLogo 900ms ease both;
}

.splash-tagline {
  display: flex;
  gap: 8px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: splashText 520ms ease 520ms both;
}

.splash-tagline span:first-child {
  color: var(--play);
}

.splash-tagline span:nth-child(2) {
  color: var(--connect);
}

.splash-tagline span:last-child {
  color: var(--clash);
}

.splash-loader {
  width: min(220px, 64vw);
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.splash-loader span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--play), var(--connect), var(--clash));
  animation: splashLoad 1800ms ease 420ms forwards;
}

@keyframes splashLogo {
  0% {
    transform: translateY(14px) scale(0.92);
    opacity: 0;
  }
  70% {
    transform: translateY(0) scale(1.03);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

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

@keyframes splashLoad {
  to {
    transform: scaleX(1);
  }
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

body.auth-locked .app-shell {
  grid-template-columns: 1fr;
}

body.auth-locked .sidebar,
body.auth-locked .topbar,
body.auth-locked .menu-toggle,
body.auth-locked .app-drawer {
  display: none;
}

body.auth-locked .main {
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  color: #f9fbf7;
  background:
    linear-gradient(rgba(9, 9, 8, 0.82), rgba(9, 9, 8, 0.94)),
    url("https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?auto=format&fit=crop&w=900&q=80");
  background-size: cover;
  background-position: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid rgba(243, 182, 31, 0.72);
  border-radius: 8px;
  box-shadow: 0 0 26px rgba(243, 182, 31, 0.28), 0 0 34px rgba(34, 174, 189, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.12rem;
}

.brand small {
  color: rgba(255, 255, 255, 0.76);
}

.brand-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 620px;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 5.9rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.brand-line span:first-child {
  color: var(--gold);
}

.brand-line span:nth-child(2) {
  color: var(--connect);
}

.brand-line span:last-child {
  color: var(--clash);
}

.nav-list {
  display: none;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.nav-icon {
  display: none;
}

.sidebar-panel {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.sidebar-panel h2 {
  margin: 6px 0 8px;
  font-size: 1.35rem;
  line-height: 1.05;
}

.sidebar-panel p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.main {
  min-width: 0;
  padding: 28px;
}

.account-bar {
  position: sticky;
  top: 18px;
  z-index: 5;
  display: flex;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.12);
}

.menu-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 20;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 24, 32, 0.74);
  box-shadow: var(--shadow);
}

.app-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 19;
  display: grid;
  align-content: start;
  gap: 10px;
  width: min(360px, 82vw);
  padding: 76px 18px 18px;
  transform: translateX(-105%);
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(16, 24, 32, 0.88);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease;
}

.app-drawer.open {
  transform: translateX(0);
}

.drawer-item,
.drawer-subitem {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 850;
  text-align: left;
}

.drawer-item {
  padding: 0 14px;
}

.drawer-item.active,
.drawer-subitem.active {
  color: var(--night);
  background: #fff;
}

.drawer-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.drawer-group > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-subitem {
  padding: 0 12px;
}

.guidelines-link {
  width: fit-content;
  min-height: 34px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 850;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 1.02rem;
  font-weight: 900;
}

.icon-button:hover {
  background: #edf5f0;
}

.mini-profile {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background:
    linear-gradient(rgba(16, 24, 32, 0.08), rgba(16, 24, 32, 0.16)),
    url("https://images.unsplash.com/photo-1566753323558-f4e0952af115?auto=format&fit=crop&w=160&q=80");
  background-size: cover;
  background-position: center;
}

.topbar,
.toolbar,
.flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.choice-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(360px, 1.25fr);
  gap: 24px;
  align-items: stretch;
  min-height: 430px;
  padding: 28px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 22%, rgba(243, 182, 31, 0.22), transparent 18rem),
    radial-gradient(circle at 72% 25%, rgba(34, 174, 189, 0.22), transparent 20rem),
    linear-gradient(90deg, rgba(9, 9, 8, 0.92), rgba(9, 9, 8, 0.32)),
    url("https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.choice-hero h2 {
  max-width: 560px;
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.92;
}

.choice-hero p,
.choice-hero .eyebrow {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.8);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  align-self: end;
}

.choice-card {
  display: grid;
  align-content: end;
  min-height: 250px;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(rgba(16, 24, 32, 0.12), rgba(16, 24, 32, 0.78)),
    rgba(255, 255, 255, 0.14);
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(12px);
}

.choice-card:hover {
  transform: translateY(-2px);
}

.choice-card strong {
  font-size: 1.7rem;
  line-height: 1;
}

.choice-card span:last-child {
  color: rgba(255, 255, 255, 0.76);
}

.auth-screen,
.profile-setup {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 620px;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(243, 182, 31, 0.22), transparent 16rem),
    radial-gradient(circle at 88% 18%, rgba(34, 174, 189, 0.24), transparent 16rem),
    linear-gradient(135deg, rgba(9, 9, 8, 0.96), rgba(9, 9, 8, 0.72)),
    url("https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.profile-setup-copy,
.auth-brand {
  display: grid;
  align-content: end;
  min-height: 360px;
}

.auth-brand img {
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
  object-fit: cover;
  border: 1px solid rgba(243, 182, 31, 0.72);
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(243, 182, 31, 0.24);
}

.auth-brand h2,
.profile-setup h2 {
  max-width: 420px;
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.92;
}

.auth-brand p,
.profile-setup p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.76);
}

.auth-panel,
.profile-setup .profile-form {
  align-self: center;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.auth-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  background: #fff;
}

.auth-provider span {
  font-weight: 950;
}

.auth-provider.apple {
  color: #fff;
  border-color: #090908;
  background: #090908;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-divider:before,
.auth-divider:after {
  content: "";
  height: 1px;
  background: var(--line);
}

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

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wide-button {
  width: 100%;
}

.code-form {
  padding-top: 2px;
}

.auth-skip {
  min-height: 42px;
  border: 0;
  color: var(--green-dark);
  background: transparent;
  font-weight: 900;
}

.choice-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.organizer-choice {
  background-image:
    linear-gradient(rgba(16, 24, 32, 0.18), rgba(16, 24, 32, 0.8)),
    url("https://images.unsplash.com/photo-1579952363873-27f3bade9f55?auto=format&fit=crop&w=900&q=80");
}

.player-choice {
  background-image:
    linear-gradient(rgba(16, 24, 32, 0.12), rgba(16, 24, 32, 0.76)),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=900&q=80");
}

h2 {
  margin-bottom: 6px;
  font-size: 1.55rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
}

p {
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-action,
.ghost-button,
.back-link,
.filter-chip {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
}

.primary-action {
  padding: 0 18px;
  color: #090908;
  background: var(--play);
  box-shadow: 0 10px 20px rgba(243, 182, 31, 0.28);
}

.primary-action:hover {
  background: #ffc83a;
}

.primary-action.wide {
  width: 100%;
}

.ghost-button {
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.ghost-button.compact {
  width: fit-content;
  min-height: 38px;
  margin-top: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
}

.back-link:before {
  content: "<";
  font-weight: 900;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-chip {
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  border-color: var(--line);
}

.filter-chip.active {
  color: #090908;
  background: var(--play);
  border-color: rgba(243, 182, 31, 0.86);
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(340px, 1.05fr);
  gap: 22px;
  align-items: start;
}

.finder-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.finder-submit {
  align-self: end;
  min-height: 44px;
}

.match-list {
  display: grid;
  gap: 14px;
}

.empty-state {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.empty-state .primary-action {
  width: fit-content;
}

.match-card,
.detail-panel,
.form-panel,
.summary-panel,
.share-card,
.dashboard-card,
.settings-card,
.profile-hero,
.stat-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.match-card {
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.match-card > span:not(.venue-photo) {
  margin-inline: 16px;
}

.match-card > span:last-child {
  margin-bottom: 16px;
}

.match-card.selected {
  border-color: var(--clash);
  box-shadow: 0 18px 45px rgba(34, 174, 189, 0.2);
}

.match-card-head,
.match-card-foot,
.detail-head,
.dashboard-row,
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.match-title {
  margin-bottom: 4px;
  font-size: 1.05rem;
  font-weight: 900;
}

.organizer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fbf4df;
}

.organizer-line span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.organizer-line strong {
  font-size: 0.9rem;
}

.venue-photo {
  position: relative;
  display: block;
  min-height: 150px;
  background-size: cover;
  background-position: center;
}

.venue-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(16, 24, 32, 0.03), rgba(16, 24, 32, 0.5));
}

.venue-photo .status-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
}

.status-pill,
.level-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.status-pill {
  color: #443102;
  background: #ffe7a1;
}

.status-pill.hot {
  color: #5b220f;
  background: #ffe3d8;
}

.level-pill {
  color: #06383f;
  background: #cef5f8;
}

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

.meta-box {
  min-height: 64px;
  padding: 10px;
  border-radius: 8px;
  background: #fbf4df;
}

.meta-box strong,
.meta-box span {
  display: block;
}

.meta-box strong {
  margin-bottom: 3px;
  font-size: 0.95rem;
}

.meta-box span {
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-panel {
  position: sticky;
  top: 28px;
  overflow: hidden;
}

.pitch-visual {
  position: relative;
  min-height: 190px;
  padding: 18px;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.pitch-visual:after {
  content: "";
  position: absolute;
  inset: 34px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  pointer-events: none;
}

.pitch-visual h2,
.pitch-visual p {
  position: relative;
  z-index: 1;
  max-width: 360px;
  color: inherit;
}

.detail-body {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.match-details-card,
.confirmation-card,
.booking-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.match-details-card {
  overflow: hidden;
}

.match-details-photo {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 320px;
  padding: 18px;
  background-size: cover;
  background-position: center;
}

.match-details-body {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.match-details-body h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.95;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
}

.players-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf4df;
}

.verification-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(34, 174, 189, 0.34);
  border-radius: 8px;
  background: #e9fbfd;
}

.verification-line {
  background: #e9fbfd;
}

.player-name-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-name-grid span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.player-name-grid .muted-slot {
  color: var(--muted);
  border: 1px dashed var(--line);
  background: transparent;
}

.profile-photo {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  width: 86px;
  height: 86px;
  background:
    linear-gradient(rgba(16, 24, 32, 0.08), rgba(16, 24, 32, 0.2)),
    url("https://images.unsplash.com/photo-1566753323558-f4e0952af115?auto=format&fit=crop&w=400&q=80");
  background-size: cover;
  background-position: center;
}

.player-count-strip {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf4df;
}

.player-count-strip span {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.player-count-strip strong {
  font-size: 0.95rem;
}

.player-count-strip small {
  color: var(--muted);
}

.rule-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.join-layout,
.dashboard-grid,
.settings-grid,
.stats-grid {
  display: grid;
  gap: 18px;
}

.booking-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(300px, 1fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.booking-photo {
  min-height: 270px;
  background-size: cover;
  background-position: center;
}

.booking-copy {
  display: grid;
  align-content: center;
  padding: 24px;
}

.booking-copy h3 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
}

.booking-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-tags span {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--night);
  font-weight: 800;
}

.join-layout {
  grid-template-columns: minmax(300px, 0.9fr) minmax(300px, 0.7fr);
  align-items: start;
}

.form-panel,
.summary-panel,
.share-card,
.profile-hero,
.profile-form {
  padding: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #2c3336;
  font-size: 0.9rem;
  font-weight: 800;
}

.field-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.price-field {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.price-field-pitch {
  border-color: rgba(238, 111, 87, 0.34);
}

.price-field-organizer {
  border-color: rgba(34, 174, 189, 0.42);
}

.organizer-economics,
.policy-panel,
.booked-panel,
.countdown-pill {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(34, 174, 189, 0.34);
  border-radius: 8px;
  background: #e9fbfd;
}

.organizer-economics {
  grid-column: 1 / -1;
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 0;
  color: var(--night);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 6px 9px;
  border-color: rgba(16, 24, 32, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.cancel-action {
  color: #fff;
  background: var(--coral);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

input,
select {
  min-height: 44px;
}

textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

.wide-field {
  grid-column: 1 / -1;
}

.hidden-field {
  display: none;
}

.form-panel,
.create-grid,
.profile-form {
  display: grid;
  gap: 14px;
}

.profile-form {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.profile-form .primary-action {
  width: fit-content;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.create-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.create-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.share-card {
  margin-top: 18px;
}

.dashboard-grid {
  grid-template-columns: 1fr;
}

.dashboard-section {
  display: grid;
  gap: 12px;
}

.dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
}

.bookings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
}

.booking-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

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

.booking-card,
.confirmation-card {
  padding: 18px;
}

.booking-button {
  display: grid;
  gap: 8px;
  width: 100%;
  color: inherit;
  text-align: left;
}

.active-tab {
  color: #fff;
  background: var(--night);
}

.booking-card h3 {
  margin-top: 10px;
}

.confirmation-card {
  display: grid;
  gap: 16px;
}

.settings-save {
  margin-top: 18px;
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.dashboard-card {
  padding: 16px;
}

.dashboard-button {
  display: grid;
  gap: 10px;
  width: 100%;
  color: inherit;
  text-align: left;
}

.dashboard-button:hover {
  border-color: var(--clash);
  transform: translateY(-1px);
}

.settings-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}

.settings-card h3,
.settings-card p {
  margin-bottom: 0;
}

.dashboard-card h3 {
  min-height: 52px;
}

.meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee4ca;
}

.meter span {
  display: block;
  height: 100%;
  background: var(--clash);
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.profile-photo-wrap {
  position: relative;
  width: fit-content;
}

.photo-edit-button {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #090908;
  background: var(--play);
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
}

.profile-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #090908;
  background: #fbf4df;
  font-weight: 900;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.stat-tile {
  padding: 18px;
}

.stat-tile strong,
.stat-tile span {
  display: block;
}

.stat-tile strong {
  font-size: 2rem;
}

.stat-tile span {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  transform: translateY(16px);
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--night);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
  box-shadow: var(--shadow);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 24, 32, 0.22);
}

.app-modal.show {
  display: flex;
}

.modal-card {
  display: grid;
  gap: 12px;
  width: min(360px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rating-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}

.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f3;
}

.rating-player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 850;
}

.rating-player img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.rating-row select {
  width: 92px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.rate-link {
  color: var(--green-dark);
  font-weight: 900;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar-panel {
    display: none;
  }

  .content-grid,
  .join-layout,
  .choice-hero,
  .auth-screen,
  .profile-setup,
  .booking-hero,
  .details-grid,
  .finder-panel,
  .profile-form {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }

  .dashboard-card-grid,
  .bookings-grid,
  .settings-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 680px) {
  .main,
  .sidebar {
    padding: 18px;
  }

  .main {
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .menu-toggle {
    top: max(16px, env(safe-area-inset-top));
  }

  .topbar,
  .toolbar,
  .flow-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-action,
  .ghost-button,
  .back-link {
    width: 100%;
  }

  .filters,
  .create-actions {
    width: 100%;
  }

  .filter-chip {
    flex: 1 1 auto;
  }

  .content-grid {
    gap: 16px;
  }

  .choice-hero,
  .auth-screen,
  .profile-setup {
    min-height: auto;
    padding: 20px;
  }

  .choice-grid,
  .meta-grid,
  .create-grid,
  .dashboard-card-grid,
  .bookings-grid,
  .settings-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}
