/* Score&Co web — same brand as the app */
:root {
  --lime: #ccff00;
  --lime-dark: #5a7300;
  --on-lime: #1a2e00;
  --accent: #ff6d00;
  --bg: #0b0c0a;
  --surface: #161714;
  --surface-2: #1e201b;
  --text: #f5f5f5;
  --muted: #b7bbae;
  --border: #2c3026;
  --max: 720px;
  --max-wide: 1080px;
  --radius: 18px;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: drift 14s ease-in-out infinite;
}

body::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: rgba(204, 255, 0, 0.12);
}

body::after {
  width: 360px;
  height: 360px;
  bottom: 8%;
  left: -120px;
  background: rgba(255, 109, 0, 0.1);
  animation-delay: -6s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(24px, -18px) scale(1.08);
  }
}

a {
  color: var(--lime);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(11, 12, 10, 0.78);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Venue portal: same dark+lime as the app, padel-blue so it reads as a host account */
body.theme-venues {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface-2: #222222;
  --border: #2a2a2a;
  --muted: #9e9e9e;
  --host: #3498db;
  --host-dim: rgba(52, 152, 219, 0.16);
}

body.theme-venues::before {
  background: rgba(204, 255, 0, 0.08);
}

body.theme-venues::after {
  background: rgba(52, 152, 219, 0.14);
}

body.theme-venues header {
  background: rgba(15, 15, 15, 0.88);
  border-bottom-color: var(--border);
}

body.theme-venues input,
body.theme-venues select,
body.theme-venues textarea {
  background: #141414;
}

body.theme-venues .form-card,
body.theme-venues .panel-card {
  border-left: 3px solid var(--host);
}

.venues-rail {
  background: #141414;
  color: var(--lime);
  text-align: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--host);
}

.host-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 0.15rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--host-dim);
  border: 1px solid rgba(52, 152, 219, 0.45);
  color: #7ec8f0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.host-email {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.host-email:empty {
  display: none;
}

.segment-bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.3rem;
  margin: 0 0 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-x: auto;
}

.segment-bar button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.55rem 0.4rem;
  border-radius: 10px;
  cursor: pointer;
}

.segment-bar button.is-on {
  background: var(--lime);
  color: var(--on-lime);
}

.price-pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 0.72rem;
  font-weight: 800;
}

body.theme-venues .badge {
  background: var(--host-dim);
  border-color: rgba(52, 152, 219, 0.4);
  color: #7ec8f0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark,
.logo-mark-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(204, 255, 0, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.logo-mark {
  color: var(--lime-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.85rem;
}

.logo:hover .logo-mark-img,
.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 0 24px rgba(204, 255, 0, 0.28);
}

nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

nav a:hover {
  color: var(--lime);
  text-decoration: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4.5rem;
}

main.wide,
main.marketing {
  max-width: var(--max-wide);
}

.hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
  padding: 2.2rem 0 1.5rem;
}

.hero-logo-wrap {
  display: grid;
  place-items: center;
}

.hero-logo {
  width: min(280px, 70vw);
  height: auto;
  background: #fff;
  border-radius: 36px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(204, 255, 0, 0.15);
  animation: float-logo 5s ease-in-out infinite;
}

@keyframes float-logo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 109, 0, 0.14);
  border: 1px solid rgba(255, 109, 0, 0.35);
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  animation: fade-up 0.6s ease both;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 36rem;
  margin: 0 0 1.6rem;
}

.hero-split .lead {
  margin-right: 0;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero .cta-row {
  justify-content: center;
}

.hero-split .cta-row {
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: 0 8px 24px rgba(204, 255, 0, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(204, 255, 0, 0.28);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.features,
.split-cards,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.feature,
.split-card,
.step-card,
.explain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature:hover,
.split-card:hover,
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(204, 255, 0, 0.45);
  background: var(--surface-2);
}

.feature h3,
.split-card h2,
.step-card h3,
.explain-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.feature p,
.split-card p,
.step-card p,
.explain-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.split-card-player {
  border-left: 3px solid var(--lime);
}

.split-card-host {
  border-left: 3px solid var(--host);
}

.split-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.split-card-player .split-kicker {
  color: var(--lime);
}

.split-card-host .split-kicker {
  color: #7ec8f0;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.section-title {
  margin-top: 3.2rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-lead {
  color: #d0d4c6;
  max-width: 40rem;
  margin: 0.4rem 0 0;
}

.doc-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.doc-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

section.doc-block {
  margin-bottom: 1.75rem;
}

section.doc-block h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--lime);
}

section.doc-block p {
  color: var(--muted);
  white-space: pre-line;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer .logo {
  justify-content: center;
  margin-bottom: 0.65rem;
  font-size: 1rem;
}

footer p + p {
  margin-top: 0.35rem;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
}

.support-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.support-card p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.form-card,
.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

input,
select,
textarea {
  background: #11130f;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(204, 255, 0, 0.45);
  border-color: var(--lime);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.weekdays {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.weekdays label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.weekdays input {
  accent-color: var(--lime);
}

.alert {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-error {
  background: rgba(231, 76, 60, 0.12);
  color: #ff8a80;
}

.alert-ok {
  background: rgba(204, 255, 0, 0.1);
  color: var(--lime);
}

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

.row-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.court-row,
.booking-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  margin-top: 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.court-copy {
  flex: 1;
  min-width: 0;
}

.court-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  background: #1a2e00;
  flex-shrink: 0;
}

.court-thumb-empty {
  background: linear-gradient(135deg, #1a2e00, #3498db);
}

.venue-cover-preview {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0.4rem 0 0.75rem;
  display: block;
}

.photo-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.file-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(52, 152, 219, 0.12);
  color: #7ec8f0;
  cursor: pointer;
  white-space: nowrap;
}

.file-chip input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
}

.badge-soft {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(204, 255, 0, 0.12);
  color: var(--lime);
}

.hidden {
  display: none !important;
}

.form-section-title {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.4rem;
}

.tight {
  margin: 0 0 0.85rem;
}

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

.kind-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.kind-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: #11130f;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.kind-card input {
  accent-color: var(--lime);
  margin-bottom: 0.35rem;
}

.kind-card:has(input:checked) {
  border-color: var(--lime);
  background: rgba(204, 255, 0, 0.08);
}

.kind-title {
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
}

.kind-desc {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.steps {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.steps li {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  text-align: center;
}

.steps li.is-current {
  border-color: var(--lime);
  color: var(--lime);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.check-row input {
  margin-top: 0.2rem;
  accent-color: var(--lime);
}

.alert .btn {
  margin-left: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

#verify-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.btn.is-busy,
.btn:disabled {
  opacity: 0.6;
  cursor: wait;
  pointer-events: none;
}

.pw-rules {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.75rem;
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.pw-rules li.ok {
  color: var(--lime);
}

.pw-match {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: #ff8a8a;
}

.pw-match.ok {
  color: var(--lime);
}

.hours-fold {
  margin: 1rem 0 0.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 0.9rem 0.75rem;
  background: var(--surface-2);
}

.hours-fold summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.75rem 0;
}

.hours-fold summary::-webkit-details-marker {
  display: none;
}

.form-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ec8f0;
  margin: 1.15rem 0 0.45rem;
}

.map-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 1.1rem;
}

#boot-status {
  padding: 0.4rem 0 1.2rem;
}

.price-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}

.price-hint strong {
  color: var(--text);
}

.btn-text {
  display: inline;
  margin-left: 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lime);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.phone-ok {
  color: var(--lime);
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0.35rem 0 0.2rem;
}

.phone-verify {
  margin-top: 0.35rem;
}

#recaptcha-container {
  margin: 0.55rem 0 0.35rem;
  min-height: 0;
}

.map-frame {
  height: 240px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #11130f;
  margin-top: 0.45rem;
  position: relative;
}

.map-frame.is-compact {
  height: 188px;
}

.map-frame .leaflet-container,
.map-frame .gm-style,
.map-frame iframe {
  height: 100%;
  width: 100%;
  border: 0;
  font: inherit;
}

.map-frame iframe {
  display: block;
  pointer-events: none;
}

.map-click-layer {
  position: absolute;
  inset: 0;
  cursor: crosshair;
  z-index: 2;
}

.map-center-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -28px 0 0 -14px;
  pointer-events: none;
  z-index: 3;
  background: #ea4335;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.map-center-pin::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.pac-container {
  z-index: 1200;
  background: #11130f;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 6px;
  box-shadow: none;
  font-family: var(--font);
}

.pac-item {
  color: var(--text);
  border-top: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
}

.pac-item:hover,
.pac-item-selected {
  background: rgba(204, 255, 0, 0.1);
}

.pac-item-query,
.pac-matched {
  color: var(--lime);
}

.gm-err-container {
  display: none !important;
}

.addr-suggest {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #11130f;
  max-height: 200px;
  overflow: auto;
}

.addr-suggest.hidden {
  display: none;
}

.addr-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.addr-suggest button:hover {
  background: rgba(204, 255, 0, 0.1);
}

.payout-box {
  background: #11130f;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 1rem;
  margin-top: 0.85rem;
}

body.theme-venues .payout-box {
  border-color: rgba(52, 152, 219, 0.45);
  background: rgba(52, 152, 219, 0.06);
}

.locked-note {
  background: rgba(255, 109, 0, 0.1);
  border: 1px solid rgba(255, 109, 0, 0.3);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: #ffcc80;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

@media (max-width: 800px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-split .lead,
  .hero-split .cta-row {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .hero-logo {
    width: min(220px, 64vw);
    order: -1;
  }
}

@media (max-width: 600px) {
  .kind-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before,
  body::after,
  .hero-logo,
  .reveal,
  .badge {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .feature:hover,
  .logo:hover .logo-mark-img {
    transform: none;
  }
}

.venues-list {
  display: grid;
  gap: 1rem;
}

.venue-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.venue-card-cover {
  position: relative;
  height: 168px;
  background: var(--surface-2);
}

.venue-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-card-cover-empty {
  width: 100%;
  height: 100%;
  background: var(--surface-2);
}

.venue-card-status {
  position: absolute;
  top: 10px;
  right: 10px;
}

.venue-card-body {
  padding: 1rem 1.1rem 1.1rem;
}

.venue-card-body h2 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.venue-card-courts {
  list-style: none;
  margin: 0.7rem 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.venue-card-courts li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.photo-tile {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.photo-tile.is-principal {
  border-color: var(--lime);
}

.photo-tile img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.photo-tile-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  align-items: center;
  padding: 0.45rem 0.5rem 0.55rem;
}

.photo-tile-actions label {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.court-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  margin-top: 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
}

.list-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

body.app-panel {
  min-height: 100dvh;
}

body.app-panel main.wide {
  max-width: none;
  margin: 0;
  padding: 1.25rem 1.25rem 5.5rem;
}

.app-frame {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100dvh - 118px);
}

.app-sidebar {
  position: sticky;
  top: 70px;
  align-self: start;
  max-height: calc(100dvh - 80px);
  overflow: auto;
  padding: 1rem 0.75rem 2rem;
  border-right: 1px solid var(--border);
  background: rgba(15, 15, 15, 0.72);
}

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.app-nav-item:hover,
.app-nav-venue:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.app-nav-item.is-on,
.app-nav-venue.is-on {
  background: var(--lime);
  color: var(--on-lime);
}

.app-nav-venues {
  display: grid;
  gap: 0.25rem;
  margin: 0.35rem 0 0.75rem;
}

.app-nav-venue {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.app-nav-venue img,
.app-nav-dot {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
  flex: 0 0 32px;
}

.app-nav-venue span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-nav-label {
  margin: 0.85rem 0.8rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-tabbar {
  display: none;
}

.app-page-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.app-page-title h1 {
  margin: 0;
}

.empty-app {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
}

.empty-app h2 {
  margin-bottom: 0.4rem;
}

.venues-list {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.app-crumb {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.75rem;
}

.app-crumb a,
.app-crumb button {
  border: 0;
  background: none;
  color: var(--lime);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

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

  .app-sidebar {
    display: none;
  }

  .app-tabbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: rgba(15, 15, 15, 0.94);
    border-top: 1px solid var(--border);
    padding: 0.35rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom));
  }

  .app-tabbar a {
    display: grid;
    place-items: center;
    gap: 0.15rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
    padding: 0.45rem 0.2rem;
    border-radius: 10px;
  }

  .app-tabbar a.is-on {
    color: var(--on-lime);
    background: var(--lime);
  }
}
