/**
 * SportMatch Universe — Design Unified Layer
 * Load after app-style.css and unified-buttons.css
 */

:root {
  --navy: #002366;
  --platinum: var(--accent, #ff7a29);
  --brand-dark: #089a9c;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-card: 22px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 4px 20px rgba(11, 179, 181, 0.14);
  --gradient-brand: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  --gradient-auth-bg: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  --gradient-register-bg: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  --input-border: #dbe2ea;
  --input-bg: #ffffff;
  --shell-max: 540px;
}

/* Tema chiaro forzato — evita dark mode Samsung/PWA su bottoni e overlay */
html.site-app,
html.site-auth,
html.site-facility.facility-auth {
  color-scheme: light !important;
}

@media (prefers-color-scheme: dark) {
  html.site-app,
  html.site-auth,
  html.site-facility.facility-auth,
  html.site-app body,
  html.site-auth body,
  html.site-app .card,
  html.site-auth .card,
  html.site-app .app-container,
  html.site-app main {
    background-color: #ffffff !important;
    color: #0b1220 !important;
    filter: none !important;
    -webkit-filter: none !important;
  }

  html.site-app button.primary,
  html.site-app .primary,
  html.site-app .action.primary,
  html.site-auth button.primary,
  html.site-auth .primary,
  html.site-auth .oauth-btn.google-btn {
    background: linear-gradient(90deg, #0bb3b5, #ff7a29, #0bb3b5) !important;
    color: #ffffff !important;
  }

  html.site-app button.secondary,
  html.site-app .secondary,
  html.site-auth button.secondary,
  html.site-auth .secondary {
    background: #ffffff !important;
    color: #0bb3b5 !important;
    border: 2px solid #0bb3b5 !important;
  }
}

html.site-app,
html.site-auth,
html.site-app body,
html.site-auth body {
  background-color: #ffffff !important;
  color: #0b1220 !important;
}

html.site-app.dark-mode,
html.site-app.dark-mode body,
html.site-auth.dark-mode,
html.site-auth.dark-mode body {
  --ink: #0b1220;
  --text-primary: #0b1220;
  --bg: #ffffff;
  --card: #ffffff;
  background: #ffffff !important;
  color: #0b1220 !important;
}

html.site-app button.primary,
html.site-app .primary,
html.site-app button.secondary,
html.site-app .secondary,
html.site-auth button.primary,
html.site-auth .primary,
html.site-auth .oauth-btn {
  filter: none !important;
  -webkit-filter: none !important;
}

/* ===== Auth / register shells ===== */
html.site-auth body,
html.facility-auth body {
  background: var(--gradient-auth-bg) !important;
}

html.site-facility.facility-auth body {
  background: var(--gradient-register-bg) !important;
}

html.site-auth .app-header,
html.facility-auth .app-header {
  background: var(--gradient-brand) !important;
  box-shadow: var(--shadow-soft) !important;
  border-bottom: none !important;
}

html.site-auth .app-header h1,
html.facility-auth .app-header h1,
html.site-auth .app-header #headerWelcome,
html.facility-auth .app-header #headerWelcome {
  color: #ffffff !important;
}

/* Player auth pages (login, reset password) — header brand allineato */
html.site-auth:not(.site-facility) .app-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  z-index: 1000 !important;
  min-height: calc(58px + env(safe-area-inset-top, 0px)) !important;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--gradient-brand) !important;
  box-shadow: 0 4px 20px rgba(11, 179, 181, 0.22) !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
}

html.site-auth:not(.site-facility) .app-header-left {
  width: 100% !important;
  max-width: min(var(--shell-max, 540px), 100%) !important;
  margin: 0 auto !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}

html.site-auth:not(.site-facility) .app-header-left a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

html.site-auth:not(.site-facility) .app-header-left a:hover .app-logo img {
  transform: scale(1.03);
}

html.site-auth:not(.site-facility) .app-header .app-logo img {
  transition: transform 0.2s ease;
}

html.site-auth:not(.site-facility) .app-header h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
}

html.site-auth:not(.site-facility) .app-header-brand-link,
html.site-auth:not(.site-facility) .app-header-brand-copy,
html.site-auth:not(.site-facility) .app-header-brand-title,
html.site-auth:not(.site-facility) .app-header-brand-sub {
  display: none !important;
}

html.site-auth:not(.site-facility) .app-header h1 {
  position: static !important;
  transform: none !important;
  left: auto !important;
  pointer-events: auto !important;
  max-width: none !important;
  text-align: left !important;
}

html.site-auth:not(.site-facility) body {
  padding-top: calc(72px + env(safe-area-inset-top, 0px)) !important;
}

@media (max-width: 374px) {
  html.site-auth:not(.site-facility) .app-header h1 {
    font-size: 1rem !important;
  }
}

/* ===== Cards ===== */
.smu-card,
html.site-app .card,
html.site-auth .card,
html.site-facility.facility-auth .form-card {
  background: #ffffff;
  border: 1px solid rgba(11, 179, 181, 0.15);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

html.site-auth .card h2,
html.facility-auth .card h2,
.smu-card h2 {
  color: var(--brand);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* Player login card — allineato a facility-auth */
html.site-auth:not(.site-facility) .card h2 {
  text-align: center;
  color: var(--brand);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

html.site-auth:not(.site-facility) .card > p,
html.site-auth:not(.site-facility) .login-subtitle,
html.site-auth:not(.site-facility) .link-container {
  text-align: center;
}

html.site-auth:not(.site-facility) .card > p,
html.site-auth:not(.site-facility) .login-subtitle {
  color: #495057;
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

html.site-auth:not(.site-facility) .card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0;
}

html.site-auth:not(.site-facility) .card input[type="email"],
html.site-auth:not(.site-facility) .card input[type="password"],
html.site-auth:not(.site-facility) .card input[type="text"] {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  margin: 0;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  background: #f8f9fa;
  color: #0b1220;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

html.site-auth:not(.site-facility) .card button.primary,
html.site-auth:not(.site-facility) .card .register-action-btn {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin: 4px 0 0;
}

html.site-auth .password-input-wrap {
  position: relative;
  width: 100%;
  margin: 0;
}

html.site-auth .password-input-wrap input {
  width: 100%;
  padding-right: 48px !important;
  margin-bottom: 0 !important;
}

html.site-auth .toggle-password {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 44px;
  height: auto;
  min-height: 0 !important;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: none;
  transform: none;
  z-index: 2;
}

html.site-auth .toggle-password:hover {
  opacity: 0.75;
  transform: none;
}

/* Disable visual effects during native OAuth sheets (iOS Safari / PWA) */
html.site-auth.oauth-active,
html.site-auth.oauth-active body {
  position: static !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 100vh !important;
}

html.site-auth.oauth-active .app-header,
html.site-auth.oauth-active .card,
html.site-auth.oauth-active .oauth-btn,
html.site-auth.oauth-active #registerModal,
html.site-auth.oauth-active #businessModal,
html.site-auth.oauth-active .auth-modal {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  transform: none !important;
}

html.site-auth.oauth-active body.modal-open {
  position: static !important;
  top: auto !important;
  width: auto !important;
}

/* Auth registration modals (login + register pages) */
/* Auth modals — sempre nascosti finché non aperti (fix PWA mobile) */
#registerModal:not(.is-open),
#businessModal:not(.is-open),
.auth-modal:not(.is-open),
[id$="Modal"][hidden],
[id$="Modal"][style*="display: none"],
[id$="Modal"][style*="display:none"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#registerModal.is-open,
#businessModal.is-open,
.auth-modal.is-open {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

html.site-auth .auth-modal,
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

html.site-auth .auth-modal__scroller,
.auth-modal__scroller {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

html.site-auth .auth-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 20px 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(11, 179, 181, 0.2);
  box-sizing: border-box;
  max-height: calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
}

html.site-auth .auth-modal__title {
  margin: 0 0 8px;
  color: var(--brand, #0bb3b5);
  font-size: clamp(1.15rem, 4.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
}

html.site-auth .auth-modal__subtitle {
  margin: 0 0 20px;
  color: #495057;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

html.site-auth .auth-modal__step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: nowrap;
}

html.site-auth .auth-modal__step-head h2 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1.15rem;
  color: var(--brand, #0bb3b5);
}

html.site-auth .auth-modal__actions {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}

html.site-auth .auth-modal__brand-note {
  margin: 16px 0 0;
  text-align: center;
  color: #6c757d;
  font-size: 0.82rem;
  font-weight: 500;
}

html.site-auth .auth-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 16px 0;
  padding: 0;
  cursor: pointer;
  box-sizing: border-box;
}

html.site-auth .auth-consent-row__checkbox {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  margin: 2px 0 0 !important;
  flex-shrink: 0;
  accent-color: var(--brand, #0bb3b5);
}

html.site-auth .auth-consent-row__text {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #495057;
}

html.site-auth .auth-modal__success {
  text-align: center;
}

html.site-auth .auth-modal__success-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 12px;
}

html.site-auth .register-photo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

html.site-auth .register-photo-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--brand, #0bb3b5);
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

html.site-auth .register-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.site-auth .register-photo-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #6c757d;
  text-align: center;
  line-height: 1.4;
}

html.site-auth .auth-modal .modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

html.site-auth .auth-modal input[type="text"],
html.site-auth .auth-modal input[type="email"],
html.site-auth .auth-modal input[type="password"],
html.site-auth .auth-modal select,
html.site-auth .auth-modal textarea,
html.site-auth #step2 input[type="text"],
html.site-auth #step2 input[type="email"],
html.site-auth #step2 input[type="password"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  font-size: 16px;
}

html.site-auth .auth-modal .register-action-btn,
html.site-auth .auth-modal .primary.full,
html.site-auth .auth-modal .secondary {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0 !important;
  white-space: normal;
}

@media screen and (max-width: 480px) {
  html.site-auth .auth-modal {
    padding: 0;
    align-items: flex-end;
  }

  html.site-auth .auth-modal__scroller {
    align-items: flex-end;
    min-height: auto;
  }

  html.site-auth .auth-modal__panel {
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    max-height: calc(92vh - env(safe-area-inset-bottom));
    margin: 0;
    padding: 20px 16px max(16px, env(safe-area-inset-bottom));
  }
}

/* ===== App player — contenuto allineato, titoli sezione centrati ===== */
html.site-app main.app-container .card:not(.profile-hero-card):not(#createForm):not(.profile-setup-banner),
html.site-app main.app-container section.card:not(.profile-setup-banner) {
  text-align: left;
}

html.site-app main.app-container .card .featured-match-card,
html.site-app main.app-container .card .matches-discover-card,
html.site-app main.app-container .card .activity-feed-card,
html.site-app main.app-container .card .home-match-stack,
html.site-app main.app-container .card .field-card,
html.site-app main.app-container .card .smu-feedback-card,
html.site-app main.app-container .card .bookings-summary-item {
  text-align: left;
}

html.site-app #createForm,
html.site-app #createForm h3,
html.site-app #createForm label,
html.site-app #feedbackForm,
html.site-app #feedbackForm label,
html.site-app .filters-section,
html.site-app .filters-section label,
html.site-app .filters-section h3,
html.site-app .profile-setup-banner,
html.site-app .profile-setup-banner h3,
html.site-app .profile-setup-banner p {
  text-align: left;
}

html.site-app .profile-setup-banner__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

html.site-app .profile-setup-banner__icon {
  font-size: 2rem;
  line-height: 1;
  flex: 0 0 auto;
}

html.site-app .profile-setup-banner__body {
  flex: 1;
  min-width: 0;
}

html.site-app .profile-setup-banner__title {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #0b1220;
}

html.site-app .profile-setup-banner__text {
  margin: 0;
  color: #495057;
  font-size: 0.9rem;
  line-height: 1.5;
}

html.site-app .profile-setup-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  align-items: stretch;
  justify-items: stretch;
}

html.site-app .profile-setup-banner__btn {
  margin: 0;
  width: 100%;
  min-width: 0;
  text-decoration: none;
  padding: 10px 12px;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.25;
}

@media screen and (max-width: 380px) {
  html.site-app .profile-setup-banner__actions {
    grid-template-columns: 1fr;
  }
}

html.site-app .featured-match-card {
  background: rgba(11, 179, 181, 0.06);
  border: 1px solid rgba(11, 179, 181, 0.22);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

html.site-app .featured-match-card:hover {
  border-color: rgba(11, 179, 181, 0.45);
  box-shadow: 0 8px 20px rgba(11, 179, 181, 0.12);
}

html.site-app .featured-match-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

html.site-app .featured-match-card__row > div:first-child {
  flex: 1;
  min-width: 0;
  text-align: left;
}

html.site-app .featured-match-card__sport {
  color: #0b1220;
  font-size: 1.05rem;
}

html.site-app .featured-match-card__city {
  color: #1e3a5f;
  font-size: 0.85rem;
  margin-top: 4px;
  font-weight: 600;
}

html.site-app .featured-match-card__date,
html.site-app .featured-match-card__distance,
html.site-app .featured-match-card__players {
  color: #2d3748;
  font-size: 0.8rem;
  margin-top: 2px;
  font-weight: 500;
}

html.site-app .featured-match-card__meta {
  text-align: right;
  flex: 0 0 auto;
}

html.site-app .featured-match-card__badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff;
}

html.site-app .featured-match-card__badge.is-open {
  background: #0bb3b5;
}

html.site-app .featured-match-card__badge.is-full {
  background: #ff7a29;
}

html.site-app .featured-matches-see-all {
  width: 100%;
  text-align: center;
  text-decoration: none;
  margin-top: 8px;
  display: block;
}

html.site-app .featured-matches-empty {
  text-align: center;
  padding: 12px 8px 4px;
}

html.site-app .featured-matches-empty__icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

html.site-app .featured-matches-empty__title {
  margin: 0 0 8px;
  color: #0b1220;
  font-weight: 600;
}

html.site-app .featured-matches-empty__text {
  margin: 0 0 14px;
  color: #495057;
  font-size: 0.9rem;
  line-height: 1.5;
}

html.site-app .featured-matches-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

html.site-app .featured-matches-empty__btn {
  text-decoration: none;
  flex: 1 1 140px;
  max-width: 220px;
}

html.site-app .featured-matches-error {
  text-align: center;
  color: #495057;
  padding: 20px;
}

html.site-app .activity-feed-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid rgba(11, 179, 181, 0.18);
  background: rgba(11, 179, 181, 0.05);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

html.site-app .activity-feed-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11, 179, 181, 0.12);
}

html.site-app .activity-feed-card__icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

html.site-app .activity-feed-card__text {
  margin: 0 0 6px 0;
  font-weight: 600;
  color: #0b1220;
  line-height: 1.45;
}

html.site-app .activity-feed-card__meta {
  margin: 0;
  color: #6c757d;
  font-size: 0.85rem;
}

html.site-app .activity-feed-card__badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 41, 0.12);
  color: #c05621;
  font-size: 0.75rem;
  font-weight: 600;
}

html.site-app .activity-feed-empty {
  text-align: center;
  padding: 24px 12px;
}

html.site-app .activity-feed-empty__icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

html.site-app .activity-feed-empty__title {
  margin: 0 0 8px 0;
  font-weight: 600;
  color: #0b1220;
}

html.site-app .activity-feed-empty__text {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
}

html.site-app .activity-feed-suggestions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 35, 102, 0.08);
}

html.site-app .activity-feed-suggestions__title {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  color: #0b1220;
}

html.site-app .activity-feed-suggestions__text {
  margin: 0 0 12px 0;
  color: #6c757d;
  font-size: 0.85rem;
}

html.site-app .activity-feed-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 35, 102, 0.06);
}

html.site-app .activity-feed-suggestion:last-child {
  border-bottom: none;
}

html.site-app .activity-feed-suggestion__name {
  flex: 1;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

html.site-app .activity-feed-suggestion__meta {
  color: #6c757d;
  font-size: 0.8rem;
  white-space: nowrap;
}

html.site-app .activity-feed-suggestion__btn {
  padding: 8px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ===== Form controls ===== */
.smu-form-control,
html.site-app input[type="email"],
html.site-app input[type="password"],
html.site-app input[type="text"],
html.site-app input[type="tel"],
html.site-app input[type="date"],
html.site-app input[type="time"],
html.site-app select,
html.site-app textarea,
html.site-auth input[type="email"],
html.site-auth input[type="password"],
html.site-auth input[type="text"],
html.site-auth input[type="tel"],
html.site-auth input[type="date"],
html.site-auth select,
html.site-auth textarea,
html.site-facility.facility-auth input[type="email"],
html.site-facility.facility-auth input[type="password"],
html.site-facility.facility-auth input[type="text"],
html.site-facility.facility-auth input[type="tel"],
html.site-facility.facility-auth textarea,
html.site-facility.facility-auth select,
html.site-facility #businessModal input,
html.site-facility #businessModal textarea,
html.site-facility #businessModal select {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 2px solid var(--input-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: 'Poppins', system-ui, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--input-bg);
  color: var(--text-primary, #0b1220);
  -webkit-text-fill-color: var(--text-primary, #0b1220);
  -webkit-appearance: none;
  appearance: none;
}

html.site-app select,
html.site-app .filters-section select {
  color: #0b1220 !important;
  -webkit-text-fill-color: #0b1220;
  background-color: #f8f9fa !important;
}

html.site-app .filters-section h3,
html.site-app .filters-section label {
  color: #0b1220 !important;
}

/* L'app giocatore resta sempre su tema chiaro anche con OS dark mode */
html.site-app.dark-mode,
html.site-app.dark-mode body {
  --ink: #0b1220;
  --text-primary: #0b1220;
  background: #ffffff;
  color: #0b1220;
}

.smu-form-control:focus,
html.site-app input:focus,
html.site-app select:focus,
html.site-app textarea:focus,
html.site-auth input:focus,
html.site-auth select:focus,
html.site-auth textarea:focus,
html.site-facility.facility-auth input:focus,
html.site-facility.facility-auth select:focus,
html.site-facility.facility-auth textarea:focus,
html.site-facility #businessModal input:focus,
html.site-facility #businessModal textarea:focus,
html.site-facility #businessModal select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 179, 181, 0.14);
}

html.site-app input::placeholder,
html.site-auth input::placeholder,
html.site-facility.facility-auth input::placeholder,
html.site-facility.facility-auth textarea::placeholder,
html.site-app textarea::placeholder,
html.site-auth textarea::placeholder {
  color: var(--muted, #6c757d) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: var(--muted, #6c757d) !important;
}

html.site-app input:focus::placeholder,
html.site-auth input:focus::placeholder,
html.site-facility.facility-auth input:focus::placeholder,
html.site-app textarea:focus::placeholder,
html.site-auth textarea:focus::placeholder,
html.site-facility.facility-auth textarea:focus::placeholder {
  color: transparent !important;
  opacity: 0 !important;
  -webkit-text-fill-color: transparent !important;
}

html.site-app input::-webkit-input-placeholder,
html.site-app textarea::-webkit-input-placeholder {
  color: var(--muted, #6c757d) !important;
  -webkit-text-fill-color: var(--muted, #6c757d) !important;
}

html.site-app input:focus::-webkit-input-placeholder,
html.site-app textarea:focus::-webkit-input-placeholder {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

/* ===== Register / auth page layout ===== */
html.facility-auth .container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  padding: 0 0.5rem;
}

html.facility-auth .page-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

html.facility-auth .page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

html.facility-auth .page-header .subtitle {
  color: var(--muted, #6c757d);
  font-size: 1rem;
  margin: 0;
}

html.facility-auth .form-card {
  padding: 1.5rem;
}

html.facility-auth .form-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid #f0f0f0;
}

html.facility-auth .form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

html.facility-auth .form-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink, #0b1220);
  margin: 0 0 1rem;
}

/* ===== Modals ===== */
.smu-modal-panel,
html.site-facility .facility-modal-panel {
  border-radius: var(--radius-xl) !important;
  border: 1px solid rgba(11, 179, 181, 0.2) !important;
  box-shadow: 0 22px 55px rgba(2, 15, 35, 0.28) !important;
}

/* ===== Plan cards ===== */
.smu-plan-card,
html.site-facility .subscription-card,
html.site-facility .plan-card {
  border-radius: var(--radius-lg) !important;
  border: 2px solid var(--input-border) !important;
  background: #fff !important;
}

html.site-facility .subscription-card.is-selected,
html.site-facility .plan-card.active {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(11, 179, 181, 0.18) !important;
}

html.site-facility .subscription-card[data-plan="premium"].is-selected,
html.site-facility .plan-card[data-plan="premium"].active {
  border-color: var(--navy) !important;
  box-shadow: 0 0 0 3px rgba(0, 35, 102, 0.16) !important;
}

html.site-facility .subscription-card[data-plan="platinum"].is-selected,
html.site-facility .plan-card[data-plan="platinum"].active {
  border-color: var(--platinum) !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 41, 0.18) !important;
}

html.site-facility .subscription-card[data-plan="multi-facility"].is-selected,
html.site-facility .plan-card[data-plan="multi-facility"].active {
  border-color: var(--brand) !important;
}

/* ===== Facility dashboard header alignment ===== */
html.site-facility:not(.facility-auth) .app-header {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: saturate(140%) blur(8px) !important;
  -webkit-backdrop-filter: saturate(140%) blur(8px) !important;
  box-shadow: 0 4px 20px rgba(0, 35, 102, 0.1) !important;
  border-bottom: 1px solid rgba(0, 35, 102, 0.08) !important;
}

html.site-facility:not(.facility-auth) .app-header h1,
html.site-facility:not(.facility-auth) .app-header #headerWelcome {
  color: var(--navy) !important;
}

/* ===== Player app home uses unified buttons ===== */
html.site-app .action.primary {
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
  background-size: 200% auto;
  animation: gradientShift 3s ease infinite;
  border: none;
  color: #fff;
}

html.site-app .action.secondary {
  background: rgba(11, 179, 181, 0.08);
  color: var(--brand-dark);
  border: 2px solid rgba(11, 179, 181, 0.35);
}

/* ===== Player app header ===== */
html.site-app .app-header {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 4px 20px rgba(0, 35, 102, 0.1) !important;
  border-bottom: 1px solid rgba(0, 35, 102, 0.08) !important;
}

html.site-app .app-header h1 {
  color: var(--navy) !important;
}

html.site-app .app-logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* ===== Filters & status chips ===== */
html.site-app .filters-section h3 {
  margin: 0 0 16px;
  text-align: center;
  color: var(--text-primary, #0b1220);
}

html.site-app .filters-section .smu-filter-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

html.site-app .smu-share-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}

.smu-location-status,
html.site-app #locationStatus {
  padding: 10px;
  background: rgba(11, 179, 181, 0.1);
  border: 1px solid var(--brand);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--brand);
  font-size: 0.9rem;
}

/* ===== Profile hero card ===== */
.profile-hero-card {
  background: #ffffff !important;
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid rgba(11, 179, 181, 0.22) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.profile-hero-card__pattern {
  display: none;
}

.profile-hero-card__body {
  position: relative;
  padding: 24px 20px;
  background:
    radial-gradient(circle at top right, rgba(11, 179, 181, 0.08), transparent 42%),
    radial-gradient(circle at bottom left, rgba(255, 122, 41, 0.05), transparent 38%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-hero-card__identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

.profile-hero-card__summary {
  width: 100%;
  max-width: 420px;
  text-align: center;
  margin-bottom: 20px;
}

.profile-hero-card__top {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.profile-hero-card__photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.profile-hero-card__avatar-stack {
  position: relative;
  width: 128px;
  height: 128px;
  flex-shrink: 0;
}

.profile-hero-card__photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(11, 179, 181, 0.4);
  box-shadow:
    0 8px 24px rgba(11, 179, 181, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  background: linear-gradient(145deg, #f8fafc, #eef6f7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-hero-card__photo-fallback {
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(11, 179, 181, 0.35);
}

.profile-player-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
  line-height: 1;
  z-index: 2;
}

.profile-player-badge__value {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.profile-player-badge__label {
  margin-top: 1px;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
}

.profile-player-badge__icon {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.profile-player-badge--verified {
  background: linear-gradient(145deg, #34d399 0%, #10b981 45%, #059669 100%);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.profile-player-badge--verified .profile-player-badge__label {
  color: rgba(255, 255, 255, 0.95);
}

.profile-player-badge--elite {
  background: linear-gradient(145deg, #fcd34d 0%, #f59e0b 45%, #d97706 100%);
}

.profile-player-badge--gold {
  background: linear-gradient(145deg, #6ee7b7 0%, #10b981 50%, #059669 100%);
}

.profile-player-badge--good {
  background: linear-gradient(145deg, #93c5fd 0%, #3b82f6 50%, #2563eb 100%);
}

.profile-player-badge--base {
  background: linear-gradient(145deg, #5eead4 0%, #0bb3b5 50%, #089a9c 100%);
}

.profile-player-badge--unrated {
  background: linear-gradient(145deg, #cbd5e1 0%, #94a3b8 100%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.profile-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 140px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--role-accent, #0bb3b5) 35%, #ffffff);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--role-accent, #0bb3b5) 18%, transparent);
}

.profile-role-chip__icon {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}

.profile-role-chip__text {
  font-size: 0.78rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--role-accent, #0b5f61) 82%, #0b1220);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-hero-card__info {
  flex: 1;
  min-width: 220px;
  text-align: center;
}

.profile-hero-card__summary .profile-hero-card__name,
.profile-hero-card__summary .profile-hero-card__sport {
  text-align: center;
}

.profile-hero-card__name {
  font-size: 1.8rem;
  margin: 0 0 8px;
  font-weight: 700;
  color: #0b1220;
}

.profile-hero-card__sport {
  color: #089a9c;
  font-size: 0.95rem;
  margin: 0 0 8px;
  font-weight: 600;
}

.profile-hero-card__quick-stats {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-hero-card__quick-stat {
  text-align: center;
  min-width: 60px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(11, 179, 181, 0.06);
  border: 1px solid rgba(11, 179, 181, 0.12);
}

.profile-hero-card__quick-stat-label {
  font-size: 0.7rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-hero-card__quick-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0b1220;
}

.profile-hero-card__quick-stat-value.is-accent {
  color: #ff7a29;
}

.profile-hero-card__quick-stat-value.is-brand {
  color: #089a9c;
}

.profile-hero-card__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.profile-hero-card__btn {
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.profile-hero-card__btn--ghost {
  background: #ffffff;
  color: #089a9c;
  border: 2px solid rgba(11, 179, 181, 0.35);
}

.profile-hero-card__btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(11, 179, 181, 0.22);
}

.profile-hero-card__btn--report {
  background: #ffffff;
  color: #b42318;
  border: 2px solid rgba(180, 35, 24, 0.28);
}

.profile-hero-card__btn--report:hover {
  background: rgba(180, 35, 24, 0.06);
}

body.report-user-modal-open {
  overflow: hidden;
}

.report-user-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-bottom)) 12px 12px;
}

.report-user-modal[hidden] {
  display: none !important;
}

.report-user-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.report-user-modal__panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(88vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 14px 14px;
  padding: 22px 18px 18px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  z-index: 1;
}

.report-user-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  font-size: 1rem;
  cursor: pointer;
}

.report-user-modal__title {
  margin: 0 36px 6px 0;
  font-size: 1.2rem;
  color: #0b1220;
}

.report-user-modal__subtitle {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 0.92rem;
}

.report-user-modal__reasons {
  border: none;
  margin: 0 0 14px;
  padding: 0;
}

.report-user-modal__reasons legend {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 10px;
  color: #0b1220;
}

.report-user-modal__reason {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 0.92rem;
  color: #0b1220;
}

.report-user-modal__reason:has(input:checked) {
  border-color: rgba(180, 35, 24, 0.45);
  background: rgba(180, 35, 24, 0.04);
}

.report-user-modal__details-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #0b1220;
}

.report-user-modal__details {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-size: 16px;
  resize: vertical;
  min-height: 96px;
}

.report-user-modal__hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.report-user-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.report-user-modal__btn {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.report-user-modal__btn--ghost {
  background: #f1f5f9;
  color: #334155;
}

.report-user-modal__btn--danger {
  background: #b42318;
  color: #fff;
}

.report-user-modal__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.report-user-modal__feedback {
  margin: 12px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.report-user-modal__feedback.is-ok {
  color: #067647;
}

.report-user-modal__feedback.is-error {
  color: #b42318;
}

@media screen and (min-width: 640px) {
  .report-user-modal {
    align-items: center;
  }

  .report-user-modal__panel {
    border-radius: 18px;
  }
}

.profile-hero-card__attributes-panel {
  background: #f8fafc;
  border-radius: 14px;
  padding: 18px 16px;
  border: 1px solid rgba(11, 179, 181, 0.14);
  margin-top: 4px;
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  text-align: center;
}

.profile-hero-card__attributes-title {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #0b1220;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: center;
  font-weight: 700;
}

.profile-hero-card__attributes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  width: 100%;
}

.profile-hero-card__personal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.profile-hero-card__personal-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 8px 4px;
}

.profile-hero-card__personal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #089a9c);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(11, 179, 181, 0.25);
}

.profile-hero-card__personal-empty,
.profile-hero-card__personal-bio-hint {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #6c757d;
  text-align: center;
}

.profile-hero-card__personal-empty strong {
  color: #0b1220;
}

.profile-hero-card__personal-bio {
  margin: 0;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid rgba(11, 179, 181, 0.14);
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #334155;
  font-style: italic;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.profile-hero-card__personal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.profile-hero-card__personal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(11, 179, 181, 0.12);
  border-radius: 12px;
  min-width: 0;
  text-align: center;
}

.profile-hero-card__personal-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
  margin-top: 2px;
}

.profile-hero-card__personal-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  width: 100%;
}

.profile-hero-card__personal-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  font-weight: 600;
}

.profile-hero-card__personal-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0b1220;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-hero-card__personal-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 420px;
}

.profile-hero-card__personal-block-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  font-weight: 700;
  text-align: center;
}

.profile-hero-card__personal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.profile-hero-card__personal-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 179, 181, 0.1);
  border: 1px solid rgba(11, 179, 181, 0.2);
  color: #0b5f61;
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-hero-card__personal-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.profile-hero-card__personal-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid rgba(11, 179, 181, 0.1);
  border-radius: 10px;
  font-size: 0.85rem;
  min-width: 0;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.profile-hero-card__personal-list-item strong {
  color: #0b1220;
  font-size: 0.82rem;
}

.profile-hero-card__personal-list-item span {
  color: #495057;
  line-height: 1.4;
  word-break: break-word;
}

.profile-hero-card__attr-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

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

.profile-hero-card__attr-label {
  color: #495057;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.profile-hero-card__attr-value {
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.profile-hero-card__attr-value--elite { color: #089a9c; }
.profile-hero-card__attr-value--gold { color: #d4a017; }
.profile-hero-card__attr-value--good { color: #ff7a29; }
.profile-hero-card__attr-value--base { color: #6c757d; }

.profile-hero-card__attr-bar {
  width: 100%;
  height: 8px;
  background: rgba(11, 179, 181, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.profile-hero-card__attr-bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.profile-hero-card__attr-bar-fill--elite { background: #0bb3b5; }
.profile-hero-card__attr-bar-fill--gold { background: #d4a017; }
.profile-hero-card__attr-bar-fill--good { background: #ff7a29; }
.profile-hero-card__attr-bar-fill--base { background: #94a3b8; }

.profile-hero-card__attr-note {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(11, 179, 181, 0.08);
  border: 1px dashed rgba(11, 179, 181, 0.35);
  font-size: 0.78rem;
  color: #495057;
  line-height: 1.4;
  text-align: center;
}

.profile-hero-card__footer {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid rgba(11, 179, 181, 0.12);
}

.profile-hero-card__footer > div {
  text-align: center;
}

.profile-hero-card__footer-label {
  font-size: 0.75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-hero-card__footer-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #089a9c;
}

.profile-hero-card__footer-value.is-white {
  color: #0b1220;
}

/* Profile page sections */
html.site-app .smu-profile-section h3 {
  margin: 0;
  color: #0b1220;
  text-align: center;
}

html.site-app .smu-profile-section p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 4px 0 0;
  text-align: center;
}

html.site-app .smu-profile-section > h3 + p {
  margin-bottom: 16px;
}

html.site-app .smu-profile-section__header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  flex-direction: column;
  text-align: center;
}

html.site-app .smu-profile-section__header > div {
  width: 100%;
  text-align: center;
}

html.site-app .smu-profile-section__header > a.primary {
  width: 100%;
  text-align: center;
  justify-content: center;
}

html.site-app .smu-profile-stat-card,
html.site-app .smu-feedback-card {
  background: #f8f9fa;
  border: 1px solid rgba(11, 179, 181, 0.28);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

html.site-app .smu-profile-stat-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

html.site-app .smu-feedback-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

html.site-app #statsBySport {
  display: grid;
  gap: 12px;
}

html.site-app .settings-profile-hint {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 179, 181, 0.1), rgba(255, 122, 41, 0.06));
  border: 1px solid rgba(11, 179, 181, 0.22);
}

html.site-app .settings-profile-hint strong {
  display: block;
  margin-bottom: 6px;
  color: #0b1220;
  font-size: 0.92rem;
}

html.site-app .settings-profile-hint p {
  margin: 0;
  color: #6c757d;
  font-size: 0.85rem;
  line-height: 1.45;
}

html.site-app .smu-profile-stat-card:hover,
html.site-app .smu-feedback-card:hover {
  border-color: rgba(11, 179, 181, 0.45);
  box-shadow: 0 6px 18px rgba(0, 35, 102, 0.08);
}

html.site-app .smu-profile-stat-card__title {
  color: #0b1220;
  font-size: 1.05rem;
}

html.site-app .smu-profile-stat-card__metric {
  font-size: 1.5rem;
  color: var(--brand);
  font-weight: 700;
}

html.site-app .smu-profile-stat-card__metric-label {
  font-size: 0.75rem;
  color: #6c757d;
}

html.site-app .smu-profile-stat-card__badge {
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

html.site-app .smu-profile-stat-card__badge.is-muted {
  background: rgba(11, 179, 181, 0.12);
  color: #0b1220;
}

/* Profile — sport stat rows */
html.site-app .sport-stat-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

html.site-app .sport-stat-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 35, 102, 0.1);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 35, 102, 0.05);
}

html.site-app .sport-stat-row__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

html.site-app .sport-stat-row__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--sport-accent, #0bb3b5) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--sport-accent, #0bb3b5) 24%, transparent);
}

html.site-app .sport-stat-row__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0b1220;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.site-app .sport-stat-row__figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

html.site-app .sport-stat-row__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 8px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(0, 35, 102, 0.06);
  text-align: center;
}

html.site-app .sport-stat-row__value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sport-accent, #0bb3b5);
  line-height: 1;
}

html.site-app .sport-stat-row__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6c757d;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media screen and (min-width: 480px) {
  html.site-app .sport-stat-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  html.site-app .sport-stat-row__figures {
    width: auto;
    min-width: 200px;
    max-width: 240px;
    flex-shrink: 0;
  }
}

html.site-app .sport-stat-empty {
  text-align: center;
  padding: 28px 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fafc, #fff);
  border: 1px dashed rgba(11, 179, 181, 0.35);
}

html.site-app .sport-stat-empty__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

html.site-app .sport-stat-empty__title {
  margin: 0 0 6px;
  font-weight: 700;
  color: #002366;
}

html.site-app .sport-stat-empty__text {
  margin: 0;
  font-size: 0.88rem;
  color: #6c757d;
}

html.site-app .smu-feedback-card__main {
  flex: 1;
  min-width: 0;
  width: 100%;
}

html.site-app .smu-feedback-card__author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  justify-content: center;
}

html.site-app .smu-feedback-card__author {
  color: #0b1220;
  font-size: 1rem;
}

html.site-app .smu-feedback-card__sport {
  background: rgba(11, 179, 181, 0.12);
  color: #067a7c;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

html.site-app .smu-feedback-card__date {
  color: #6c757d;
  font-size: 0.8rem;
  margin: 0;
}

html.site-app .smu-feedback-card__stars {
  font-size: 1rem;
  white-space: nowrap;
  line-height: 1.2;
  flex-shrink: 0;
}

html.site-app .smu-feedback-card__comment {
  color: #0b1220;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  padding: 12px 14px;
  background: #f3fbfb;
  border-radius: 10px;
  border: 1px solid rgba(11, 179, 181, 0.16);
  border-left: 4px solid var(--brand);
}

html.site-app .smu-profile-empty-state {
  text-align: center;
  color: #6c757d;
  padding: 20px;
  margin: 0;
}

html.site-app .smu-profile-empty-state__title {
  margin: 0;
  font-weight: 600;
  color: #0b1220;
}

html.site-app .smu-profile-empty-state__text {
  margin: 8px 0 0;
  color: #6c757d;
  font-size: 0.9rem;
}

html.site-app .smu-profile-section .smu-profile-empty {
  text-align: center;
  color: #6c757d;
  padding: 20px;
  margin: 0;
}

html.site-app .smu-profile-empty-state__icon {
  font-size: 2.5rem;
  margin: 0 0 8px;
}

.profile-hero-card__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 0;
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.profile-hero-card__footer #avgRating {
  color: #089a9c;
}

.profile-hero-card__footer #totalFeedbacks {
  color: #0b1220;
}

@media screen and (max-width: 480px) {
  .profile-hero-card__personal-value {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .profile-hero-card__personal-tag {
    white-space: normal;
  }

  .profile-hero-card__name {
    font-size: 1.45rem;
  }
}

/* ===== Feedback form page ===== */
html.site-app #feedbackForm label {
  display: block;
  color: #0b1220;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

html.site-app #feedbackForm .smu-feedback-form__intro {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0 0 20px;
}

html.site-app #feedbackForm .smu-feedback-form__stars-box {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid rgba(11, 179, 181, 0.24);
  border-radius: 12px;
}

html.site-app #feedbackForm .smu-feedback-form__stars-row {
  font-size: 3rem;
  letter-spacing: 8px;
  cursor: pointer;
  line-height: 1.1;
}

html.site-app #feedbackForm .smu-feedback-form__stars-hint {
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 12px;
}

html.site-app #feedbackForm .smu-feedback-form__field-section {
  margin: 30px 0;
  padding: 24px;
  background: rgba(11, 179, 181, 0.08);
  border: 2px solid rgba(11, 179, 181, 0.24);
  border-radius: 16px;
}

html.site-app #feedbackForm .smu-feedback-form__field-section h3 {
  color: #067a7c;
  margin: 0 0 8px;
}

html.site-app #feedbackForm .smu-feedback-form__field-section p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0 0 20px;
}

html.site-app #feedbackForm .smu-feedback-form__field-stars {
  background: #ffffff;
  border: 1px solid rgba(11, 179, 181, 0.24);
}

html.site-app #feedbackForm #statsSection h4 {
  color: #0b1220;
  margin: 0 0 12px;
}

html.site-app #feedbackForm #statsSection label {
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}

html.site-app #recentFeedbacks {
  display: grid;
  gap: 12px;
}

html.site-app.ios.pwa .card,
html.site-app.ios.pwa .app-container,
html.site-app.ios.pwa main.app-container {
  width: 100%;
  max-width: min(var(--shell-max, 540px), 100%);
  box-sizing: border-box;
}

html.site-app.ios,
html.site-app.ios body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@keyframes smu-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.location-type-btn.active {
  border-color: var(--brand) !important;
  background: rgba(11, 179, 181, 0.2) !important;
  box-shadow: 0 0 20px rgba(11, 179, 181, 0.3);
}

.field-selection-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--input-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.field-selection-card:hover {
  border-color: var(--brand);
  background: rgba(11, 179, 181, 0.06);
  transform: translateY(-1px);
}

.field-selection-card.selected {
  border-color: var(--brand);
  background: rgba(11, 179, 181, 0.12);
  box-shadow: 0 0 0 3px rgba(11, 179, 181, 0.16);
}

/* ===== Subscription ===== */
.subscription-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.subscription-modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(11, 179, 181, 0.15);
}

@media screen and (max-width: 480px) {
  html.site-app .card {
    padding: 16px !important;
  }

  .subscription-modal-content {
    padding: 20px 16px !important;
    border-radius: var(--radius-md) !important;
  }
}

/* ===== Facility settings sections ===== */
html.site-facility .settings-container {
  width: 100%;
  max-width: var(--shell-max, 540px);
  margin: 0 auto;
  padding: 12px var(--shell-pad-x, 16px) 20px;
  box-sizing: border-box;
}

html.site-facility .settings-section,
html.site-facility .settings-card,
html.site-facility .form-section-card {
  background: #fff;
  border: 1px solid rgba(11, 179, 181, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 1rem;
}

html.site-facility.facility-auth .form-group input,
html.site-facility.facility-auth .form-group select,
html.site-facility.facility-auth .form-group textarea,
html.site-facility .form-group input,
html.site-facility .form-group select,
html.site-facility .form-group textarea {
  border-radius: var(--radius-md);
  border: 2px solid var(--input-border);
  padding: 0.75rem 1rem;
}

html.site-facility .form-group input:focus,
html.site-facility .form-group select:focus,
html.site-facility .form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 179, 181, 0.14);
  outline: none;
}

/* ===== Matches page ===== */
html.site-app .matches-page {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  overflow: visible;
}

html.site-app.ios.pwa .matches-page {
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
}

html.site-app #myMatchesSection,
html.site-app #myMatchesList {
  overflow: visible;
  min-height: 0;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
}

html.site-app #myMatchesList .card,
html.site-app #myMatchesSection > .card,
html.site-app .my-match-card,
html.site-app .my-matches-hero-card {
  overflow: visible !important;
  height: auto !important;
  min-height: unset !important;
  flex-shrink: 0;
}

html.site-app .my-match-card {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 179, 181, 0.1), rgba(11, 179, 181, 0.05));
  border: 2px solid var(--brand);
}

html.site-app .my-match-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brand);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(11, 179, 181, 0.3);
  z-index: 1;
  width: auto;
  max-width: calc(100% - 24px);
}

html.site-app .my-match-card__head {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-top: 8px;
  padding-right: 96px;
}

html.site-app .my-match-card__emoji {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}

html.site-app .my-match-card__info {
  flex: 1;
  min-width: 0;
}

html.site-app .my-match-card__title {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: var(--text);
}

html.site-app .my-match-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

html.site-app .my-match-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

html.site-app .my-match-card__players {
  margin-bottom: 16px;
}

html.site-app .my-match-card__players-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

html.site-app .my-match-card__progress {
  height: 8px;
  background: rgba(11, 179, 181, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

html.site-app .my-match-card__progress-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
}

html.site-app .my-match-card__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

html.site-app .my-match-card__tag {
  background: rgba(11, 179, 181, 0.2);
  color: var(--brand);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  width: auto;
}

html.site-app .my-match-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

html.site-app .my-matches-hero-card {
  padding: 24px !important;
  margin-bottom: 20px !important;
  background: linear-gradient(135deg, rgba(11, 179, 181, 0.15), rgba(11, 179, 181, 0.05)) !important;
  border: 2px solid var(--brand) !important;
}

html.site-app .my-matches-hero-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html.site-app .my-matches-hero-card__lead {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

html.site-app .my-matches-hero-card__icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}

html.site-app .my-matches-hero-card__count {
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(11, 179, 181, 0.3);
  flex-shrink: 0;
  width: auto;
}

html.site-app .matches-home-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 179, 181, 0.14), rgba(0, 35, 102, 0.06));
  border: 1px solid rgba(11, 179, 181, 0.24);
}

html.site-app .matches-home-banner__icon {
  font-size: 1.8rem;
  line-height: 1;
}

html.site-app .matches-home-banner__title {
  display: block;
  color: #0b1220;
  font-size: 0.95rem;
}

html.site-app .matches-home-banner__text {
  margin: 4px 0 0;
  color: #3d4f5f;
  font-size: 0.82rem;
}

html.site-app .matches-filters-card {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(11, 179, 181, 0.2) !important;
  box-shadow: 0 10px 30px rgba(0, 35, 102, 0.08) !important;
}

html.site-app .matches-filters-card__hero {
  padding: 20px 18px 16px;
  background:
    radial-gradient(circle at top right, rgba(11, 179, 181, 0.08), transparent 42%),
    radial-gradient(circle at bottom left, rgba(255, 122, 41, 0.05), transparent 38%);
  color: #0b1220;
  border-bottom: 1px solid rgba(11, 179, 181, 0.12);
}

html.site-app .matches-filters-card__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b1220;
  text-align: center;
}

html.site-app .matches-filters-card__subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: #6c757d;
  text-align: center;
}

html.site-app .matches-filters-card__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

html.site-app .matches-filters-section {
  padding: 16px 18px;
  border-top: 1px solid rgba(0, 35, 102, 0.06);
}

html.site-app .matches-filters-section--distance {
  padding-top: 14px;
  background: rgba(248, 250, 252, 0.9);
}

html.site-app .matches-filters-section--sport {
  padding-top: 18px;
  padding-bottom: 18px;
}

html.site-app .matches-filters-section--details {
  padding-top: 14px;
  padding-bottom: 18px;
  background: rgba(11, 179, 181, 0.04);
  border-top: 1px dashed rgba(11, 179, 181, 0.22);
}

html.site-app .matches-filters-section__hint {
  margin: 0 0 12px;
  color: #3d4f5f;
  font-size: 0.82rem;
  line-height: 1.45;
}

html.site-app .matches-filter-field--sport select {
  font-size: 1rem;
  font-weight: 600;
}

html.site-app .matches-filters-grid--sport {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media screen and (min-width: 560px) {
  html.site-app .matches-filters-grid--sport {
    grid-template-columns: 1fr 1fr;
  }

  html.site-app .matches-filters-grid--sport .matches-filter-field:last-child {
    grid-column: 1 / -1;
  }
}

html.site-app .matches-radius-block,
html.site-app .matches-filters-actions {
  padding-left: 0;
  padding-right: 0;
}

html.site-app .matches-filters-actions {
  padding: 0 18px 16px;
  border-top: 1px solid rgba(0, 35, 102, 0.06);
  margin-top: 0;
}

html.site-app .matches-radius-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

html.site-app .matches-radius-block__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0b1220;
}

html.site-app .matches-radius-block__value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand);
  background: rgba(11, 179, 181, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

html.site-app .matches-radius-block__slider {
  width: 100%;
  accent-color: var(--brand);
}

html.site-app .matches-radius-block__hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #3d4f5f;
  line-height: 1.4;
}

html.site-app .matches-location-pill {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11, 179, 181, 0.12);
  border: 1px solid rgba(0, 35, 102, 0.18);
  color: #0b1220;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

html.site-app .matches-location-search {
  margin-bottom: 14px;
}

html.site-app .matches-location-search__label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2d3748;
}

html.site-app .matches-location-search__host {
  position: relative;
  overflow: visible;
}

html.site-app .matches-location-search__input {
  width: 100%;
  box-sizing: border-box;
  color: #0b1220;
  background: #ffffff;
  border: 2px solid #dbe2ea;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: 'Poppins', system-ui, sans-serif;
}

html.site-app .matches-location-search__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 179, 181, 0.18);
}

html.site-app .matches-location-search__hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #3d4f5f;
  line-height: 1.4;
}

html.site-app .location-suggestions-list {
  position: fixed;
  z-index: 10200;
  display: block;
  background: #ffffff;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

html.site-app .location-suggestions-list[hidden] {
  display: none !important;
}

html.site-app .location-suggestion-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #0b1220;
  padding: 11px 14px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
  cursor: pointer;
  border-top: 1px solid #eef2f6;
}

html.site-app .location-suggestion-item:first-child {
  border-top: none;
}

html.site-app .location-suggestion-item:hover,
html.site-app .location-suggestion-item:focus {
  background: rgba(11, 179, 181, 0.08);
  outline: none;
}

html.site-app .location-suggestions-empty {
  padding: 12px 14px;
  color: #6c757d;
  font-size: 0.88rem;
  line-height: 1.4;
}

html.site-app .matches-filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 14px;
}

html.site-app .matches-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html.site-app .matches-filter-field[hidden],
html.site-app .matches-filters-section[hidden] {
  display: none !important;
}

html.site-app .matches-filter-field--full {
  grid-column: 1 / -1;
}

html.site-app .matches-filter-field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2d3748;
}

html.site-app .matches-filter-field select {
  width: 100%;
  box-sizing: border-box;
}

html.site-app .matches-filters-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 14px;
}

html.site-app .matches-filters-actions #geolocateBtn {
  grid-column: 1 / -1;
}

html.site-app .matches-filters-share {
  padding: 0 18px 16px;
  border-top: 1px solid rgba(0, 35, 102, 0.06);
}

html.site-app .matches-share-btn {
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 10px 14px !important;
  min-height: 44px;
  font-size: 0.88rem !important;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  box-sizing: border-box;
}

html.site-app .matches-share-btn span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

html.site-app .matches-results-bar {
  margin: 14px 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(11, 179, 181, 0.1);
  border: 1px solid rgba(0, 35, 102, 0.12);
  text-align: center;
  color: #002366;
  font-size: 0.9rem;
  font-weight: 700;
}

html.site-app .matches-results-bar--empty {
  background: rgba(255, 122, 41, 0.1);
  border-color: rgba(180, 83, 9, 0.25);
  color: #9a3412;
}

html.site-app .matches-list {
  display: grid;
  gap: 12px;
}

html.site-app .matches-discover-card {
  margin-bottom: 0;
  box-shadow: 0 6px 18px rgba(0, 35, 102, 0.06);
}

html.site-app .matches-discover-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 179, 181, 0.16);
}

html.site-app .matches-discover-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

html.site-app .matches-discover-card__seed {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 122, 41, 0.18);
  color: #9a3412;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html.site-app .matches-discover-card__category {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(0, 35, 102, 0.08);
  color: #002366;
  font-size: 0.72rem;
  font-weight: 600;
}

html.site-app .matches-empty-state {
  text-align: center;
  padding: 36px 24px !important;
}

html.site-app .matches-empty-state__icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

html.site-app .matches-empty-state__title {
  margin: 0 0 16px;
  color: #2d3748;
}

html.site-app .matches-page .match-role-chip {
  background: rgba(0, 35, 102, 0.08);
  color: #002366;
  border: 1px solid rgba(0, 35, 102, 0.12);
}

html.site-app .matches-discover-card .featured-match-card__sport {
  color: #0b1220;
}

html.site-app .matches-empty-state__radius-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(255, 152, 0, 0.08);
  border: 1px solid rgba(255, 152, 0, 0.25);
  font-size: 0.88rem;
}

html.site-app .matches-empty-state__btn {
  width: 100%;
}

@media screen and (max-width: 520px) {
  html.site-app .matches-filters-grid {
    grid-template-columns: 1fr;
  }

  html.site-app .matches-filter-field--full {
    grid-column: auto;
  }
}

/* ===== Matches list rows (legacy) ===== */
html.site-app #matchesList {
  display: grid;
  gap: 12px;
}

html.site-app .smu-match-row {
  padding: 16px !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

html.site-app .smu-match-row:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 179, 181, 0.35) !important;
  box-shadow: 0 10px 28px rgba(0, 35, 102, 0.12) !important;
}

/* ===== Create match form ===== */
html.site-app #createForm.card {
  padding: 20px 18px;
  overflow: visible !important;
}

html.site-app #createForm .form-group {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0 0 1.1rem;
  max-width: none;
  width: 100%;
}

html.site-app #createForm .form-group label,
html.site-app #createForm h3 {
  display: block;
  margin: 0 0 8px;
  font-weight: 600;
  color: #0b1220 !important;
  text-align: left;
}

html.site-app #createForm h3 {
  margin-top: 1.5rem;
}

html.site-app #createForm .form-group select,
html.site-app #createForm .form-group input,
html.site-app #createForm .form-group textarea,
html.site-app #createForm select,
html.site-app #createForm input,
html.site-app #createForm textarea {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  color: #0b1220 !important;
  -webkit-text-fill-color: #0b1220;
  background-color: #f8f9fa !important;
  border: 2px solid #dbe2ea !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-size: 1rem !important;
  text-align: left !important;
  line-height: 1.4 !important;
}

html.site-app #createForm input::placeholder,
html.site-app #createForm textarea::placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #6c757d !important;
}

html.site-app #createForm input:focus::placeholder,
html.site-app #createForm textarea:focus::placeholder {
  color: transparent !important;
  opacity: 0 !important;
  -webkit-text-fill-color: transparent !important;
}

html.site-app #createForm .form-group select,
html.site-app #createForm select {
  padding-right: 44px !important;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand) 50%),
    linear-gradient(135deg, var(--brand) 50%, transparent 50%) !important;
  background-position: calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px) !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
}

html.site-app #createForm .form-group small {
  display: block;
  margin-top: 6px;
  color: var(--muted, #6c757d) !important;
  text-align: left;
}

html.site-app #createForm .smu-datetime-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 0.5rem;
}

html.site-app #createForm .smu-datetime-grid .form-group {
  margin-bottom: 0;
}

html.site-app gmp-place-autocomplete {
  display: block;
  width: 100%;
  color-scheme: light;
  background-color: #f8f9fa;
  border: 2px solid #dbe2ea;
  border-radius: 12px;
  color: #0b1220;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  html.site-app #createForm .smu-datetime-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Match audience badges (gender) */
.audience-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

.audience-badge--male {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.audience-badge--female {
  background: rgba(236, 72, 153, 0.15);
  color: #db2777;
}

.audience-badge--mixed {
  background: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
}

.match-sport .audience-badge {
  margin-left: 0;
  margin-top: 6px;
}

/* ===== Match detail hero (header above Dove) ===== */
.match-detail-hero {
  padding: 20px 18px !important;
  overflow: hidden;
}

.match-detail-hero__top {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.match-detail-hero__status {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.match-detail-hero__sport {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin-bottom: 12px;
}

.match-detail-hero__icon {
  font-size: 3rem;
  line-height: 1;
}

.match-detail-hero__title {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.15;
  color: #0b1220;
  font-weight: 700;
}

.match-detail-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.match-detail-hero__badges .category-badge,
.match-detail-hero__badges .audience-badge {
  margin: 0;
}

.match-detail-hero__datetime {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.match-detail-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(11, 179, 181, 0.08);
  border: 1px solid rgba(11, 179, 181, 0.16);
  min-width: 0;
}

.match-detail-hero__chip-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.match-detail-hero__chip-text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0b1220;
  line-height: 1.3;
}

.match-detail-hero .match-stats-bar {
  margin: 14px 0 18px;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(11, 179, 181, 0.12);
}

.match-detail-hero__location {
  margin-bottom: 0;
  text-align: center;
}

.match-detail-hero__location .section-title {
  text-align: center;
}

.match-detail-hero__location .location-content {
  justify-content: center;
}

.match-detail-hero__location .location-info {
  text-align: center;
}

.match-detail-hero__location .map-link {
  justify-content: center;
  width: 100%;
}

@media screen and (max-width: 480px) {
  .match-detail-hero__icon {
    font-size: 2.5rem;
  }

  .match-detail-hero__title {
    font-size: 1.4rem;
  }

  .match-detail-hero__datetime {
    flex-direction: column;
    align-items: stretch;
  }

  .match-detail-hero__chip {
    justify-content: center;
  }
}

/* ===== Home page wow ===== */
html.site-app .home-page {
  padding-bottom: 28px;
}

html.site-app .app-header__page-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

html.site-app .home-hero {
  position: relative;
  margin-bottom: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(11, 179, 181, 0.22);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  background: #ffffff;
  color: #0b1220;
  animation: homeHeroIn 0.55s ease-out;
}

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

html.site-app .home-hero__glow {
  position: absolute;
  inset: -30% -20% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 179, 181, 0.14) 0%, transparent 68%);
  pointer-events: none;
  animation: homeGlowPulse 6s ease-in-out infinite;
}

@keyframes homeGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

html.site-app .home-hero__content {
  position: relative;
  z-index: 1;
  padding: 24px 20px 20px;
  background:
    radial-gradient(circle at top right, rgba(11, 179, 181, 0.08), transparent 42%),
    radial-gradient(circle at bottom left, rgba(255, 122, 41, 0.05), transparent 38%);
}

html.site-app .home-hero__eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #089a9c;
}

html.site-app .home-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 4.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0b1220;
}

html.site-app .home-hero__subtitle {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #6c757d;
}

html.site-app .home-hero__subtitle.is-live {
  color: #089a9c;
  font-weight: 600;
}

html.site-app .home-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

html.site-app .home-hero__chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11, 179, 181, 0.08);
  border: 1px solid rgba(11, 179, 181, 0.2);
  font-size: 0.78rem;
  font-weight: 600;
  color: #089a9c;
}

html.site-app .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

html.site-app .home-hero__stat {
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(11, 179, 181, 0.06);
  border: 1px solid rgba(11, 179, 181, 0.12);
  text-align: center;
}

html.site-app .home-hero__stat-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b1220;
  line-height: 1.2;
}

html.site-app .home-hero__stat-label {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
}

html.site-app .home-hero__actions {
  margin: 0;
  gap: 12px;
}

html.site-app .home-hero__cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(11, 179, 181, 0.22);
}

html.site-app .home-hero__cta-arrow {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

html.site-app .home-hero__cta:hover .home-hero__cta-arrow {
  transform: translateX(3px);
}

html.site-app .home-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

html.site-app .home-quick-action {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 10px 6px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 2px solid rgba(11, 179, 181, 0.35) !important;
  color: #089a9c !important;
  font-size: 0.72rem !important;
}

html.site-app .home-quick-action:hover {
  background: rgba(11, 179, 181, 0.08) !important;
  transform: translateY(-1px);
}

html.site-app .home-quick-action__icon {
  font-size: 1.25rem;
  line-height: 1;
}

html.site-app .home-quick-action__label {
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  word-break: break-word;
}

html.site-app .home-feed-card {
  margin-bottom: 14px;
  border: 1px solid rgba(11, 179, 181, 0.22) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
  animation: homeCardIn 0.45s ease-out backwards;
}

html.site-app .home-feed-card:nth-of-type(2) { animation-delay: 0.05s; }
html.site-app .home-feed-card:nth-of-type(3) { animation-delay: 0.1s; }
html.site-app .home-feed-card:nth-of-type(4) { animation-delay: 0.15s; }

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

html.site-app .home-feed-card__head {
  margin-bottom: 12px;
}

html.site-app .home-feed-card__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b1220;
}

html.site-app .home-feed-card__subtitle {
  margin: 0;
  font-size: 0.86rem;
  color: #3d4f5f;
  line-height: 1.4;
}

html.site-app .home-feed-loading {
  text-align: center;
  color: #6c757d;
  padding: 20px;
  margin: 0;
}

html.site-app .home-match-stack {
  display: grid;
  gap: 10px;
  text-align: left;
}

html.site-app .home-match-stack .home-feed-loading,
html.site-app .home-match-stack .featured-matches-empty,
html.site-app .home-match-stack .featured-matches-error {
  text-align: center;
}

html.site-app .home-match-stack .featured-match-card {
  margin-bottom: 0;
}

html.site-app .home-match-stack .featured-matches-see-all {
  margin-top: 4px;
}

@media screen and (max-width: 400px) {
  html.site-app .home-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== CREATE PAGE HERO ===== */

html.site-app .create-page {
  padding-top: 4px;
}

html.site-app .create-hero {
  position: relative;
  margin-bottom: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(11, 179, 181, 0.22);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  background: #ffffff;
  color: #0b1220;
  animation: homeHeroIn 0.55s ease-out;
}

html.site-app .create-hero__glow {
  position: absolute;
  inset: -35% -15% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 179, 181, 0.14) 0%, transparent 68%);
  pointer-events: none;
  animation: homeGlowPulse 6s ease-in-out infinite;
}

html.site-app .create-hero__orb--left {
  position: absolute;
  left: -80px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 41, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

html.site-app .create-hero__content {
  position: relative;
  z-index: 1;
  padding: 24px 20px 20px;
  background:
    radial-gradient(circle at top right, rgba(11, 179, 181, 0.08), transparent 42%),
    radial-gradient(circle at bottom left, rgba(255, 122, 41, 0.05), transparent 38%);
}

html.site-app .create-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #089a9c;
}

html.site-app .create-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4.8vw, 2rem);
  font-weight: 800;
  line-height: 1.12;
  color: #0b1220;
  letter-spacing: -0.02em;
}

html.site-app .create-hero__subtitle {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #6c757d;
  max-width: 36ch;
}

html.site-app .create-hero__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(11, 179, 181, 0.08);
  border: 1px solid rgba(11, 179, 181, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  color: #089a9c;
}

html.site-app .create-hero__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(11, 179, 181, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
  color: #0b1220;
}

html.site-app .create-hero__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 2px solid rgba(11, 179, 181, 0.35);
  color: #089a9c;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

html.site-app .create-hero__link:hover {
  background: rgba(11, 179, 181, 0.08);
  transform: translateY(-1px);
}

@media screen and (max-width: 480px) {
  html.site-app .create-hero__content {
    padding: 18px 14px 16px;
  }

  html.site-app .create-hero__links {
    flex-direction: column;
  }

  html.site-app .create-hero__link {
    justify-content: center;
  }
}

/* ===== SETTINGS SKILL LEVEL SELECT ===== */

html.site-app .skill-level-field {
  margin-bottom: 12px;
}

html.site-app .skill-level-field__label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted, #6c757d);
  margin-bottom: 6px;
  font-weight: 600;
}

html.site-app .skill-level-field__select-wrap {
  position: relative;
  display: block;
}

html.site-app .skill-level-field__select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--brand, #0bb3b5);
  pointer-events: none;
}

html.site-app .skill-level-select {
  width: 100%;
  margin: 0;
  padding: 12px 44px 12px 14px;
  border: 2px solid #dbe2ea;
  border-radius: 10px;
  background-color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b1220;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

html.site-app .skill-level-select:focus {
  outline: none;
  border-color: var(--brand, #0bb3b5);
  box-shadow: 0 0 0 3px rgba(11, 179, 181, 0.14);
}

html.site-app .skill-level-select:invalid,
html.site-app .skill-level-select option[value=""] {
  color: #6c757d;
}

html.site-app .skill-level-field__hint {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--muted, #6c757d);
  line-height: 1.35;
}

/* ===== PLAYER PWA UNIFIED SHELL (profile design system) ===== */

html.site-app body::before {
  display: none;
}

html.site-app,
html.site-app body {
  background-color: #f3f6f9;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(11, 179, 181, 0.07), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(255, 122, 41, 0.05), transparent 38%);
  overflow-x: hidden;
}

html.site-app body {
  min-height: 100dvh;
  align-items: center;
}

html.site-app body > .app-header {
  width: 100%;
  max-width: min(var(--shell-max, 540px), 100%);
  margin-inline: auto;
  align-self: center;
  box-sizing: border-box;
}

html.site-app main.app-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: min(var(--shell-max, 540px), 100%);
  margin-inline: auto;
  padding: 16px max(16px, env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  overflow-x: hidden;
}

html.site-app main.app-container > *,
html.site-app main.app-container form.card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

html.site-app main.app-container .card:not(.profile-hero-card):not(.my-match-card):not(.my-matches-hero-card) {
  border: 1px solid rgba(11, 179, 181, 0.22) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
  background: #ffffff !important;
  padding: 20px !important;
  margin: 0 !important;
  overflow: hidden;
}

html.site-app.ios main.app-container .card,
html.site-app.ios main.app-container section.card,
html.site-app.ios .match-detail-hero,
html.site-app.ios .field-detail-hero {
  overflow: visible !important;
}

html.site-app main.app-container .card.my-match-card,
html.site-app main.app-container .card.my-matches-hero-card,
html.site-app #myMatchesList .card,
html.site-app #myMatchesSection > .card {
  overflow: visible !important;
}

html.site-app #settingsForm.card {
  overflow: visible !important;
}

html.site-app .settings-location-fields,
html.site-app .settings-autocomplete-wrap {
  overflow: visible;
}

html.site-app .settings-autocomplete-wrap {
  width: 100%;
}

html.site-app .settings-autocomplete-wrap input[type="text"] {
  margin-bottom: 0 !important;
}

html.site-app .settings-address-suggestions {
  z-index: 2500;
}

html.site-app .home-feed-card,
html.site-app .smu-profile-section,
html.site-app .matches-filters-card,
html.site-app .matches-results-card,
html.site-app #createForm.card {
  background:
    radial-gradient(circle at top right, rgba(11, 179, 181, 0.05), transparent 46%),
    #ffffff !important;
}

html.site-app main.app-container .card > h3,
html.site-app .home-feed-card__title,
html.site-app .matches-filters-card__title,
html.site-app .smu-profile-section h3,
html.site-app .fields-hero h1 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b1220;
  text-align: center;
}

html.site-app .home-feed-card__subtitle,
html.site-app .matches-filters-card__subtitle,
html.site-app .smu-profile-section > p,
html.site-app .fields-hero p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: #6c757d;
  line-height: 1.45;
  text-align: center;
}

html.site-app main.app-container .card > p {
  text-align: left;
}

html.site-app .settings-profile-hint,
html.site-app .matches-filters-section,
html.site-app .matches-home-banner,
html.site-app #rolesContainer > div,
html.site-app .bookings-summary-item,
html.site-app .profile-hero-card__attributes-panel {
  background: #f8fafc;
  border: 1px solid rgba(11, 179, 181, 0.14);
  border-radius: 14px;
}

html.site-app .settings-profile-hint {
  padding: 14px 16px;
  margin-bottom: 16px;
  text-align: left;
}

/* Settings — notification preferences toggles */
html.site-app .settings-notifications-card > h3,
html.site-app .settings-notifications-card > h4,
html.site-app .settings-notifications-card > p,
html.site-app .settings-card-intro {
  text-align: left !important;
}

html.site-app .settings-card-intro {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.45;
}

html.site-app .settings-notification-prefs__title {
  margin: 24px 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #0b1220;
  text-align: left;
}

html.site-app .settings-notification-prefs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

html.site-app .settings-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(11, 179, 181, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  box-sizing: border-box;
}

html.site-app .settings-toggle-row:last-child,
html.site-app .settings-toggle-row--single {
  border-bottom: 0;
  padding-bottom: 0;
}

html.site-app .settings-toggle-row:hover {
  background: transparent;
  border-color: rgba(11, 179, 181, 0.12);
}

html.site-app .settings-toggle-row__text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

html.site-app .settings-toggle-row__title {
  display: block;
  margin: 0 0 4px;
  font-weight: 600;
  color: #0b1220;
  font-size: 0.92rem;
  line-height: 1.35;
}

html.site-app .settings-toggle-row__desc {
  display: block;
  margin: 0;
  font-size: 0.8rem;
  color: #6c757d;
  line-height: 1.4;
}

html.site-app .settings-toggle-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--brand, #0bb3b5);
}

html.site-app .matches-filters-section {
  padding: 14px;
  margin-bottom: 0;
}

html.site-app .matches-home-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin: 0;
}

html.site-app .matches-filters-card__hero,
html.site-app .home-feed-card__head {
  margin-bottom: 14px;
  text-align: center;
}

html.site-app .featured-match-card,
html.site-app .smu-profile-stat-card,
html.site-app .smu-feedback-card,
html.site-app .activity-feed-card,
html.site-app .field-card {
  border: 1px solid rgba(11, 179, 181, 0.2) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
  background: #ffffff !important;
}

html.site-app .fields-page,
html.site-app .app-container.fields-page {
  max-width: min(var(--shell-max, 540px), 100%) !important;
  width: 100% !important;
  margin-inline: auto !important;
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)) !important;
  box-sizing: border-box !important;
}

html.site-app .fields-hero,
html.site-app .create-hero,
html.site-app .home-hero {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ===== Fields page (unified player shell) ===== */

html.site-app .fields-page {
  gap: 14px;
  padding-bottom: 28px;
}

html.site-app .fields-hero {
  border: 1px solid rgba(11, 179, 181, 0.22);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin: 0;
}

html.site-app .fields-hero__body {
  padding: 22px 18px 18px;
  background:
    radial-gradient(circle at top right, rgba(11, 179, 181, 0.08), transparent 42%),
    radial-gradient(circle at bottom left, rgba(255, 122, 41, 0.05), transparent 38%);
  text-align: center;
}

html.site-app .fields-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0b1220;
}

html.site-app .fields-hero__text {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.45;
}

html.site-app .fields-hero__text a {
  color: #089a9c;
  font-weight: 600;
  text-decoration: none;
}

html.site-app .fields-hero__note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11, 179, 181, 0.08);
  border: 1px solid rgba(11, 179, 181, 0.18);
  font-size: 0.8rem;
  color: #089a9c;
  line-height: 1.4;
  text-align: left;
}

html.site-app .fields-filters-card {
  padding: 0 !important;
  overflow: hidden;
  margin: 0 !important;
}

html.site-app .fields-filters-card__hero {
  padding: 18px 18px 14px;
  background:
    radial-gradient(circle at top right, rgba(11, 179, 181, 0.08), transparent 42%),
    radial-gradient(circle at bottom left, rgba(255, 122, 41, 0.05), transparent 38%);
  border-bottom: 1px solid rgba(11, 179, 181, 0.12);
  text-align: center;
}

html.site-app .fields-filters-card__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b1220;
}

html.site-app .fields-filters-card__subtitle {
  margin: 0;
  font-size: 0.86rem;
  color: #6c757d;
  line-height: 1.4;
}

html.site-app .fields-filters-card__body {
  padding: 0 18px 16px;
}

html.site-app .fields-filters-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 35, 102, 0.06);
  margin-top: 4px;
}

html.site-app .fields-filters-actions #geolocateBtn {
  grid-column: 1 / -1;
}

html.site-app .fields-filters-actions #resetFiltersBtn {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 44px;
  margin: 0;
  box-sizing: border-box;
}

html.site-app .fields-city-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}

html.site-app .fields-city-row input {
  min-width: 0;
}

html.site-app .fields-city-row #searchFieldsBtn {
  min-height: 44px;
  padding: 0 16px;
  white-space: nowrap;
  margin: 0;
}

html.site-app .fields-filter-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #6c757d;
  line-height: 1.4;
}

html.site-app .fields-status {
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11, 179, 181, 0.1);
  border: 1px solid rgba(11, 179, 181, 0.2);
  color: #089a9c;
  font-size: 0.84rem;
  font-weight: 600;
  margin: 12px 0 0;
}

html.site-app .fields-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 14px;
}

html.site-app .fields-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html.site-app .fields-filter-field--full {
  grid-column: 1 / -1;
}

html.site-app .fields-filter-field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2d3748;
}

html.site-app .fields-filter-field input,
html.site-app .fields-filter-field select {
  width: 100%;
  margin-bottom: 0 !important;
  min-height: 44px;
  box-sizing: border-box;
}

html.site-app .fields-results-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(11, 179, 181, 0.1);
  border: 1px solid rgba(11, 179, 181, 0.14);
  text-align: center;
  color: #0b1220;
  font-size: 0.88rem;
  font-weight: 600;
}

html.site-app .fields-results-bar__hint {
  color: #6c757d;
  font-weight: 500;
  font-size: 0.82rem;
}

html.site-app .fields-grid {
  display: grid;
  gap: 12px;
}

html.site-app .field-card {
  overflow: hidden;
}

html.site-app .field-card-head {
  background: transparent !important;
  color: #0b1220 !important;
  padding: 16px 16px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

html.site-app .field-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(11, 179, 181, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

html.site-app .field-card-title {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0b1220;
}

html.site-app .field-card-sub {
  margin: 0;
  font-size: 0.82rem;
  color: #6c757d;
}

html.site-app .field-card-body {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html.site-app .field-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

html.site-app .field-chip {
  background: rgba(11, 179, 181, 0.08);
  color: #089a9c;
  border: 1px solid rgba(11, 179, 181, 0.16);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

html.site-app .field-chip.brand {
  background: rgba(11, 179, 181, 0.14);
  color: #089a9c;
}

html.site-app .field-card-address,
html.site-app .field-card-type,
html.site-app .field-card-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #6c757d;
}

html.site-app .field-card-type {
  color: #334155;
}

html.site-app .field-card-desc {
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.site-app .field-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(11, 179, 181, 0.12);
}

html.site-app .field-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0b1220;
  line-height: 1;
}

html.site-app .field-price small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6c757d;
  margin-top: 2px;
}

html.site-app .field-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

html.site-app .field-card-actions button {
  min-height: 42px;
  font-size: 0.82rem;
  padding: 8px 10px;
}

html.site-app .fields-empty,
html.site-app .fields-loading {
  text-align: center;
  padding: 28px 18px;
  border: 1px dashed rgba(11, 179, 181, 0.28);
  border-radius: 14px;
  background: #ffffff;
  color: #6c757d;
}

html.site-app .fields-empty h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #0b1220;
}

html.site-app .fields-empty p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

html.site-app .fields-empty a {
  color: #089a9c;
  font-weight: 600;
}

@media screen and (max-width: 520px) {
  html.site-app .fields-filters {
    grid-template-columns: 1fr;
  }

  html.site-app .field-card-actions {
    grid-template-columns: 1fr;
  }
}

html.site-app .navbar {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 100%;
  max-width: min(var(--shell-max, 540px), 100%);
  margin-inline: 0;
  box-sizing: border-box;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid rgba(11, 179, 181, 0.14);
  box-shadow: 0 -4px 20px rgba(0, 35, 102, 0.08);
}

html.site-app img,
html.site-app video,
html.site-app iframe,
html.site-app table,
html.site-app pre {
  max-width: 100%;
}

html.site-app .match-detail-hero,
html.site-app .field-detail-hero {
  border: 1px solid rgba(11, 179, 181, 0.22);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

@media screen and (max-width: 480px) {
  html.site-app main.app-container {
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
    gap: 12px;
  }

  html.site-app main.app-container .card:not(.profile-hero-card) {
    padding: 16px !important;
  }
}

/* ===== Mobile shell — adattamento schermo e allineamento ===== */
@media screen and (max-width: 768px) {
  html.site-app,
  html.site-app body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  html.site-app body {
    align-items: stretch;
  }

  html.site-app body > .app-header,
  html.site-app main.app-container,
  html.site-app .navbar {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  html.site-app main.app-container .card:not(.profile-hero-card),
  html.site-app main.app-container section.card:not(.profile-setup-banner) {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    text-align: left;
  }

  html.site-app .home-feed-card__head,
  html.site-app .home-hero,
  html.site-app .fields-hero__body,
  html.site-app .create-hero,
  html.site-app .matches-filters-card__hero,
  html.site-app .home-hero__stats,
  html.site-app .home-hero__chips {
    text-align: center;
  }

  html.site-app .featured-match-card__row,
  html.site-app .matches-discover-card .featured-match-card__row {
    align-items: flex-start;
  }

  html.site-app .featured-match-card__row > div:first-child {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  html.site-app .featured-match-card__meta {
    text-align: right;
    flex-shrink: 0;
  }

  html.site-app .action,
  html.site-app a.action,
  html.site-app button.action,
  html.site-app button.primary,
  html.site-app button.secondary,
  html.site-app .primary.full,
  html.site-app .secondary.full,
  html.site-app .subscription-plan-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-inline: 0;
  }

  html.site-app .home-quick-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.site-app .home-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  html.site-app .card label,
  html.site-app .card input,
  html.site-app .card select,
  html.site-app .card textarea,
  html.site-app .card .checkbox-label {
    text-align: left;
  }

  html.site-app .navbar a {
    min-width: 0;
    flex: 1;
  }

  html.site-app .profile-hero-card__avatar-stack,
  html.site-app .profile-hero-card__photo {
    width: 112px;
    height: 112px;
  }

  html.site-app .profile-hero-card__photo-fallback {
    font-size: 3rem;
  }

  html.site-app .profile-hero-card__body {
    align-items: center;
  }

  html.site-app .profile-hero-card__identity {
    align-items: center;
  }

  html.site-app .card h3,
  html.site-app .smu-profile-section h3 {
    font-size: 1.0625rem;
  }

  html.site-app .card p,
  html.site-app .card label,
  html.site-app .card small {
    font-size: 0.9375rem;
  }

  html.site-app .profile-hero-card__name {
    font-size: 1.5rem;
  }

  html.site-app .navbar a,
  html.site-app .navbar button {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, opacity 0.15s ease;
  }

  html.site-app .navbar a:hover,
  html.site-app .navbar button:hover {
    background: transparent;
    transform: none;
  }

  html.site-app .navbar a:active,
  html.site-app .navbar button:active {
    opacity: 0.7;
    background: rgba(11, 179, 181, 0.06);
  }

  html.site-app .navbar a:focus-visible,
  html.site-app .navbar button:focus-visible {
    outline: 2px solid rgba(11, 179, 181, 0.4) !important;
    outline-offset: -2px;
  }

  html.site-app main.match-detail-page {
    padding-bottom: calc(16px + 88px + env(safe-area-inset-bottom));
  }

  html.site-app main.match-detail-page .card.match-detail-hero {
    text-align: center;
  }

  html.site-app .match-detail-hero > .match-detail-hero__top,
  html.site-app .match-detail-hero > .match-detail-hero__sport,
  html.site-app .match-detail-hero > .match-detail-hero__badges,
  html.site-app .match-detail-hero > .match-detail-hero__datetime {
    display: flex;
    align-items: center !important;
    justify-content: center;
    width: 100%;
  }

  html.site-app .match-detail-hero > .match-detail-hero__sport {
    flex-direction: column;
  }

  html.site-app .match-detail-hero > .match-detail-hero__badges,
  html.site-app .match-detail-hero > .match-detail-hero__datetime {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
  }

  html.site-app .match-detail-hero__chip {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
  }

  html.site-app .match-detail-hero__location,
  html.site-app .match-detail-hero__location .location-info,
  html.site-app .match-detail-hero__location .section-title {
    text-align: center;
  }

  html.site-app .match-detail-hero .map-link {
    margin-inline: auto;
  }

  html.site-app .match-detail-bottom-spacer {
    height: calc(96px + env(safe-area-inset-bottom));
    flex-shrink: 0;
  }

  html.site-app .field-detail-bottom-spacer {
    height: calc(96px + env(safe-area-inset-bottom));
    flex-shrink: 0;
  }

  html.site-app .organizer-info {
    margin-top: 8px;
    flex-direction: row !important;
    align-items: center !important;
  }

  html.site-app .organizer-avatar {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    flex-shrink: 0 !important;
  }

  html.site-app .organizer-avatar > img,
  html.site-app .organizer-avatar > div {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  html.site-app .player-photo > img,
  html.site-app .player-photo > div {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
  }

  html.site-app .player-card {
    padding: 14px;
  }

  html.site-app .player-card-content {
    gap: 12px;
    align-items: flex-start;
  }

  html.site-app .player-photo {
    width: 54px;
    height: 54px;
    line-height: 1;
  }

  html.site-app .subscription-badge {
    top: 8px;
    right: 8px;
    font-size: 0.62rem;
    padding: 3px 7px;
  }

  html.site-app .player-meta-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  html.site-app .match-payment-card,
  html.site-app .match-payment-card .match-payment-note,
  html.site-app .match-payment-card .match-payment-policy,
  html.site-app .match-payment-card .match-payment-user-status {
    text-align: left;
  }

  html.site-app .match-payment-rows {
    width: 100%;
  }

  html.site-app .match-payment-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px;
    flex-wrap: nowrap !important;
    width: 100%;
  }

  html.site-app .match-payment-label {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  html.site-app .match-payment-value {
    flex-shrink: 0;
    white-space: nowrap;
    text-align: right;
  }

  html.site-app .action-buttons-container {
    padding: 10px max(10px, env(safe-area-inset-left)) calc(10px + var(--navbar-height, 52px) + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 24%, #ffffff 100%);
    border-top: 1px solid rgba(11, 179, 181, 0.12);
  }
}

/* ===== Field detail / booking page ===== */

html.site-app .field-detail-page {
  gap: 14px;
  padding-bottom: 12px;
  max-width: min(var(--shell-max, 540px), 100%) !important;
  width: 100% !important;
  margin-inline: auto !important;
}

html.site-app .field-detail-hero {
  padding: 20px 18px !important;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(11, 179, 181, 0.1), transparent 45%),
    radial-gradient(circle at bottom left, rgba(255, 122, 41, 0.06), transparent 40%),
    #ffffff;
}

html.site-app .field-detail-hero__sport {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

html.site-app .field-detail-hero__icon {
  font-size: clamp(2.5rem, 8vw, 3.25rem);
  line-height: 1;
}

html.site-app .field-detail-hero__title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  line-height: 1.2;
  color: #0b1220;
  font-weight: 800;
}

html.site-app .field-detail-hero__meta {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  text-align: center;
}

html.site-app .field-detail-hero__line {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
  word-break: break-word;
}

html.site-app .field-detail-hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

html.site-app .field-detail-hero__actions .primary,
html.site-app .field-detail-hero__actions .secondary {
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 700;
}

html.site-app .field-booking-card,
html.site-app .field-info-card {
  padding: 18px !important;
}

html.site-app .field-booking-card__title,
html.site-app .field-organize-box__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #0b1220;
  font-weight: 700;
}

html.site-app .field-booking-card__intro,
html.site-app .field-organize-box__text {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

html.site-app .field-organize-box {
  background: rgba(11, 179, 181, 0.08);
  border: 1px solid rgba(11, 179, 181, 0.22);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 4px;
}

html.site-app .field-booking-divider {
  margin: 16px 0;
  border: 0;
  border-top: 1px solid rgba(11, 179, 181, 0.14);
}

html.site-app .field-section-title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #089a9c;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

html.site-app .field-info-section {
  margin-bottom: 20px;
}

html.site-app .field-info-section:last-child {
  margin-bottom: 0;
}

html.site-app .field-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

html.site-app .field-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

html.site-app .field-info-label {
  color: var(--muted, #64748b);
  font-size: 0.82rem;
}

html.site-app .field-info-value {
  color: #0b1220;
  font-weight: 700;
  font-size: 0.95rem;
}

html.site-app .field-info-value--price {
  color: #089a9c;
  font-size: 1.25rem;
}

html.site-app .field-description,
html.site-app .field-muted {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
}

html.site-app .field-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html.site-app .field-amenities .amenity-tag,
html.site-app .amenity-tag {
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #475569;
}

html.site-app .field-reviews-summary {
  margin-bottom: 12px;
  color: #64748b;
  font-size: 0.88rem;
}

html.site-app .field-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html.site-app .field-facility-box {
  margin-top: 8px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

html.site-app .field-opening-hours {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

html.site-app .field-opening-hours .opening-hour-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 8px;
  font-size: 0.88rem;
}

html.site-app .field-calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

html.site-app .field-calendar__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0b1220;
  text-align: center;
  flex: 1;
}

html.site-app .field-calendar__nav {
  background: rgba(11, 179, 181, 0.1);
  border: 1px solid rgba(11, 179, 181, 0.25);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  color: #089a9c;
  cursor: pointer;
  flex-shrink: 0;
}

html.site-app .field-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

html.site-app .field-detail-page .date-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.82rem;
  min-width: 0;
}

html.site-app .field-detail-page .date-cell:hover:not(.past) {
  border-color: #0bb3b5;
  background: rgba(11, 179, 181, 0.06);
}

html.site-app .field-detail-page .date-cell.selected {
  background: #0bb3b5;
  color: #fff;
  border-color: #0bb3b5;
}

html.site-app .field-detail-page .date-cell.past {
  opacity: 0.35;
  cursor: not-allowed;
}

html.site-app .field-time-slots__list {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 8px;
}

html.site-app .field-detail-page .time-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

html.site-app .field-detail-page .time-slot:hover:not(.booked) {
  border-color: #0bb3b5;
  background: rgba(11, 179, 181, 0.04);
}

html.site-app .field-detail-page .time-slot.selected {
  background: #0bb3b5;
  color: #fff;
  border-color: #0bb3b5;
}

html.site-app .field-detail-page .time-slot.selected div[style*="color: #0bb3b5"] {
  color: #fff !important;
}

html.site-app .field-detail-page .time-slot.booked {
  opacity: 0.55;
  cursor: not-allowed;
  background: #fef2f2;
}

html.site-app .field-booking-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

html.site-app .field-booking-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

html.site-app .field-booking-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 2px solid #e2e8f0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #089a9c;
}

html.site-app .field-booking-summary__note {
  margin: 10px 0 0;
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
}

html.site-app .field-login-prompt {
  text-align: center;
  padding: 24px 12px;
  color: #64748b;
}

@media screen and (max-width: 480px) {
  html.site-app .field-detail-hero__actions {
    grid-template-columns: 1fr;
  }

  html.site-app .field-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PWA MOBILE — Settings push + Fields modal ===== */

html.site-app .settings-notifications-card .settings-push-box {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

html.site-app .settings-push-box--warning {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
}

html.site-app .settings-push-box--success {
  background: rgba(40, 167, 69, 0.1);
  border-left: 4px solid #28a745;
}

html.site-app .settings-push-box--error {
  background: rgba(220, 53, 69, 0.1);
  border-left: 4px solid #dc3545;
}

html.site-app .settings-push-box--neutral {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}

html.site-app .settings-push-box__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html.site-app .settings-push-box__row--toolbar {
  align-items: center;
}

html.site-app .settings-push-box__icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

html.site-app .settings-push-box__icon--sm {
  font-size: 1.35rem;
}

html.site-app .settings-push-box__body {
  flex: 1;
  min-width: 0;
}

html.site-app .settings-push-box__body--compact {
  flex: 1 1 auto;
}

html.site-app .settings-push-box__title {
  margin: 0 0 6px;
  font-weight: 600;
  color: #0b1220;
  font-size: 0.95rem;
  line-height: 1.35;
}

html.site-app .settings-push-box__title--success {
  color: #28a745;
}

html.site-app .settings-push-box__title--sm {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

html.site-app .settings-push-box__desc {
  margin: 0 0 10px;
  color: #6c757d;
  font-size: 0.84rem;
  line-height: 1.45;
}

html.site-app .settings-push-box__body--compact .settings-push-box__desc {
  margin-bottom: 0;
}

html.site-app .settings-push-box__list {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #6c757d;
  font-size: 0.84rem;
  line-height: 1.55;
}

html.site-app .settings-push-box__list--ordered {
  list-style: decimal;
}

html.site-app .settings-push-box__cta {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  border: none !important;
  font-weight: 600;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal !important;
  text-align: center;
  min-width: 0 !important;
}

html.site-app .settings-push-box__inline-btn,
html.site-app .settings-push-box__inline-link {
  flex-shrink: 0;
  align-self: center;
  padding: 8px 12px !important;
  font-size: 0.82rem !important;
  white-space: nowrap;
  min-width: auto !important;
  max-width: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.site-app .fields-modal:not(.is-open),
html.site-app .fields-modal[hidden],
html.site-app .fields-modal[style*="display: none"],
html.site-app .fields-modal[style*="display:none"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.site-app .fields-modal.is-open,
html.site-app .fields-modal[style*="display: flex"],
html.site-app .fields-modal[style*="display:flex"] {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

html.site-app .fields-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  box-sizing: border-box;
}

html.site-app .fields-modal__scroller {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

html.site-app .fields-modal__panel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  max-height: calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 35, 102, 0.3);
  border: 2px solid #002366;
  box-sizing: border-box;
}

html.site-app .fields-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e9ecef;
  flex-wrap: nowrap;
}

html.site-app .fields-modal__header-text {
  flex: 1;
  min-width: 0;
}

html.site-app .fields-modal__header h2 {
  margin: 0 0 6px;
  color: #002366;
  font-size: clamp(1.15rem, 4.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
}

html.site-app .fields-modal__header p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
}

html.site-app .fields-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  min-width: 40px !important;
  min-height: 40px !important;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.site-app .fields-modal__filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 14px;
  border: 1px solid #e9ecef;
  box-sizing: border-box;
  width: 100%;
}

html.site-app .fields-modal__filter {
  min-width: 0;
}

html.site-app .fields-modal__filter label {
  display: block;
  margin-bottom: 6px;
  color: #495057;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  line-height: 1.3;
}

html.site-app .fields-modal__filter input,
html.site-app .fields-modal__filter select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 2px solid #dee2e6;
  color: #0b1220;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 16px;
  min-height: 44px;
}

html.site-app .fields-modal__list {
  display: grid;
  gap: 14px;
  max-height: min(500px, 50vh);
  overflow-y: auto;
  padding-right: 2px;
  width: 100%;
  box-sizing: border-box;
}

html.site-app .fields-modal__state {
  text-align: center;
  padding: 40px 16px;
  color: #6c757d;
}

html.site-app .fields-modal__state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  line-height: 1;
}

html.site-app .fields-modal__state-icon--pulse {
  animation: smuPulse 1.5s ease-in-out infinite;
}

@keyframes smuPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.96); }
}

html.site-app .fields-modal__state-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #002366;
}

html.site-app .fields-modal__state-desc {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: #6c757d;
}

html.site-app .fields-modal-card {
  background: linear-gradient(135deg, rgba(11, 179, 181, 0.05), rgba(11, 179, 181, 0.02));
  border: 2px solid rgba(11, 179, 181, 0.3);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

html.site-app .fields-modal-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}

html.site-app .fields-modal-card__title-wrap {
  flex: 1;
  min-width: 0;
}

html.site-app .fields-modal-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

html.site-app .fields-modal-card__sport-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

html.site-app .fields-modal-card__title {
  margin: 0;
  font-size: 1rem;
  color: #0b1220;
  line-height: 1.3;
  word-break: break-word;
}

html.site-app .fields-modal-card__facility {
  margin: 4px 0 0;
  color: var(--brand, #0bb3b5);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

html.site-app .fields-modal-card__price {
  flex-shrink: 0;
  background: rgba(11, 179, 181, 0.2);
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--brand, #0bb3b5);
  font-size: 0.88rem;
  white-space: nowrap;
}

html.site-app .fields-modal-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

html.site-app .fields-modal-card__chip {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6c757d;
  font-size: 0.82rem;
  min-width: 0;
  flex-wrap: nowrap;
}

html.site-app .fields-modal-card__chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.site-app .fields-modal-card__chip--brand {
  color: var(--brand, #0bb3b5);
  font-weight: 600;
}

html.site-app .fields-modal-card__address {
  margin: 0 0 12px;
  color: #6c757d;
  font-size: 0.84rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.site-app .fields-modal-card__select {
  min-width: 0 !important;
  white-space: normal !important;
}

html.site-app .create-fields-browse-btn {
  flex-wrap: nowrap !important;
  min-width: 0 !important;
  width: 100%;
  box-sizing: border-box;
}

html.site-app .create-fields-browse-btn__text {
  min-width: 0;
  flex: 1;
  pointer-events: none;
}

html.site-app .create-fields-browse-btn__icon {
  pointer-events: none;
}

@media screen and (max-width: 767px) {
  html.site-app .fields-modal__filters {
    grid-template-columns: 1fr;
  }

  html.site-app .fields-modal__panel {
    padding: 16px;
    border-radius: 16px;
  }

  html.site-app .fields-modal__list {
    max-height: none;
  }

  html.site-app .settings-push-box__row--toolbar {
    flex-wrap: wrap;
  }

  html.site-app .settings-push-box__inline-btn,
  html.site-app .settings-push-box__inline-link {
    width: 100%;
    margin-top: 4px;
  }
}

/* ===== Auth login shell (login.html + business-login.html) ===== */
html.auth-login-shell {
  height: 100%;
  overflow: hidden;
  scroll-behavior: auto;
}

html.auth-login-shell body {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  padding-top: calc(56px + env(safe-area-inset-top, 0px)) !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  box-sizing: border-box;
}

html.auth-login-shell .app-header--auth-login {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  z-index: 1000 !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 8px !important;
  min-height: calc(56px + env(safe-area-inset-top, 0px)) !important;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px !important;
  background: var(--gradient-brand) !important;
  box-shadow: 0 4px 20px rgba(11, 179, 181, 0.22) !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

html.auth-login-shell .app-header-auth-logo {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  padding: 4px;
  box-shadow: 0 3px 10px rgba(0, 35, 102, 0.14);
  text-decoration: none;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  left: auto;
  top: auto;
  transform: none;
}

html.auth-login-shell .app-header-auth-logo .app-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

html.auth-login-shell .app-header-auth-logo .app-logo img {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

html.auth-login-shell .app-header-auth-logo:hover .app-logo img {
  transform: scale(1.03);
}

html.auth-login-shell .app-header-auth-title {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.2;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

html.auth-login-shell .app-header-auth-spacer {
  grid-column: 3;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

html.auth-login-shell .app-container {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: var(--shell-max, 540px);
  margin: 0 auto;
  padding: 6px var(--shell-pad-x, 16px) 12px !important;
  box-sizing: border-box;
}

html.auth-login-shell .app-container > .card {
  margin-bottom: 0 !important;
  flex-shrink: 1;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

html.auth-login-shell #footerLogo {
  display: none !important;
}

html.auth-login-shell .oauth-buttons {
  margin-bottom: 14px;
  gap: 10px;
}

html.auth-login-shell .divider {
  margin: 12px 0;
}

@media (max-width: 374px) {
  html.auth-login-shell .app-header--auth-login {
    grid-template-columns: 44px 1fr 44px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html.auth-login-shell .app-header-auth-logo,
  html.auth-login-shell .app-header-auth-spacer {
    width: 38px;
    height: 38px;
  }

  html.auth-login-shell .app-header-auth-logo .app-logo img {
    height: 34px;
    max-width: 34px;
    max-height: 34px;
  }

  html.auth-login-shell .app-header-auth-title {
    font-size: 0.95rem;
  }
}
