/* ProTourny Calendar & Points public pages */
.pt-page-main {
  padding: 1.5rem 0 3rem;
}

.pt-page-hero {
  padding: 2rem 0 1.25rem;
  text-align: center;
}

.pt-page-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary, #2563eb);
}

.pt-page-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 800;
  color: #0f172a;
}

.pt-page-intro {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--text-muted, #64748b);
  font-size: 1.02rem;
  line-height: 1.55;
}

.pt-page-section {
  margin-top: 1.5rem;
}

.pt-data-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pt-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pt-data-table th,
.pt-data-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}

.pt-data-table th {
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

.pt-data-table tbody tr:last-child td {
  border-bottom: none;
}

.pt-data-table tbody tr:hover {
  background: #fafbff;
}

.pt-empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted, #64748b);
}

.pt-points-placements {
  display: grid;
  gap: 0.35rem;
}

.pt-points-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
}

.pt-points-place {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  min-width: 4.5rem;
}

.pt-points-name {
  font-weight: 700;
  color: #0f172a;
}

.pt-points-val {
  font-weight: 700;
  color: var(--primary, #2563eb);
}

@media (max-width: 640px) {
  .pt-data-table thead {
    display: none;
  }

  .pt-data-table,
  .pt-data-table tbody,
  .pt-data-table tr,
  .pt-data-table td {
    display: block;
    width: 100%;
  }

  .pt-data-table tr {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid #e2e8f0;
  }

  .pt-data-table td {
    padding: 0.28rem 0;
    border: none;
  }

  .pt-data-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.12rem;
  }
}

/* ----- ProTourny Calendar (advanced) ----- */
.pt-calendar-page .pt-cal-hero {
  padding-bottom: 0.5rem;
}

.pt-cal-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.pt-cal-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 6.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.pt-cal-stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.pt-cal-stat-label {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.pt-cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.pt-cal-search {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.pt-cal-search-icon {
  color: #64748b;
  font-size: 1rem;
  line-height: 1;
}

.pt-cal-search input {
  flex: 1;
  border: none;
  outline: none;
  font: inherit;
  font-size: 0.92rem;
  color: #0f172a;
  background: transparent;
  min-width: 0;
}

.pt-cal-filter {
  flex: 0 0 auto;
  min-width: 9rem;
  padding: 0.62rem 0.85rem;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  font: inherit;
  font-size: 0.92rem;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.pt-cal-table-shell {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.pt-cal-table-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.pt-cal-table-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.pt-cal-table-sub {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.pt-cal-table-wrap {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.pt-cal-table th:nth-child(6),
.pt-cal-table th:nth-child(7),
.pt-cal-table th:nth-child(8) {
  background: #f1f5f9;
}

.pt-cal-table .pt-cal-row-first td {
  border-top: 2px solid #e2e8f0;
}

.pt-cal-table .pt-cal-group-a.pt-cal-row-first td {
  background: #ffffff;
}

.pt-cal-table .pt-cal-group-b.pt-cal-row-first td {
  background: #fbfdff;
}

.pt-cal-table .pt-cal-row-event td {
  background: #fcfdff;
}

.pt-cal-table .pt-cal-group-b.pt-cal-row-event td {
  background: #f8fbff;
}

.pt-cal-tournament-cell {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.pt-cal-tournament-name,
.pt-cal-tournament-link {
  font-weight: 800;
  font-size: 0.98rem;
  color: #0f172a;
  text-decoration: none;
}

.pt-cal-tournament-link:hover {
  color: var(--primary, #2563eb);
  text-decoration: underline;
}

.pt-cal-tournament-meta {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.pt-cal-sport-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.pt-cal-event-name {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 8px;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.pt-cal-td-tournament {
  min-width: 11rem;
}

.pt-cal-td-event,
.pt-cal-td-datetime {
  min-width: 7rem;
}

.pt-cal-empty {
  margin-top: 0.5rem;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}

@media (max-width: 900px) {
  .pt-cal-table thead {
    display: none;
  }

  .pt-cal-table,
  .pt-cal-table tbody,
  .pt-cal-table tr,
  .pt-cal-table td {
    display: block;
    width: 100%;
  }

  .pt-cal-table tr {
    margin-bottom: 0.75rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff !important;
  }

  .pt-cal-table tr.pt-cal-row-first {
    border-left: 4px solid var(--primary, #2563eb);
  }

  .pt-cal-table tr.pt-cal-row-event {
    margin-top: -0.45rem;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    background: #f8fafc !important;
  }

  .pt-cal-table td {
    padding: 0.35rem 0;
    border: none !important;
    background: transparent !important;
  }

  .pt-cal-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.12rem;
  }

  .pt-cal-table td[rowspan] {
    display: block;
  }
}

/* Mobile / native: tournament group cards (calendar.js) */
.pt-cal-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0 0.85rem 0.85rem;
}

.pt-cal-mobile-group {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.pt-cal-mobile-group.pt-cal-group-a {
  border-left: 4px solid var(--primary, #2563eb);
}

.pt-cal-mobile-group-head {
  padding: 0.7rem 0.75rem 0.55rem;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.pt-cal-mobile-group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  margin-top: 0.45rem;
}

.pt-cal-mobile-group-title-row {
  min-width: 0;
}

.pt-cal-mobile-group-title-row .pt-cal-tournament-cell {
  gap: 0.15rem;
}

.pt-cal-mobile-meta-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  min-width: 0;
  overflow: hidden;
}

.pt-cal-mobile-meta-line .pt-cal-sport-badge {
  flex-shrink: 0;
}

.pt-cal-mobile-meta-sep {
  flex-shrink: 0;
  color: #cbd5e1;
  font-size: 0.75rem;
  line-height: 1;
}

.pt-cal-mobile-meta-item {
  font-size: 0.78rem;
  color: #64748b;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-cal-mobile-meta-line .pt-cal-mobile-meta-item:last-child {
  flex: 1 1 auto;
}

.pt-cal-mobile-events {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0.75rem 0.65rem;
}

.pt-cal-mobile-event {
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.pt-cal-mobile-event:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pt-cal-mobile-event-main,
.pt-cal-mobile-event-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-width: 0;
}

.pt-cal-mobile-event-row .pt-cal-event-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-cal-mobile-event-row .pt-cal-mobile-event-when {
  flex: 0 0 auto;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.pt-cal-mobile-event-when {
  font-size: 0.8rem;
  color: #475569;
}

.pt-cal-mobile-event-notes {
  margin: 0.28rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.pt-cal-mobile-event-placeholder {
  color: #94a3b8;
}

@media (max-width: 900px) {
  .pt-cal-table-wrap {
    display: none !important;
  }

  .pt-cal-mobile-list:not([hidden]) {
    display: flex;
  }

  .pt-calendar-page.pt-players-page .pt-players-hero {
    padding: 0.5rem 0 0.45rem;
  }

  .pt-calendar-page.pt-players-page .pt-players-hero-intro {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .pt-calendar-page .pt-page-section {
    margin-top: 0.65rem;
  }

  .pt-calendar-page .pt-cal-table-head {
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.65rem 0.75rem 0.5rem;
    gap: 0.35rem 0.65rem;
  }

  .pt-calendar-page .pt-cal-table-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pt-calendar-page .pt-cal-table-sub {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.75rem;
  }

  .pt-calendar-page .pt-cal-mobile-group-head {
    padding: 0.5rem 0.6rem 0.45rem;
  }

  .pt-calendar-page .pt-cal-mobile-events {
    padding: 0.3rem 0.6rem 0.45rem;
  }

  .pt-calendar-page .pt-cal-mobile-event {
    padding: 0.32rem 0;
  }

  .pt-calendar-page .pt-cal-tournament-name,
  .pt-calendar-page .pt-cal-tournament-link {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .pt-calendar-page .pt-cal-tournament-meta {
    font-size: 0.72rem;
  }

  .pt-calendar-page .pt-cal-toolbar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
  }

  .pt-calendar-page .pt-cal-search {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding: 0.38rem 0.6rem;
    border-radius: 9px;
    gap: 0.4rem;
  }

  .pt-calendar-page .pt-cal-search-icon {
    font-size: 0.82rem;
  }

  .pt-calendar-page .pt-cal-search input {
    font-size: 0.82rem;
    line-height: 1.25;
    min-height: 0;
    height: 1.3rem;
    -webkit-appearance: none;
    appearance: none;
  }

  .pt-calendar-page .pt-cal-search input[type="search"]::-webkit-search-decoration,
  .pt-calendar-page .pt-cal-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
  }

  .pt-calendar-page .pt-cal-filter {
    flex: 0 0 auto;
    width: auto;
    min-width: 6.75rem;
    max-width: 38%;
    padding: 0.4rem 0.5rem;
    border-radius: 9px;
    font-size: 0.8rem;
  }

  .pt-points-page .pt-points-desktop-only {
    display: none !important;
  }

  .pt-points-page .pt-points-mobile-list:not([hidden]) {
    display: flex;
  }
}

/* ----- ProTourny Points (leaderboard) ----- */
.pt-points-page .pt-points-hero {
  padding-bottom: 0.5rem;
}

.pt-cal-filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pt-points-leaderboard-shell,
.pt-points-results-shell {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.pt-points-leaderboard-wrap {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.pt-points-leaderboard tbody tr.pt-rank-top {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), transparent);
}

.pt-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
}

.pt-rank-top .pt-rank-badge {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.pt-total-points {
  font-size: 1.05rem;
  color: #1d4ed8;
}

/* Points mobile / native card lists (same content as web table, compact) */
.pt-points-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 0.65rem 0.65rem;
}

.pt-points-mobile-rank-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.pt-points-mobile-rank-card.pt-rank-top {
  border-left: 4px solid var(--primary, #2563eb);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.07), #fff);
}

.pt-points-mobile-rank-col {
  flex-shrink: 0;
}

.pt-points-mobile-rank-body {
  flex: 1;
  min-width: 0;
}

.pt-points-mobile-player {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
  line-height: 1.3;
  word-break: break-word;
}

.pt-points-mobile-rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #64748b;
}

.pt-points-mobile-total {
  font-size: 0.85rem;
}

.pt-points-mobile-result {
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.pt-points-mobile-result-head {
  margin-bottom: 0.45rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #eef2f7;
}

.pt-points-mobile-tournament {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  word-break: break-word;
}

.pt-points-mobile-result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
}

.pt-points-mobile-date,
.pt-points-mobile-tag {
  font-size: 0.78rem;
  color: #475569;
}

.pt-points-mobile-tag {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  font-weight: 600;
}

.pt-points-mobile-event {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

/* ----- ProTourny Player Registration ----- */
.pt-player-reg-page .pt-player-reg-hero {
  padding-bottom: 0.5rem;
}

.pt-player-reg-form {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.pt-player-reg-section {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0 0 1.1rem;
  border-bottom: 1px solid #eef2f7;
}

.pt-player-reg-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.pt-player-reg-section legend {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  padding: 0;
  margin-bottom: 0.75rem;
}

.pt-player-reg-hint {
  margin: -0.35rem 0 0.65rem;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

.pt-player-reg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.pt-player-reg-grid--single {
  grid-template-columns: 1fr;
}

.pt-player-reg-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pt-player-reg-field--full {
  grid-column: 1 / -1;
}

.pt-player-reg-field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.pt-player-reg-field span em {
  color: #dc2626;
  font-style: normal;
}

.pt-player-reg-field input,
.pt-player-reg-field textarea,
.pt-player-reg-field select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  color: #0f172a;
  background: #fff;
  min-width: 0;
}

.pt-player-reg-field textarea {
  resize: vertical;
  min-height: 4rem;
}

.pt-player-reg-field input:focus,
.pt-player-reg-field textarea:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pt-player-reg-field input[type="file"] {
  padding: 0.45rem;
  font-size: 0.82rem;
}

.pt-player-reg-photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.pt-player-reg-photo-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pt-player-reg-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pt-circuit-reg-otp-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem 1rem;
}

.pt-circuit-reg-otp-actions {
  margin-top: 0.85rem;
  display: flex;
  justify-content: flex-start;
}

.pt-circuit-reg-otp-actions .btn-primary {
  min-width: 10.5rem;
  touch-action: manipulation;
}

.pt-circuit-reg-verify-btn--done {
  background: #059669 !important;
  border-color: #059669 !important;
}

.pt-circuit-reg-verified-badge {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.88rem;
  font-weight: 600;
}

.pt-circuit-reg-otp-hint--ok {
  color: #047857 !important;
}

.pt-circuit-reg-email--verified {
  background: #f8fafc;
  color: #334155;
}

.pt-circuit-reg-step-label {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary, #2563eb);
}

.pt-circuit-reg-details-step[hidden] {
  display: none !important;
}

.pt-circuit-reg-otp-entry[hidden] {
  display: none !important;
}

.pt-circuit-reg-otp-section--verified {
  padding-bottom: 0.75rem;
}

.pt-circuit-reg-otp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.pt-circuit-reg-otp-hint {
  margin: 0;
  font-size: 0.84rem;
  flex: 1 1 12rem;
}

.pt-circuit-reg-otp-resend {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

.pt-player-reg-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.pt-player-reg-alert {
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
}

.pt-player-reg-alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.pt-player-reg-alert--ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

#playerRegForm[hidden],
.pt-player-reg-form.pt-player-reg-form--submitted {
  display: none !important;
  pointer-events: none !important;
}

.pt-player-reg-success:not([hidden]) {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.pt-player-reg-success {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  background: #f0fdf4;
}

.pt-player-reg-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1rem;
}

.pt-player-reg-success-actions .btn {
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
  min-width: 10rem;
}

.pt-player-reg-success-hint {
  font-size: 0.88rem;
  line-height: 1.45;
}

.pt-player-reg-success h2 {
  margin: 0 0 0.65rem;
  color: #166534;
}

.pt-player-reg-success p {
  margin: 0 0 0.75rem;
  color: #14532d;
}

/* —— ProTourny Players directory —— */
.pt-players-page .pt-page-main {
  padding-top: 0.75rem;
}

.pt-players-page .pt-page-section,
.pt-calendar-page.pt-players-page .pt-page-section,
.pt-points-page.pt-players-page .pt-page-section {
  margin-top: 0.75rem;
}

.pt-players-hero {
  padding: 0.55rem 0 0.65rem;
  text-align: left;
}

.pt-players-hero-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.65rem;
  min-width: 0;
}

.pt-players-hero-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.pt-players-hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.pt-players-hero-title {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.35em;
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  white-space: nowrap;
}

.pt-players-hero-title-line {
  display: inline;
}

.pt-players-hero-title-line:empty {
  display: none;
}

.pt-players-hero-title--single .pt-players-hero-title-line {
  line-height: 1.15;
}

.pt-players-hero-intro {
  margin: 0.15rem 0 0;
  max-width: none;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-players-hero-stat.pt-cal-stats {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
  flex: 0 0 auto;
}

.pt-players-hero-stat--multi.pt-cal-stats {
  flex-wrap: wrap;
  gap: 0.3rem;
  max-width: min(100%, 13rem);
  justify-content: flex-end;
}

.pt-players-hero-stat--multi .pt-cal-stat {
  flex: 1 1 calc(33.333% - 0.25rem);
  min-width: 4.5rem;
  padding: 0.28rem 0.4rem;
}

.pt-players-hero-stat--multi .pt-cal-stat-value {
  font-size: 0.88rem;
}

.pt-players-hero-stat--multi .pt-cal-stat-label {
  font-size: 0.58rem;
}

.pt-players-hero-stat .pt-cal-stat {
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.pt-players-hero-stat .pt-cal-stat-value {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.pt-players-hero-stat .pt-cal-stat-label {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1;
}

.pt-players-hero-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 0;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  line-height: 1.25;
}

.pt-players-page .pt-cal-toolbar {
  flex-wrap: nowrap;
  gap: 0.45rem;
  align-items: stretch;
}

.pt-players-page .pt-cal-search {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.45rem 0.6rem;
}

.pt-players-page .pt-cal-search input {
  font-size: 0.85rem;
}

.pt-players-page .pt-cal-filter {
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
  max-width: 42%;
  padding: 0.45rem 0.5rem;
  font-size: 0.82rem;
}

@media (max-width: 520px) {
  .pt-players-hero-intro {
    display: none;
  }

  .pt-players-hero-btn {
    font-size: 0.72rem;
    padding: 0.38rem 0.55rem;
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pt-players-hero-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.02em;
    font-size: clamp(1.08rem, 4.8vw, 1.22rem);
    line-height: 1.08;
    white-space: normal;
  }

  .pt-players-hero-title-line {
    display: block;
  }

  .pt-players-hero-title-line:first-child {
    font-size: 1.05em;
  }

  .pt-players-hero-stat .pt-cal-stat {
    padding: 0.28rem 0.45rem;
  }

  .pt-players-hero-stat .pt-cal-stat-value {
    font-size: 0.88rem;
  }

  .pt-players-hero-stat .pt-cal-stat-label {
    font-size: 0.62rem;
  }

  .pt-players-page .pt-cal-search input::placeholder {
    font-size: 0.78rem;
  }

  .pt-players-page .pt-cal-filter {
    max-width: 7.25rem;
    padding-left: 0.4rem;
    padding-right: 1.35rem;
  }
}

.pt-player-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  text-transform: capitalize;
}

.pt-player-status--approved {
  background: #dcfce7;
  color: #166534;
}

.pt-player-status--pending {
  background: #fef9c3;
  color: #854d0e;
}

.pt-player-status--rejected {
  background: #fee2e2;
  color: #991b1b;
}

.pt-players-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.85rem;
}

.pt-players-directory-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pt-players-directory-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.pt-players-directory-card:focus-visible {
  outline: 2px solid var(--primary, #2563eb);
  outline-offset: 2px;
}

.pt-players-directory-photo {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  overflow: hidden;
}

.pt-players-directory-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pt-players-directory-body {
  padding: 0.75rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 0;
}

.pt-players-directory-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}

.pt-players-directory-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  min-width: 0;
}

.pt-players-directory-id {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  letter-spacing: 0.02em;
}

.pt-players-directory-location {
  margin: 0;
  font-size: 0.8rem;
  color: #475569;
}

.pt-players-directory-body .pt-players-view-btn {
  margin-top: 0.35rem;
  width: 100%;
}

.pt-player-level {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.pt-player-level--international {
  background: #ede9fe;
  color: #5b21b6;
}

.pt-player-level--national {
  background: #fef3c7;
  color: #b45309;
}

.pt-player-level--south-zone {
  background: #dbeafe;
  color: #1d4ed8;
}

.pt-player-level--state {
  background: #dcfce7;
  color: #166534;
}

.pt-player-level--circuit {
  background: #f1f5f9;
  color: #475569;
}

.pt-player-detail-modal {
  max-width: min(640px, 96vw);
  max-height: min(88vh, 88dvh);
}

.pt-player-detail-modal .modal-body-text {
  overflow-y: auto;
  max-height: min(70vh, 70dvh);
}

.pt-player-detail-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.pt-player-detail-hero-img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}

.pt-player-detail-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.pt-player-detail-hero-id {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}

.pt-player-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
}

.pt-player-detail-row,
.pt-player-detail-block {
  min-width: 0;
}

.pt-player-detail-block {
  grid-column: 1 / -1;
}

.pt-player-detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.pt-player-detail-value {
  font-size: 0.92rem;
  color: #0f172a;
  word-break: break-word;
}

.pt-player-detail-value--block {
  white-space: pre-wrap;
}

.pt-player-detail-photos-title {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
}

.pt-player-detail-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pt-player-detail-photos img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

@media (max-width: 640px) {
  .pt-player-detail-grid {
    grid-template-columns: 1fr;
  }

  .pt-players-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .pt-players-directory-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .pt-player-reg-form {
    padding: 0.85rem;
    border-radius: 12px;
  }

  .pt-player-reg-grid {
    grid-template-columns: 1fr;
  }

  .pt-player-reg-field input,
  .pt-player-reg-field textarea {
    font-size: 16px;
  }
}

/* —— Coach / Umpire directory + registration modal —— */
.pt-role-directory-page .pt-page-main {
  padding-top: 0.75rem;
}

.pt-role-directory-sport {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent, #2563eb);
}

.pt-role-directory-rates {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
}

/* —— Coach / Umpire registration modal (compact) —— */
.pt-role-reg-modal.modal-box.modal-box-text {
  --pt-role-accent: #2563eb;
  --pt-role-accent-soft: rgba(37, 99, 235, 0.1);
  --pt-role-accent-deep: #1d4ed8;
  padding: 0;
  width: min(640px, calc(100vw - 1rem));
  max-width: min(640px, calc(100vw - 1rem));
  max-height: min(90vh, 860px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.pt-role-reg-modal--coach {
  --pt-role-accent: #059669;
  --pt-role-accent-soft: rgba(5, 150, 105, 0.1);
  --pt-role-accent-deep: #047857;
}

.pt-role-reg-modal--umpire {
  --pt-role-accent: #4f46e5;
  --pt-role-accent-soft: rgba(79, 70, 229, 0.1);
  --pt-role-accent-deep: #4338ca;
}

.pt-role-reg-modal-header {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(120deg, var(--pt-role-accent-deep), var(--pt-role-accent));
  color: #fff;
}

.pt-role-reg-modal-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.pt-role-reg-modal-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1rem;
  flex-shrink: 0;
}

.pt-role-reg-modal.modal-box h2,
.pt-role-reg-modal-header h2 {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.pt-role-reg-modal-close {
  position: static;
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: #fff !important;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.pt-role-reg-modal-close:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff !important;
}

.pt-role-reg-modal .modal-body-text.pt-role-reg-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.55rem 0.75rem 0.65rem;
  font-size: inherit;
  line-height: inherit;
  white-space: normal;
  color: inherit;
  background: #f8fafc;
}

.pt-role-reg-modal-intro {
  margin: 0 0 0.45rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #64748b;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.pt-role-reg-modal-intro em {
  color: #dc2626;
  font-style: normal;
  font-weight: 700;
}

.pt-player-reg-form--modal.pt-role-reg-form {
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

.pt-player-reg-form--modal .pt-player-reg-alert {
  margin-bottom: 0.4rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
  border-radius: 8px;
}

.pt-player-reg-form--modal .pt-player-reg-section {
  margin: 0;
  padding: 0.45rem 0 0.4rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-top: 1px solid #e2e8f0;
}

.pt-player-reg-form--modal .pt-player-reg-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.pt-player-reg-form--modal .pt-player-reg-section legend {
  display: block;
  width: 100%;
  margin: 0 0 0.35rem;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pt-role-accent-deep);
}

.pt-player-reg-form--modal .pt-player-reg-section legend::before {
  display: none;
}

.pt-player-reg-form--modal .pt-player-reg-grid {
  gap: 0.35rem 0.55rem;
}

.pt-player-reg-form--modal .pt-player-reg-field {
  gap: 0.15rem;
}

.pt-player-reg-form--modal .pt-player-reg-field span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  text-transform: none;
  letter-spacing: 0;
}

.pt-player-reg-form--modal .pt-player-reg-field span em {
  color: #dc2626;
  font-style: normal;
}

.pt-player-reg-form--modal .pt-player-reg-field input,
.pt-player-reg-form--modal .pt-player-reg-field textarea {
  padding: 0.4rem 0.5rem;
  font-size: 0.84rem;
  line-height: 1.35;
  border-radius: 8px;
  border-color: #d1dae6;
  background: #fff;
  min-height: 0;
}

.pt-player-reg-form--modal .pt-player-reg-field textarea {
  min-height: 2.35rem;
  resize: vertical;
}

.pt-player-reg-form--modal .pt-player-reg-field input:focus,
.pt-player-reg-form--modal .pt-player-reg-field textarea:focus {
  border-color: var(--pt-role-accent);
  box-shadow: 0 0 0 2px var(--pt-role-accent-soft);
}

.pt-player-reg-form--modal .pt-player-reg-field input[type="file"] {
  padding: 0.3rem 0.4rem;
  font-size: 0.78rem;
  border-style: dashed;
  background: #fff;
}

.pt-player-reg-form--modal .pt-player-reg-hint {
  margin: 0 0 0.3rem;
  padding: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #64748b;
  background: transparent;
}

.pt-player-reg-form--modal .pt-player-reg-photo-preview {
  margin-top: 0.35rem;
  gap: 0.35rem;
}

.pt-player-reg-form--modal .pt-player-reg-photo-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
}

.pt-role-reg-photos-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pt-role-reg-photos-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.pt-role-reg-photos-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.pt-role-reg-photo-preview {
  margin-top: 0.25rem;
}

.pt-role-reg-photo-thumb {
  position: relative;
}

.pt-role-reg-photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.pt-role-reg-photo-remove:hover {
  background: #dc2626;
}

.pt-player-reg-form--modal .pt-player-reg-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 0.35rem;
  padding: 0.45rem 0 0.1rem;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(to top, #f8fafc 85%, rgba(248, 250, 252, 0));
}

.pt-player-reg-form--modal .pt-player-reg-actions .btn {
  font-size: 0.84rem;
  padding: 0.45rem 0.85rem;
  min-height: 2.1rem;
}

.pt-player-reg-form--modal .pt-player-reg-actions .btn-primary {
  background: var(--pt-role-accent);
  border-color: var(--pt-role-accent);
  font-weight: 700;
  box-shadow: none;
}

.pt-player-reg-form--modal .pt-player-reg-actions .btn-primary:hover:not(:disabled) {
  background: var(--pt-role-accent-deep);
  border-color: var(--pt-role-accent-deep);
}

@media (min-width: 540px) {
  .pt-player-reg-form--modal .pt-player-reg-section--profile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.55rem;
  }

  .pt-player-reg-form--modal .pt-player-reg-section--profile legend {
    grid-column: 1 / -1;
  }

  .pt-player-reg-form--modal .pt-player-reg-section--profile .pt-player-reg-field--full:nth-of-type(3),
  .pt-player-reg-form--modal .pt-player-reg-section--profile .pt-player-reg-field--full:nth-of-type(4) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .pt-role-reg-modal .modal-body-text.pt-role-reg-modal-body {
    padding: 0.5rem 0.6rem 0.55rem;
  }

  .pt-player-reg-form--modal .pt-player-reg-grid {
    grid-template-columns: 1fr;
  }
}
