body.player-mode .data-admin,
body.view-mode .data-admin {
  display: none;
}

body.admin-mode .data-admin {
  display: block;
}

#addNewTeam {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  z-index: 1000;
}

.add-team-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: #fff;
  color: #222;
  border: 1px solid #ddd;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
}

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

.btn-row .btn-add {
  flex: 2;
}

.btn-row .btn-close {
  flex: 1;
}

#reviewModal.review-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, .48);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#reviewModal .review-modal-box {
  flex: 0 1 480px;
  width: 90%;
  max-width: 350px;
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  padding: 22px 16px 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
  z-index: 101;
  box-sizing: border-box;
  scrollbar-width: thin;
}
#reviewModalTitle {
  margin: 0;
  padding-right: 42px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -.4px;
}
#reviewModalSubtitle {
  margin: 5px 0 18px;
  color: #6b7280;
  font-size: .8rem;
  line-height: 1.4;
}
#reviewModal .row {
  background: #f9fafb;
  border: 1px solid #edf0f4;
  border-radius: 15px;
  padding: 13px;
  margin-bottom: 10px;
  text-align: center;
  box-sizing: border-box;
}
#reviewModal .team-label {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #9ca3af;
  margin-bottom: 10px;
  text-transform: uppercase;
}
#reviewModal .review-fixture-row {
  text-align: left;
}
#reviewModalFixture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  color: #111827;
  font-size: .9rem;
  font-weight: 750;
  box-sizing: border-box;
}
.review-fixture-team {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.4;
}
.review-fixture-home {
  text-align: right;
}
.review-fixture-away {
  text-align: left;
}
.review-fixture-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 8px 9px;
  background: #111827;
  color: #fff;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 850;
  letter-spacing: .5px;
  white-space: nowrap;
  box-sizing: border-box;
}
#reviewModal .review-screenshot-row {
  text-align: left;
}
.review-modal-image {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  box-sizing: border-box;
}
#reviewModal .row:has(#reviewModalPlayer),
#reviewModal .row:has(#reviewModalTime),
#reviewModal .row:has(#reviewModalStatus) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
}
#reviewModal .row:has(#reviewModalPlayer) .team-label,
#reviewModal .row:has(#reviewModalTime) .team-label,
#reviewModal .row:has(#reviewModalStatus) .team-label {
  flex: 0 0 auto;
  margin: 0;
  font-size: .66rem;
  letter-spacing: .8px;
  text-align: left;
}
#reviewModalPlayer,
#reviewModalTime {
  min-width: 0;
  flex: 1;
  font-size: .88rem;
  font-weight: 700;
  color: #111827;
  overflow-wrap: anywhere;
  text-align: right;
}
#reviewModalStatus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  text-transform: capitalize;
  margin: 0;
  flex: 0 0 auto;
}
#reviewModalStatus.pending {
  background: #fff7e6;
  color: #b45309;
}
#reviewModalStatus.approved {
  background: #ecfdf5;
  color: #047857;
}
#reviewModalStatus.rejected {
  background: #fef2f2;
  color: #b91c1c;
}
#reviewModal .row:has(#reviewModalReason) {
  text-align: left;
}
#reviewModalReason {
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  border-radius: 10px;
  padding: 12px;
  color: #991b1b;
  font-size: .88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#reviewModal .row:has(#reviewModalRejectReason) {
  text-align: left;
}
#reviewModalRejectReason {
  display: block;
  width: 100%;
  min-height: 90px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-size: .9rem;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  background: #fff;
  color: #111827;
}
#reviewModalRejectReason:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .12);
}
#reviewModalActions {
  position: sticky;
  bottom: -14px;
  z-index: 102;
  padding: 12px 0 2px;
  margin-top: 2px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, .88),
    #fff 25%
  );
  box-sizing: border-box;
}
#reviewModalActions button {
  position: static;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  white-space: normal;
  min-height: 42px;
  padding: 9px 8px;
  border-radius: 11px;
  font-size: .84rem;
  font-weight: 750;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
#reviewModalActions button:active {
  transform: scale(.97);
}
#reviewModalActions .btn-save {
  background: #0284c7;
  color: #fff;
  border: none;
}
#reviewModalActions .btn-save:hover {
  background: #0369a1;
}
#reviewModalActions .btn-clear {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
#reviewModalActions .btn-clear:hover {
  background: #fee2e2;
}
#reviewModalActions .btn-resubmit {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
#reviewModalActions .btn-resubmit:hover {
  background: #bae6fd;
}
#reviewModal .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 103;
  transition: background .2s, color .2s;
}
#reviewModal .modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
}
@media (max-width: 480px) {
  #reviewModal.review-modal-overlay {
    padding: 12px;
  }
  #reviewModal .review-modal-box {
    flex-basis: 100%;
    width: 100%;
    max-height: 82vh;
    max-height: 82dvh;
    padding: 18px 12px 12px;
    border-radius: 18px;
  }
  #reviewModalTitle {
    font-size: 1rem;
    padding-right: 38px;
  }
  #reviewModalSubtitle {
    margin-bottom: 14px;
    font-size: .76rem;
  }
  #reviewModal .row {
    padding: 11px;
    margin-bottom: 8px;
    border-radius: 13px;
  }
  #reviewModalFixture {
    gap: 6px;
    font-size: .8rem;
  }
  .review-fixture-score {
    min-width: 52px;
    padding: 8px 6px;
    font-size: .85rem;
  }
  .review-modal-image {
    max-height: 180px;
  }
  #reviewModalPlayer,
  #reviewModalTime {
    font-size: .8rem;
  }
  #reviewModal .row:has(#reviewModalPlayer),
  #reviewModal .row:has(#reviewModalTime),
  #reviewModal .row:has(#reviewModalStatus) {
    gap: 8px;
    padding: 11px;
  }
  #reviewModal .row:has(#reviewModalPlayer) .team-label,
  #reviewModal .row:has(#reviewModalTime) .team-label,
  #reviewModal .row:has(#reviewModalStatus) .team-label {
    font-size: .61rem;
    letter-spacing: .5px;
  }
  #reviewModalActions {
    bottom: -12px;
  }
  #reviewModal .modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 350px) {
  #reviewModalFixture {
    gap: 4px;
    font-size: .72rem;
  }
  .review-fixture-score {
    min-width: 46px;
    padding: 7px 4px;
    font-size: .78rem;
  }
  #reviewModal .row:has(#reviewModalPlayer) .team-label,
  #reviewModal .row:has(#reviewModalTime) .team-label,
  #reviewModal .row:has(#reviewModalStatus) .team-label {
    font-size: .57rem;
  }
}
@media (max-height: 650px) {
  #reviewModal .review-modal-box {
    max-height: 90vh;
    max-height: 90dvh;
  }
  .review-modal-image {
    max-height: 150px;
  }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 999;
  transition: background .2s, color .2s;
}
.modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.submission-badge {
  padding: 4px;
  border-radius: 2px;
  border: none;
  
}

.submission-badge.pending {
  background: grey;
  color: #fff;
}

.submission-badge.approved {
  background: green;
  color: #fff;
}

.submission-badge.rejected {
  background: red;
  color: #fff;
}

.notification-wrapper {
  position: fixed;
  width: auto;
  height: auto;
  
  z-index: 900;
}


.notification-btn {
  position: fixed;
  top: 3px;
  left: 4px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  z-index: 999;
}


.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  
  min-width: 18px;
  height: 18px;
  
  padding: 0 5px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  border-radius: 50%;
  
  background: #ef4444;
  color: white;
  
  font-size: 11px;
  font-weight: 800;
}


.notification-panel {
  
  position: fixed;
  
  left: 10px;
  top: 40px;
  
  width: auto;
  
  max-height: 90%;
  overflow-y: auto;
  
  background: white;
  
  border-radius: 16px;
  
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .15);
  
  display: none;
  
  z-index: 999;
}


.notification-panel.show {
  display: block;
}


.notification-header {
  
  padding: 16px;
  
  font-weight: 800;
  
  border-bottom: 1px solid #eee;
  
}


.notification-item {
  
  padding: 14px 16px;
  
  border-bottom: 1px solid #eee;
  
  cursor: pointer;
}


.notification-item.unread {
  
  background: #eff6ff;
  
}


.notification-title {
  
  font-weight: 800;
  
  font-size: .9rem;
  
}


.notification-message {
  
  margin-top: 5px;
  
  color: #6b7280;
  
  font-size: .85rem;
  
}


.notification-time {
  
  margin-top: 8px;
  
  color: #9ca3af;
  
  font-size: .75rem;
  
}

.resultRecords {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  max-height: 100vh;
  padding: 16px;
}

.score-box {
 position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin: 0;
  width: 380px;
  max-height: 96vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  margin: 16px auto;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .25);
}

.score-box h3 {
  text-align: center;
  color: #111827;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
}

.result-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 18px;
}


.row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}


.team-label {
  color: #111827;
  font-size: 15px;
  font-weight: 600;
}


.row input {
  width: 100%;
  height: 30px;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  color: #111827;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  outline: none;
}


.row input.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}


.upload-label {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}


#matchScreenshot {
  width: 100%;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 12px;
  background: #f9fafb;
  color: #111827;
  margin-bottom: 8px;
}


.upload-note {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}


.numpad {
  margin-top: 8px;
}


.numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}


.numpad-grid button {
  height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.10);
  border-radius: 12px;
  background: rgba(243, 244, 246, 0.45);
  color: #111827;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.numpad-grid button:hover {
  background: rgba(229, 231, 235, 0.65);
}
.numpad-grid button:active {
  transform: scale(.96);
}
.btn-clear {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
  border-color: rgba(239, 68, 68, 0.08) !important;
}
.btn-clear:hover {
  background: rgba(239, 68, 68, 0.20) !important;
}
.btn-save {
  background: rgba(22, 163, 74, 0.12) !important;
  color: #15803d !important;
  border-color: rgba(22, 163, 74, 0.08) !important;
}
.btn-save:hover {
  background: rgba(22, 163, 74, 0.20) !important;
}
#resultRecord .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
#resultRecord .team-label {
  min-width: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#resultRecord .row input {
  width: 100%;
  height: 48px;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  color: #111827;
  text-align: center;
  font-size: 22px;
  font-weight: 750;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
#resultRecord .row input.active,
#resultRecord .row input:focus {
  border-color: #3563f6;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(53, 99, 246, .13);
}
@media (max-width: 350px) {
  #resultRecord .row {
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 8px;
  }
  #resultRecord .row input {
    height: 44px;
    font-size: 20px;
  }
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay[style*="flex"],
.modal-overlay[style*="block"] {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 24px;
  border-radius: 18px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay[style*="flex"] .modal-box,
.modal-overlay[style*="block"] .modal-box {
  transform: scale(1) translateY(0);
}

.modal-box p {
  margin: 0 0 18px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2d333b;
  line-height: 1.4;
}

.modal-box button {
  flex: 1;
  padding: 11px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.modal-box button:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.modal-box button:active {
  transform: scale(0.97);
}

#modalInput {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  font-size: 15px;
  text-align: center;
  outline: none;
}

#modalInput:focus {
  border-color: #2383e2;
  box-shadow: 0 0 0 3px rgba(35, 131, 226, 0.15);
}

.modal-box>div {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.confirmNoBtn,
#confirmModal .button {
  display: flex;
  gap: 8px;
}

#confirmYesBtn,
#confirmNoBtn {
  flex: 1;
  width: auto;
  height: auto;
}

#confirmYesBtn,
#confirmNoBtn {
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #d1d5db;
}

#alertTitle {
  color: #1f2937;
}

#alertText {
  color: #1f2937;
  opacity: 0.7;
}



.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.confirm-modal-box {
  position: relative;
  z-index: 2147483647;
  width: 100%;
  max-width: 380px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  animation: confirmModalEnter 0.2s ease-out;
}
.confirm-modal-text {
  margin: 0 0 24px;
  color: #111827;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.confirm-modal-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}
.confirm-modal-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  cursor: pointer;
  box-sizing: border-box;
}
.confirm-modal-yes {
  flex: 1 1 auto;
  background: #2563eb;
  color: #ffffff;
}
.confirm-modal-no {
  flex: 0 0 auto;
  background: #f9fafb;
  border-color: #e5e7eb !important;
  color: #374151;
}
@media (max-width: 380px) {
  .confirm-modal-actions {
    gap: 8px;
  }
  .confirm-modal-actions button {
    padding: 11px 10px;
    font-size: 13px;
  }
}
.confirm-modal-actions button:active {
  transform: scale(0.97);
}
@keyframes confirmModalEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 380px) {
  .confirm-modal-box {
    padding: 20px 16px;
    border-radius: 15px;
  }
  .confirm-modal-actions {
    gap: 8px;
  }
  .confirm-modal-actions button {
    padding: 11px 12px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .confirm-modal-box {
    animation: none;
  }
  .confirm-modal-actions button {
    transition: none;
  }
}

.btn-ok {
  width: 100%;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  color: #2563eb !important;
  
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
  box-shadow: none;
}

.btn-ok:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.btn-ok:active {
  transform: scale(.97);
}

.action-modal {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  min-width: 300px;
  max-width: calc(100% - 32px);
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  border-left: 5px solid #2563eb;
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 10000;
}

.action-modal.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.action-modal.success {
  border-left-color: #16a34a;
}

.action-modal.delete {
  border-left-color: #dc2626;
}

.action-modal.info {
  border-left-color: #2563eb;
}

.action-modal.warning {
  border-left-color: #f59e0b;
}

.invitation-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

.invitation-actions button {
  
  flex: 1;
  width: auto;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
}


.accept-btn {
  background: #22c55e;
  color: white;
}

.decline-btn {
  background: #ef4444;
  color: white;
}

.join-tournament-btn {
  height: 40px;
  width: 70px;
  padding: 6px;
  background: #22c55e;
  color: white;
  border-radius: 15px;
}

#createCompetitionModal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 90px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 1000;
}

#createCompetitionModal .modal-content {
  position: relative;
  width: 90%;
  max-width: 450px;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background-color: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  margin: auto;
}
#createCompetitionModal .modal-content::-webkit-scrollbar {
  width: 4px;
}

#createCompetitionModal .modal-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.modal-header {
  text-align: center;
}

.modal-header h3,
.modal-header p,
.modal-body label {
  text-align: center;
  display: block;
}

.modal-header p {
  margin: 0.5rem 0 1rem;
}

#createCompetitionModal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#createCompetitionModal label {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

#createCompetitionModal input[type="text"],
#createCompetitionModal input[type="file"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  box-sizing: border-box;
  font-size: 14px;
}

.competition-logo-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

#competitionLogoPreview {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

#competitionLogoPreview:not([src]),
#competitionLogoPreview[src=""] {
  display: none;
}

#createCompetitionModal .modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

#createCompetitionModal .modal-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background-color: #ffffff;
  color: #2563eb;
  transition: all 0.2s ease;
}

#createCompetitionModal .secondary-btn:hover,
#createCompetitionModal .primary-btn:hover {
  background-color: #f3f4f6;
}
#competitionList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  padding: 12px 0 40px;
  box-sizing: border-box;
  align-items: stretch;
}

.competition-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 220px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.competition-card:active {
  transform: scale(0.985);
}

.competition-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.competition-card-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 30px;
}



.competition-menu-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  gap: 3px !important;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
  position: relative;
  z-index: 6;
  opacity: 1;
  visibility: visible;
  box-sizing: border-box;
}

.competition-menu-btn span {
  display: block !important;
  position: static !important;
  width: 4px !important;
  height: 4px !important;
  min-width: 4px;
  min-height: 4px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: #374151 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.competition-menu-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.competition-menu-btn:active {
  background: #dbeafe;
}



.competition-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding-top: 6px;
}

.competition-info {
  width: 100%;
  min-width: 0;
  text-align: left;
}

.competition-name {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.3px;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.competition-subtitle {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.competition-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  min-height: 100px;
  padding: 12px 0;
  box-sizing: border-box;
}

.competition-image-img {
  display: block;
  width: 78px;
  height: 78px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.competition-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background-color: #f3f4f6;
  font-size: 34px;
}

.competition-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.competition-footer-info {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.competition-footer-icon {
  flex-shrink: 0;
  color: #6b7280;
  font-size: 17px;
}

.competition-footer-label {
  overflow: hidden;
  color: #374151;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competition-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #374151;
  background-color: #f3f4f6;
  font-size: 17px;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.competition-card:hover .competition-card-arrow {
  background-color: #e5e7eb;
  transform: translate(2px, -2px);
}

.competition-card .menu-dropdown {
  position: absolute;
  z-index: 10;
  top: 45px;
  right: 10px;
  min-width: 155px;
  padding: 5px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.competition-card .menu-dropdown.hidden {
  display: none;
}

.competition-card .menu-itemList {
  display: block;
  width: 100%;
  padding: 11px 10px;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  color: #374151;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.competition-card .menu-itemList:hover {
  background-color: #f3f4f6;
}

.competition-card .menu-itemList.delete {
  color: #dc2626;
}

#competitionList .emptyText {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background-color: #ffffff;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 360px) {
  #competitionList {
    gap: 8px;
  }
  
  .competition-card {
    min-height: 205px;
    padding: 10px;
    border-radius: 14px;
  }
  
  .competition-name {
    font-size: 13px;
  }
  
  .competition-image-img {
    width: 65px;
    height: 65px;
  }
  
  .competition-footer-label {
    font-size: 9px;
  }
}



.competition-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding-top: 6px;
}

.competition-info {
  width: 100%;
  min-width: 0;
  text-align: left;
}

.competition-name {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

.competition-card-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 36px;
  margin-top: 5px;
}

.competition-menu-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  gap: 3px !important;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 11px;
  background: #f3f4f6;
  cursor: pointer;
  position: relative;
  z-index: 6;
  opacity: 1;
  visibility: visible;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.competition-menu-btn span {
  display: block !important;
  position: static !important;
  width: 4px !important;
  height: 4px !important;
  min-width: 4px;
  min-height: 4px;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: #374151 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.competition-menu-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.competition-menu-btn:active {
  background: #dbeafe;
}

.competition-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 100px;
  padding: 8px 0 12px;
  box-sizing: border-box;
}

.competition-image-img {
  display: block;
  width: 78px;
  height: 78px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.competition-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 16px;
  background-color: #f3f4f6;
  font-size: 34px;
}

.competition-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.competition-footer-info {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.competition-footer-icon {
  flex-shrink: 0;
  color: #6b7280;
  font-size: 17px;
}

.competition-footer-label {
  overflow: hidden;
  color: #374151;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competition-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #374151;
  background-color: #f3f4f6;
  font-size: 18px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.competition-card:hover .competition-card-arrow {
  background-color: #e5e7eb;
  transform: translate(2px, -2px);
}

.competition-card .menu-dropdown {
  position: absolute;
  z-index: 10;
  top: 45px;
  right: 10px;
  min-width: 155px;
  padding: 5px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.competition-card .menu-dropdown.hidden {
  display: none;
}

.competition-card .menu-itemList {
  display: block;
  width: 100%;
  padding: 11px 10px;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  color: #374151;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.competition-card .menu-itemList:hover {
  background-color: #f3f4f6;
}

.competition-card .menu-itemList.delete {
  color: #dc2626;
}

@media (max-width: 360px) {
  .competition-card {
    min-height: 205px;
    padding: 10px;
    border-radius: 14px;
  }
  
  .competition-name {
    font-size: 13px;
  }
  
  .competition-menu-btn {
    width: 34px;
    height: 34px;
  }
  
  .competition-image-img {
    width: 65px;
    height: 65px;
  }
  
  .competition-footer-label {
    font-size: 9px;
  }
}

.menu-dropdown {
  position: absolute;
  top: 40px;
  right: 16px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 10;
  min-width: 100px;
}

.menu-dropdown.hidden {
  display: none;
}

.menu-itemList {
  padding: 8px 16px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.menu-itemList:hover {
  background-color: #f3f4f6;
}

.menu-itemList.delete {
  color: #dc2626;
}

.menu-itemList.delete:hover {
  background-color: #fef2f2;
}

.tournament-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-height: 180px;
  padding: 12px 16px 14px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #1f2937;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.card-header {
  width: 100%;
}

.tournament-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding-right: 30px;
}

.tournament-format,
.tournament-season,
.tournament-status {
  text-align: center;
  width: 30%;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  background: #f1f1f1;
  color: #333;
  white-space: nowrap;
}

.tournament-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: capitalize;
}

.tournament-status.active {
  background: #dcfce7;
  color: #166534;
}

.tournament-status.upcoming {
  background: #dbeafe;
  color: #1d4ed8;
}

.tournament-status.completed {
  background: #f1f5f9;
  color: #475569;
}

.tournament-image {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  background-color: #f3f4f6;
  border-radius: 10px;
  font-size: 28px;
  overflow: hidden;
}

.tournament-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tournament-name {
  margin: 0;
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  overflow-wrap: break-word;
}

.tournament-menu-btn {
  position: absolute;
  top: 58px;
  right: 12px;
  font-size: 18px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  user-select: none;
  z-index: 2;
}

.tournament-scroll-row .tournament-card {
  flex: 0 0 100%;
  /* Force card to occupy 100% width of the row */
  max-width: 100%;
  scroll-snap-align: center;
  /* Center snap each card */
  box-sizing: border-box;
}

.tournament-scroll-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tournament-scroll-row::-webkit-scrollbar {
  display: none;
}

.tournament-scroll-row .tournament-card {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  scroll-snap-align: center;
}

.tournament-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tournament-column .tournament-card {
  width: 100%;
}



.tournament-scroll-row::-webkit-scrollbar {
  display: none;
}

#welcomeText {
  justify-content: center;
  text-align: center;
  display: flex;
  padding: 6px;
  align-items: center;
  gap: 6px;
}

.welcome-message {
  font-size: 0.85rem;
  font-weight: 400;
}

#usernameText {
  font-size: 12px;
}

.myComp {
  text-align: center;
  padding: 20px 15px;
  
}

.myComp h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}

.myComp p {
  margin-top: 8px;
  font-size: 0.85rem;
  opacity: 0.6;
  line-height: 1.4;
  color: #1e293b;
}

#competitionPage {
  padding-top: 40px;
  padding-bottom: 30px;
}

#listOfTournamentPage {
  padding-right: 10px;
  padding-left: 10px;
  background: white;
  padding-top: 20px;
}

.management-delete-section {
  display: none;
}

#deleteAccountModal .modal-content {
  width: 90%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


#deleteAccountModal .modal-header {
  text-align: center;
  margin-bottom: 20px;
}


#deleteAccountModal .modal-header h3 {
  margin: 0 0 10px;
  font-size: 20px;
}


#deleteAccountModal .modal-header p {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}


#deleteAccountModal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


#deleteAccountModal label {
  font-size: 14px;
  font-weight: 600;
}


#deleteAccountModal input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 14px;
  box-sizing: border-box;
}


#deleteAccountModal input:focus {
  border-color: #e53935;
}


.management-delete-section {
  display: none;
  margin-top: 15px;
  padding: 15px;
  border-radius: 10px;
  background: #f8f8f8;
}


#deleteAccountModal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}


#deleteAccountModal .modal-actions button {
  flex: 1;
  height: 40px;
  border-radius: 20px;
}


#deleteAccountModal .primary-btn {
  background: #e53935;
  color: white;
}


#deleteAccountModal .secondary-btn {
  background: #ddd;
  color: #333;
}

.record-card.top5-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.record-card .record-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
  text-align: center;
}

.top5-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top5-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 6px 8px;
  border-radius: 6px;
  background-color: #f8f9fa;
  width: 100%;
  box-sizing: border-box;
}

.top5-row .team-side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.top5-row .rank-number {
  font-weight: 600;
  font-size: 0.9rem;
  color: #666;
  min-width: 18px;
  text-align: right;
  flex-shrink: 0;
}

.top5-row .team-logo,
.top5-row .team-logo-placeholder {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}

.top5-row .team-logo-placeholder {
  background-color: #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top5-row .team-side>span:last-child {
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1f2937;
}

.top5-row .record-value {
  font-weight: 700;
  font-size: 0.9rem;
  color: #111827;
  white-space: nowrap;
  margin-left: 12px;
  text-align: right;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.top5-row .record-suffix {
  font-weight: 400;
  font-size: 0.85rem;
  color: #6b7280;
}


.rank-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  white-space: nowrap;
}

.rank-num {
  font-weight: bold;
  min-width: 12px;
  text-align: right;
  margin-right: 2px;
}

.table-team-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}

.table-team-logo,
.team-logo-placeholder {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.team-logo-placeholder {
  background-color: #e0e0e0;
  border-radius: 50%;
  font-size: 0.65rem;
  color: #666666;
  font-weight: bold;
}

.team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-wrapper.screenshot-mode {
  overflow-x: hidden;
}

.table-wrapper.screenshot-mode table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 0.7rem;
}

.table-wrapper.screenshot-mode th,
.table-wrapper.screenshot-mode td {
  padding: 6px 2px;
}

.table-wrapper.screenshot-mode th:first-child,
.table-wrapper.screenshot-mode td:first-child {
  width: 8%;
  position: static;
}

.table-wrapper.screenshot-mode th:nth-child(2),
.table-wrapper.screenshot-mode td:nth-child(2) {
  width: 32%;
  position: static;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-wrapper.screenshot-mode th:nth-child(n+3),
.table-wrapper.screenshot-mode td:nth-child(n+3) {
  width: 7.5%;
  text-align: center;
}

.table-wrapper {
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  padding: 10px;
  margin: 0 auto 25px;
  border-radius: 12px;
  border: 1px solid #2d333b;
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

#tableView {
  padding-top: 20px;
}

.POTStable-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #2d333b;
  background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
  margin-bottom: 25px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  
}


table {
  width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.7rem;
  min-width: 600px;
}
thead th {
  background: white;
  border-top: 1px solid #222;
  color: #0f0f0f;
  font-weight: 600;
  padding: 14px 12px;
  border-bottom: 1px solid #30363d;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  position: sticky;
  top: 0;
  z-index: 10;
  
}


td {
  background: white;
  padding: 10px 10px;
  border-bottom: 1px solid #21262d;
  color: #0f0f0f;
  transition: background 0.15s ease;
}

tr:hover td {
  background-color: white;
}

tr:last-child td {
  border-bottom: none;
  background: white url() 0 0 no-repeat;
}

td:first-child,
th:first-child {
  background: white;
  text-align: center;
  width: 48px;
  color: #0f0f0f;
  font-weight: 600;
}

tbody tr:first-child td {
  background: linear-gradient(90deg, #fff7d6, #fff);
  border-top: 2px solid #facc15;
  border-bottom: 2px solid #facc15;
}



td:nth-child(2),
th:nth-child(2) {
  font-weight: 500;
  color: #0f0f0f;
  text-align: left;
  z-index: 15;
}

td:not(:nth-child(2)),
th:not(:nth-child(2)) {
  text-align: center;
}

td:last-child {
  font-weight: 700;
  color: #0f0f0f;
  font-size: 0.95rem;
}

td:nth-child(9) {
  font-weight: 600;
}

.neg {
  color: red;
}

td:nth-child(10) {
  font-weight: 700;
  color: #0f0f0f;
  font-size: 0.95rem;
}



td:first-child,
th:nth-child(2),
td:nth-child(2) {
  
  background: white;
  z-index: 20;
}

th:first-child,
td:first-child {
  left: 0;
}

th:nth-child(2),
td:nth-child(2) {
  left: px;
}

th:first-child,
th:nth-child(2) {
  background: white;
}

tbody tr:nth-child(even) td {
  background-color: white;
}

tbody tr:nth-child(even):hover td {
  background-color: white;
}

th:first-child,
td:first-child,
th:nth-child(2),
td:nth-child(2) {
  
  background: white;
}

td:first-child,
th:first-child {
  background: white;
  text-align: center;
  width: 48px;
  color: #0f0f0f;
  font-weight: 600;
  position: sticky;
  left: 4px;
  z-index: 5;
}

th:first-child,
th:nth-child(2) {
  background: white;
}

tbody tr:nth-child(even) td:first-child,
tbody tr:nth-child(even) td:nth-child(2) {
  background-color: white;
}

tr:hover td:first-child,
tr:hover td:nth-child(2) {
  background-color: white;
}

th:first-child {
  z-index: 25;
}

tbody tr:nth-child(1) td {
  background: #fff7d6;
}

tbody tr.champions-league td:first-child {
  border-left: 4px solid #2563eb;
}

tbody tr.relegation td:first-child {
  border-left: 4px solid #dc2626;
}

.table-team-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  text-align: left !important;
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 20;
  background: white;
  border-left: 2px solid #2d333b;
}

th:nth-child(2),
td:nth-child(2) {
  position: sticky;
  left: 48px;
  z-index: 20;
  background: white;
}

.team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left !important;
  display: inline-block;
}
.table-form-cell {
  min-width: 120px;
  padding-left: 10px;
  padding-right: 20px;
}


.compToggle {
  position: sticky;
  top: auto;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  gap: 10px;
  background: #f2f2f2;
  padding: 6px;
  border-radius: 12px;
}

.compToggle button {
  flex: 1;
  width: 0;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.compToggle button.active {
  background: #2196f3;
  color: white;
}



#hallOfFameSection {
  width: 100%;
  padding: 10px 0 30px;
}

#hallOfFameList {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hallOfFameCategory {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 16px;
  color: #111;
}

.hallOfFameTitle {
  color: #111;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

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

.hallOfFameWinner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border-radius: 10px;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.empty-state {
  text-align: center;
  padding: 30px 15px;
  color: #666;
  font-size: 14px;
}

#hallOfFameAdminPanel {
  width: 100%;
  margin-top: 20px;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 90px;
}

.hallOfFameAdminHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.hallOfFameAdminHeader h3 {
  margin: 0;
  color: #111;
  font-size: 17px;
}

.hallOfFameAdminCategory {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.hallOfFameAdminCategoryTop {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hallOfFameAdminCategoryTop input:first-child {
  width: 55px;
  text-align: center;
}

.hallOfFameAdminCategoryTop input {
  min-width: 0;
  flex: 1;
  padding: 9px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #111;
  background: #fff;
}

.hallOfFameAdminWinners {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.hallOfFameAdminWinner {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hallOfFameAdminWinner input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #111;
  background: #fff;
}

.hallOfFameAdminWinner span {
  min-width: 24px;
  text-align: center;
  color: #111;
  font-weight: 700;
}

.hallOfFameAdminWinner button,
.hallOfFameAdminCategory button,
.hallOfFameAdminHeader button,
.hallOfFameSaveBtn {
  border: none;
  border-radius: 8px;
  padding: 8px 11px;
  cursor: pointer;
  font-weight: 600;
}

.hallOfFameSaveBtn {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
}


#submissionDeadlineModal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  box-sizing: border-box;
}

#submissionDeadlineModal * {
  box-sizing: border-box;
}

#submissionDeadlineModal .modal-box {
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

#submissionDeadlineModal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px;
  border-bottom: 1px solid #eeeeee;
}

#submissionDeadlineModal .modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #222222;
}

#submissionDeadlineModal .modal-header button {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  background: #f5f5f5;
  color: #777777;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#submissionDeadlineModal .modal-body {
  display: block;
  width: 100%;
  padding: 24px 20px;
  box-sizing: border-box;
}

#submissionDeadlineModal .round-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

#submissionDeadlineModal .deadline-field {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  box-sizing: border-box;
}

#submissionDeadlineModal .deadline-field label {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
}

#submissionDeadlineModal .deadline-field input {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #ffffff;
  color: #222222;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

#submissionDeadlineModal .deadline-field input:focus {
  border-color: #888888;
}

#submissionDeadlineModal .deadline-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #333333;
  cursor: pointer;
}

#submissionDeadlineModal .deadline-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  cursor: pointer;
}

#submissionDeadlineModal .deadline-toggle span {
  display: block;
  flex: 1;
}

#submissionDeadlineModal .deadline-info {
  display: block;
  width: 100%;
  margin: 18px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: #f5f5f5;
  color: #666666;
  font-size: 13px;
  line-height: 1.5;
  box-sizing: border-box;
}

#submissionDeadlineModal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: 10px;
  padding: 16px 20px 20px;
  border-top: 1px solid #eeeeee;
  box-sizing: border-box;
}

#submissionDeadlineModal .modal-footer button {
  min-height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

#submissionDeadlineModal .modal-footer button:first-child {
  background: #eeeeee;
  color: #333333;
}

#submissionDeadlineModal .modal-footer button:last-child {
  background: #222222;
  color: #ffffff;
}

@media (max-width: 480px) {
  #submissionDeadlineModal {
    padding: 16px;
  }
  
  #submissionDeadlineModal .modal-box {
    max-width: 100%;
  }
  
  #submissionDeadlineModal .modal-header {
    padding: 18px 16px;
  }
  
  #submissionDeadlineModal .modal-body {
    padding: 20px 16px;
  }
  
  #submissionDeadlineModal .round-range {
    gap: 10px;
  }
  
  #submissionDeadlineModal .modal-footer {
    padding: 16px;
  }
}

.modal-overlay.alert {
  z-index: 999999;
}
#submissionDeadlineCountdown {
  width: 100%;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #ffffff;
  color: #333333;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  z-index: 1000;
}
#submissionDeadlineCountdown::before {
  content: "⏱";
  display: inline-block;
  margin-right: 7px;
  font-size: 15px;
  vertical-align: -1px;
}

@media (max-width: 480px) {
  #submissionDeadlineCountdown {
    margin: 10px 0;
    padding: 13px 12px;
    font-size: 13px;
  }
}


#noticeCreateModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

#noticeCreateModal * {
  box-sizing: border-box;
}

#noticeCreateModal .notice-create-container {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

#noticeCreateModal .notice-create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  border-bottom: 1px solid #eeeeee;
}

#noticeCreateModal .notice-create-header h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #222222;
}

#noticeCreateModal .notice-create-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 9px;
  background: #f5f5f5;
  color: #555555;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

#noticeCreateModal .notice-create-body {
  width: 100%;
  padding: 20px;
}

#noticeCreateModal .notice-create-field {
  width: 100%;
  margin-bottom: 18px;
}

#noticeCreateModal .notice-create-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
}

#noticeCreateModal .notice-create-field input,
#noticeCreateModal .notice-create-field select,
#noticeCreateModal .notice-create-field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #ffffff;
  color: #222222;
  font-size: 14px;
  outline: none;
}

#noticeCreateModal .notice-create-field input,
#noticeCreateModal .notice-create-field select {
  height: 44px;
}

#noticeCreateModal .notice-create-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

#noticeCreateModal .notice-create-field input:focus,
#noticeCreateModal .notice-create-field select:focus,
#noticeCreateModal .notice-create-field textarea:focus {
  border-color: #888888;
}

#noticeCreateModal .notice-create-field input:disabled {
  background: #f5f5f5;
  color: #999999;
  cursor: not-allowed;
}

#noticeCreateModal .notice-create-image-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin: -4px 0 18px;
}

#noticeCreateModal .notice-create-image-preview img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

#noticeCreateModal .notice-create-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.4;
  color: #333333;
  cursor: pointer;
}

#noticeCreateModal .notice-create-toggle input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  cursor: pointer;
}

#noticeCreateModal .notice-create-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-top: 1px solid #eeeeee;
}

#noticeCreateModal .notice-create-footer button {
  min-height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

#noticeCreateModal .notice-create-cancel {
  background: #eeeeee;
  color: #333333;
}

#noticeCreateModal .notice-create-submit {
  background: #222222;
  color: #ffffff;
}

@media (max-width: 480px) {
  #noticeCreateModal {
    padding: 12px;
  }
  
  #noticeCreateModal .notice-create-container {
    max-height: 92vh;
  }
  
  #noticeCreateModal .notice-create-header {
    padding: 16px;
  }
  
  #noticeCreateModal .notice-create-body {
    padding: 18px 16px;
  }
  
  #noticeCreateModal .notice-create-footer {
    padding: 14px 16px;
  }
  
  #noticeCreateModal .notice-create-image-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

.notice-board-section {
  width: 100%;
  margin: 20px 0;
  padding: 20px;
  background: #ffffff;
  border-radius: 16px;
  box-sizing: border-box;
}

.notice-board-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
  text-align: center;
}

.notice-board-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #000;
  text-align: center;
}

.notice-board-header p {
  margin: 5px 0 0;
  color: #777;
  font-size: 14px;
  text-align: center;
}

#noticeBoard {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notice-slider-wrapper {
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.notice-slider {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.notice-slider::-webkit-scrollbar {
  display: none;
}

.notice-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  padding: 16px;
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.notice-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.notice-category {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.notice-date {
  color: #888;
  font-size: 12px;
  white-space: nowrap;
}

.notice-title {
  text-align: center;
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #222;
}

.notice-content {
  margin: 0;
  padding: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: justify;
  text-indent: 0;
}

.notice-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 11px;
}

.notice-image {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  background: #eee;
}

.notice-images .notice-image:only-child {
  grid-column: 1 / -1;
  object-fit: contain;
}

.notice-images .notice-image:nth-child(3):last-child {
  grid-column: 1 / -1;
}

.notice-empty {
  width: 100%;
  padding: 35px 20px;
  text-align: center;
  color: #888;
  font-size: 14px;
  background: #f8f9fb;
  border: 1px dashed #d5d7db;
  border-radius: 14px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .notice-board-section {
    padding: 15px;
    margin: 15px 0;
  }
  
  .notice-board-header {
    margin-bottom: 17px;
  }
  
  .notice-board-header h2 {
    font-size: 19px;
  }
  
  .notice-board-header p {
    font-size: 13px;
  }
  
  .notice-card {
    padding: 14px;
  }
  
  .notice-card-header {
    margin-bottom: 6px;
  }
  
  .notice-category {
    padding: 5px 9px;
    font-size: 11px;
  }
  
  .notice-date {
    font-size: 11px;
  }
  
  .notice-title {
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.3;
  }
  
  .notice-content {
    font-size: 13px;
    line-height: 1.45;
  }
  
  .notice-images {
    gap: 9px;
    margin-top: 10px;
  }
  
  .notice-image {
    height: 140px;
  }
  
  .notice-images .notice-image:only-child {
    height: 180px;
    object-fit: contain;
  }
  
  .notice-images .notice-image:nth-child(3):last-child {
    height: 160px;
  }
}

.profile-modal-page {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100dvh;
  padding-top: 60px;
  background: #ffffff;
  color: #1a1a1a;
  overflow: hidden;
  box-sizing: border-box;
}

.profile-modal-page.active {
  display: flex;
}

.profile-modal-page,
.profile-modal-page * {
  box-sizing: border-box;
}

.profile-modal-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid #e5e5e5;
  flex-shrink: 0;
  background: #ffffff;
  color: #1a1a1a;
}

.profile-modal-page-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #1a1a1a;
  font-size: 26px;
  cursor: pointer;
}

.profile-modal-page-back:active {
  transform: scale(0.94);
}

.profile-modal-page-title {
  margin: 0;
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.profile-modal-page-header-spacer {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.profile-page-content {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 20px 16px 0px ;
  padding-bottom: 100px;
  color: #1a1a1a;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.profile-page-squad-section {
  margin: 18px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}
.profile-page-squad-section .profile-page-section-header {
  margin-bottom: 14px;
}
.profile-page-squad-section .profile-page-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.profile-page-squad-loading {
  padding: 18px 10px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.profile-page-squad-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.profile-page-squad-image {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
  background: #e5e7eb;
}
.profile-page-squad-info {
  min-width: 0;
  flex: 1;
}
.profile-page-squad-name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  overflow-wrap: anywhere;
}
.profile-page-squad-status {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 600;
}
.profile-page-squad-message {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}
.profile-page-squad-empty {
  padding: 18px 12px;
  text-align: center;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 380px) {
  .profile-page-squad-section {
    padding: 12px;
  }
  .profile-page-squad-image {
    width: 64px;
    height: 64px;
  }
}
.profile-page-user-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-page-username {
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile-page-phone {
  margin-top: 6px;
  color: #555555;
  font-size: 14px;
  opacity: 1;
  overflow-wrap: anywhere;
}

.profile-page-update-profile-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.profile-page-update-profile-btn:active {
  transform: scale(0.97);
}

.profile-page-teams-section {
  width: 100%;
  color: #1a1a1a;
}

.profile-page-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.profile-page-section-title {
  margin: 0;
  color: #1a1a1a;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.profile-page-teams-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-page-empty {
  padding: 30px 16px;
  color: #555555;
  text-align: center;
  font-size: 14px;
  opacity: 1;
}

.profile-page-team-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 10px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-page-team-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5f5;
}

.profile-page-team-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-page-team-logo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #e5e5e5;
}

.profile-page-team-name {
  min-width: 0;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.profile-page-team-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 24px;
}

.profile-page-add-team-btn,
.profile-page-edit-team-btn {
  flex: 1;
  min-height: 46px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #111111;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.profile-page-add-team-btn:active,
.profile-page-edit-team-btn:active {
  transform: scale(0.97);
}

.profile-modal-page input,
.profile-modal-page textarea,
.profile-modal-page select {
  color: #1a1a1a;
  background: #ffffff;
}

.profile-modal-page input::placeholder,
.profile-modal-page textarea::placeholder {
  color: #777777;
  opacity: 1;
}

.profile-modal-page button {
  -webkit-text-fill-color: currentColor;
}

.profile-modal-page .profile-page-update-profile-btn,
.profile-modal-page .profile-page-add-team-btn,
.profile-modal-page .profile-page-edit-team-btn {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

@media (min-width: 600px) {
  .profile-page-content {
    max-width: 700px;
    margin: 0 auto;
    padding-right: 24px;
    padding-left: 24px;
  }
}

.match-contacts-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.match-contacts-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

.match-contacts-dialog {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: matchContactsModalIn 0.2s ease;
}

@keyframes matchContactsModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.profile-modal-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}
.profile-modal-page-title {
  margin: 0;
  font-size: 19px;
  font-weight: 750;
  color: #111827;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}
.profile-modal-page-header-spacer {
  display: none;
}
.profile-page-update-profile-btn {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid #d4af37;
  border-radius: 8px;
  background: #111827;
  color: #f5d778;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.profile-page-update-profile-btn:active {
  transform: scale(0.97);
}
.profile-page-bank-section {
  margin: 16px 0;
  padding: 17px;
  border: 1px solid #e8d9a5;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #fffcf2 100%);
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.045);
}
.profile-page-bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 13px;
  margin-bottom: 4px;
  border-bottom: 1px solid #eee5ca;
}
.profile-page-bank-header h4 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
}
#profileBankStatus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: 20px;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.profile-page-bank-details {
  display: flex;
  flex-direction: column;
}
.profile-page-bank-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid #f0ead9;
  min-width: 0;
}
.profile-page-bank-row:last-child {
  border-bottom: none;
  padding-bottom: 5px;
}
.profile-page-bank-row > span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.profile-page-bank-row > strong {
  max-width: 100%;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#profileBankMessage {
  margin: 12px 0 0;
  padding: 10px 11px;
  border-radius: 8px;
  background: #f8f5e9;
  color: #75602b;
  font-size: 11px;
  line-height: 1.6;
}
@media (max-width: 380px) {
  .profile-modal-page-header {
    padding: 12px;
    gap: 8px;
  }
  .profile-modal-page-title {
    font-size: 17px;
  }
  .profile-page-update-profile-btn {
    padding: 8px 9px;
    font-size: 10px;
  }
  .profile-page-bank-section {
    padding: 13px;
  }
  .profile-page-bank-header h4 {
    font-size: 14px;
  }
  .profile-page-bank-row > strong {
    font-size: 13px;
  }
}

.match-contacts-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #eee;
}

.match-contacts-header h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #111;
}

.match-contacts-header p {
  margin: 5px 0 0;
  font-size: 13px;
  color: #777;
}

.match-contacts-close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: #f3f3f3;
  color: #555;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-contacts-close:hover {
  background: #e9e9e9;
}

.match-contacts-teams {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px;
}

.match-contact-team {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.match-contact-team:hover {
  background: #f8f8f8;
  border-color: #d8d8d8;
  transform: translateY(-1px);
}

.match-contact-team:active {
  transform: scale(0.99);
}

.match-contact-team:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.match-contact-team-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f1f1f1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-contact-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-contact-team-logo span {
  font-size: 17px;
  font-weight: 700;
  color: #999;
}

.match-contact-team-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.match-contact-team-name {
  font-size: 15px;
  font-weight: 600;
  color: #171717;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-contact-team-action {
  font-size: 12px;
  color: #888;
}

.match-contact-arrow {
  flex-shrink: 0;
  font-size: 25px;
  line-height: 1;
  color: #999;
}

.match-contact-details {
  margin: 0 20px 20px;
  border-radius: 14px;
  background: #f7f7f7;
  overflow: hidden;
  animation: contactDetailsIn 0.2s ease;
}

@keyframes contactDetailsIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-contact-details-inner {
  padding: 16px;
}

.match-contact-details-header {
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid #e5e5e5;
}

.match-contact-details-header strong {
  font-size: 15px;
  color: #111;
}

.match-contact-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
}

.match-contact-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.match-contact-info-label {
  font-size: 13px;
  color: #777;
}

.match-contact-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  text-align: right;
  word-break: break-word;
}

.match-contact-info-value a {
  color: #168a45;
  text-decoration: none;
  font-weight: 600;
}

.match-contact-info-value a:hover {
  text-decoration: underline;
}

.match-contact-loading {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #777;
}

.match-contact-error {
  padding: 14px 16px;
  font-size: 13px;
  color: #b42318;
  text-align: center;
}

@media (max-width: 480px) {
  .match-contacts-modal {
    padding: 12px;
  }
  
  .match-contacts-dialog {
    max-width: 100%;
    border-radius: 16px;
  }
  
  .match-contacts-header {
    padding: 18px 16px 14px;
  }
  
  .match-contacts-teams {
    padding: 14px 16px;
  }
  
  .match-contact-details {
    margin: 0 16px 16px;
  }
  
  .match-contact-team {
    min-height: 68px;
  }
  
  .match-contact-team-logo {
    width: 42px;
    height: 42px;
  }
}

.update-profile-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.5);
  padding: 16px;
  box-sizing: border-box;
}


.update-profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.update-profile-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.update-profile-modal-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 25px;
  line-height: 34px;
  cursor: pointer;
}

.update-profile-modal-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin: auto;
}

.update-profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.update-profile-modal-content {
  flex: 1;
  min-height: 0;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.update-profile-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid #eee;
  box-sizing: border-box;
  flex-shrink: 0;
  background: #fff;
}
.update-profile-input-group {
  width: 100%;
  margin-bottom: 18px;
}

.update-profile-input-label {
  display: block;
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 600;
}

.update-profile-input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 13px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.update-profile-input:focus {
  border-color: #888;
}

.update-profile-description {
  margin: 3px;
  padding-bottom: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: #777;
}

.update-profile-status {
  display: none;
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  box-sizing: border-box;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.4;
}

.update-profile-status-success {
  background: #eaf7ee;
  color: #18733a;
}

.update-profile-status-error {
  background: #fdecec;
  color: #b42318;
}

.update-profile-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid #eee;
  box-sizing: border-box;
}

.update-profile-cancel-button,
.update-profile-save-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
}

.update-profile-cancel-button {
  border: 1px solid #ddd;
  background: #fff;
}

.update-profile-save-button {
  border: 0;
  background: #111;
  color: #fff;
}

.update-profile-save-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.update-profile-squad {
  margin: 8px 0 20px;
  padding: 18px 0 0;
  border-top: 1px solid #eee;
}

.update-profile-squad h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

#profileSquadStatus {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}

#profileSquadImage {
  display: block;
  width: 100%;
  max-height: 260px;
  margin: 14px 0;
  object-fit: contain;
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 10px;
}

#profileSquadEligibility {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f7f7;
  color: #444;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#profileSquadUploadSection {
  margin-top: 14px;
}

#profileSquadUploadSection label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

#profileSquadImageInput {
  display: block;
  width: 100%;
  min-width: 0;
  margin-bottom: 12px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
}

#profileSquadSubmitBtn {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#profileSquadSubmitBtn:active {
  transform: scale(0.98);
}

#profileSquadSubmitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#profileSquadUploadSection input[type="file"]:focus-visible,
#profileSquadSubmitBtn:focus-visible {
  outline: 2px solid #555;
  outline-offset: 3px;
}


.hall-of-fame-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-sizing: border-box;
}

.hall-of-fame-back-btn:active {
  transform: scale(0.98);
}


.team-selection-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.5);
}

.team-selection-modal-box {
  width: min(92%, 500px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.team-selection-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;
}

.team-selection-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.team-selection-modal-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 25px;
  line-height: 34px;
  cursor: pointer;
  box-sizing: border-box;
}

.team-selection-modal-close:active {
  transform: scale(0.95);
}

.team-selection-modal-body {
  flex: 1;
  min-height: 0;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.team-selection-message {
  margin: 0 0 16px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.team-selection-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-height: 50vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.team-selection-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
  box-sizing: border-box;
}

.team-selection-item:hover {
  border-color: #bbb;
}

.team-selection-item:active {
  transform: scale(0.99);
}

.team-selection-item.selected {
  border-color: #007bff;
  background: rgba(0, 123, 255, 0.08);
}

.team-selection-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.team-selection-logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #f1f1f1;
  box-sizing: border-box;
}

.team-selection-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.team-selection-logo span {
  font-size: 22px;
}

.team-selection-name {
  min-width: 0;
  overflow: hidden;
  color: #222;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-selection-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-selection-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: #007bff;
}

.team-selection-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid #eee;
  box-sizing: border-box;
}

.team-selection-cancel-btn,
.team-selection-confirm-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-sizing: border-box;
}

.team-selection-cancel-btn {
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
}

.team-selection-cancel-btn:hover {
  background: #f7f7f7;
}

.team-selection-cancel-btn:active {
  transform: scale(0.98);
}

.team-selection-confirm-btn {
  border: 0;
  background: #111;
  color: #fff;
}

.team-selection-confirm-btn:hover {
  background: #222;
}

.team-selection-confirm-btn:active {
  transform: scale(0.98);
}

.team-selection-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .team-selection-modal-overlay {
    padding: 12px;
  }
  
  .team-selection-modal-box {
    width: 100%;
    max-height: 90vh;
    border-radius: 12px;
  }
  
  .team-selection-modal-header {
    padding: 14px 16px;
  }
  
  .team-selection-modal-body {
    padding: 16px;
  }
  
  .team-selection-modal-footer {
    padding: 12px 16px 16px;
  }
  
  .team-selection-item {
    padding: 11px;
  }
  
  .team-selection-logo {
    width: 42px;
    height: 42px;
  }
  
  .team-selection-cancel-btn,
  .team-selection-confirm-btn {
    min-height: 42px;
    padding: 0 14px;
  }
}

.form-results {
  
  display: flex !important;
  
  align-items: center;
  
  justify-content: flex-end;
  
  gap: 5px;
  
  flex-shrink: 0;
  
  min-width: 30px;
  
  visibility: visible !important;
  
  opacity: 1 !important;
  
}

.form-badge {
  
  display: inline-flex !important;
  
  align-items: center;
  
  justify-content: center;
  
  width: 24px;
  
  height: 24px;
  
  min-width: 24px;
  
  border-radius: 50%;
  
  font-size: 11px;
  
  font-weight: 700;
  
  line-height: 1;
  
  color: #fff;
  
  visibility: visible !important;
  
  opacity: 1 !important;
  
  box-sizing: border-box;
  
}

.form-badge.W {
  
  background: #22c55e !important;
  
}

.form-badge.D {
  
  background: grey !important;
  
}

.form-badge.L {
  
  background: #ef4444 !important;
  
}

.tm-pairing-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
}

.tm-pairing-modal {
  width: min(700px, 100%);
  max-height: 90vh;
  overflow: hidden;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.tm-pairing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e5e5;
}

.tm-pairing-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.tm-pairing-close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.tm-pairing-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.tm-pairing-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid #e5e5e5;
}

.tm-pairing-cancel,
.tm-pairing-save {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tm-pairing-cancel {
  background: #eeeeee;
  color: #333333;
}

.tm-pairing-save {
  background: #111111;
  color: #ffffff;
}

.tm-pairing-group {
  border: 1px solid #dddddd;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.tm-pairing-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #f7f7f7;
}

.tm-pairing-group-header h4 {
  margin: 0;
  font-size: 16px;
}

.tm-pairing-group-count {
  font-size: 13px;
  font-weight: 600;
  color: #666666;
}

.tm-pairing-team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.tm-pairing-team {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  background: #ffffff;
}

.tm-pairing-team input {
  margin: 0;
}

.tm-pairing-team span {
  font-size: 14px;
  word-break: break-word;
}

.tm-pairing-knockout-pair {
  border: 1px solid #dddddd;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 12px;
}

.tm-pairing-knockout-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.tm-pairing-knockout-selects {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.tm-pairing-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
}

.tm-pairing-vs {
  font-size: 13px;
  font-weight: 700;
}

.tm-pairing-error {
  margin-bottom: 15px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff1f1;
  color: #b00020;
  font-size: 14px;
}

.tm-pairing-info {
  margin-bottom: 15px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f5f5f5;
  color: #444444;
  font-size: 14px;
}

@media (max-width: 600px) {
  .tm-pairing-modal-overlay {
    padding: 10px;
  }
  
  .tm-pairing-modal {
    max-height: 94vh;
    border-radius: 12px;
  }
  
  .tm-pairing-team-list {
    grid-template-columns: 1fr;
  }
  
  .tm-pairing-knockout-selects {
    grid-template-columns: 1fr;
  }
  
  .tm-pairing-vs {
    text-align: center;
  }
  
  .tm-pairing-actions {
    padding: 12px 15px;
  }
}

#manualGroupOptions .btn-secondary,
#manualKnockoutOptions .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid #222;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

#manualGroupOptions .btn-secondary:hover,
#manualKnockoutOptions .btn-secondary:hover {
  background: #000;
  transform: translateY(-1px);
}

#manualGroupOptions .btn-secondary:active,
#manualKnockoutOptions .btn-secondary:active {
  transform: translateY(0);
}
;

#bracketViewport {
  flex: 1;
  overflow: auto;
  padding: 30px;
  height: auto;
}

#bracket-container {
  background: #1a202c;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  min-width: 100%;
  height: max-content;
  transform-origin: top left;
  transition: transform 0.1s ease-out;
}

#bracketFixturesView {
  padding: 20px;
  overflow: auto;
  gap: 3px;
}

.full-bracket-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: max-content;
  min-width: 100%;
  gap: 70px;
  padding: 40px 60px;
  box-sizing: border-box;
}

.bracket-side {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.bracket-left {
  justify-content: flex-end;
}

.bracket-right {
  justify-content: flex-start;
}

.bracket-side-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 80px;
}

.bracket-right .bracket-side-content {
  flex-direction: row-reverse;
}

.bracket-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  gap: 30px;
}

.bracket-column {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 320px;
  flex-shrink: 0;
}

.bracket-round-matches {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 50px;
}

.round-title {
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1a202c;
  margin: 0 0 20px 0;
  font-weight: 700;
}

.match-card {
  position: relative;
  width: 320px;
  min-width: 320px;
  min-height: 100px;
  padding: 7px 9px;
  border-radius: 9px;
  box-sizing: border-box;
  z-index: 3;
}

.knockout-label {
  font-size: 12px;
  text-align: center;
  opacity: 0.4;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-side {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.team-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixture-team-logo-placeholder {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fixture-team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.score-value {
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.bracket-score-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 36px 36px;
  align-items: center;
  column-gap: 5px;
  width: 100%;
  margin-bottom: 4px;
}

.double-leg-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 36px 36px;
  align-items: center;
  column-gap: 5px;
  width: 100%;
  min-height: 30px;
}

.double-leg-team-row .team-side {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.bracket-score-header-btn,
.bracket-score-header-aggregate {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 10px;
  padding: 3px 0;
  box-sizing: border-box;
}

.bracket-score-header-btn {
  border: 0;
  background: transparent;
  cursor: default;
}

.bracket-score-header-aggregate {
  cursor: default;
}

.bracket-leg-score,
.bracket-aggregate-score {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  height: 28px;
  padding: 0;
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  box-sizing: border-box;
}

.bracket-leg-score {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bracket-leg-score:disabled {
  cursor: default;
  opacity: 0.5;
}

.bracket-aggregate-score {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bracket-connector-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.final-connector-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.bracket-connector-path {
  fill: none;
  stroke: #cbd5e1;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.final-round-column {
  min-width: 320px;
}

.final-round-column .bracket-round-matches {
  gap: 0;
}

.third-place-round-column {
  min-width: 320px;
}

.third-place-round-column .bracket-round-matches {
  gap: 0;
}

.vs-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.Kvs-text {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.5;
}

.kft-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kft-badge span {
  font-size: 9px;
  font-weight: 700;
  opacity: 0.5;
}

.kmatch-time {
  text-align: center;
  font-size: 9px;
  opacity: 0.5;
}

.pending-match {
  opacity: 0.7;
}

.champion-box-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  text-align: center;
  padding: 45px 20px 20px;
  flex-shrink: 0;
}

.champion-icon {
  font-size: 36px;
  margin-bottom: 5px;
  animation: float 3s ease-in-out infinite;
}

.champion-trophy-img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.champion-title {
  font-size: 12px;
  font-weight: 800;
  color: #fab005;
  letter-spacing: 2px;
  margin: 0 0 12px 0;
}

.champion-display-box {
  background: linear-gradient(135deg,
      #ffe066 0%,
      #fab005 100%);
  color: #12141c;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow:
    0 4px 20px rgba(250, 176, 5, 0.4);
  width: 100%;
  border: 1px solid #fcc419;
  box-sizing: border-box;
}

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

.match-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  min-width: 280px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bracket-match-inner {
  width: 100%;
  background: #ffffff;
  box-sizing: border-box;
}

.knockout-label {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.knockout-score-header,
.knockout-team-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 38px 38px 42px;
  align-items: center;
}

.knockout-score-header {
  min-height: 30px;
  background: #f5f5f5;
  border-bottom: 1px solid #dddddd;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.score-team-header {
  min-width: 0;
}

.score-header-cell {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #dddddd;
  box-sizing: border-box;
}

.knockout-team-row {
  min-height: 46px;
  border-bottom: 1px solid #eeeeee;
}

.knockout-team-row:last-of-type {
  border-bottom: none;
}

.team-side {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  box-sizing: border-box;
}

.team-name {
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #222222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fixture-team-logo-placeholder,
.fixture-team-logo {
  width: 28px;
  height: 28px;
  min-width: 28px;
  object-fit: contain;
  border-radius: 50%;
}

.fixture-team-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eeeeee;
  color: #888888;
  font-size: 12px;
}

.knockout-score-cell {
  height: 100%;
  min-height: 46px;
  border: 0;
  border-left: 1px solid #eeeeee;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 700;
  color: #222222;
  padding: 0;
}

button.knockout-score-cell {
  cursor: pointer;
}

button.knockout-score-cell:hover {
  background: #f1f1f1;
}

.aggregate-score {
  background: #fafafa;
  font-weight: 800;
  color: #111111;
}

.bracket-contact-area {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 5px 8px;
  background: #ffffff;
  border-top: 1px solid #eeeeee;
}

.bracket-contact-area .fixture-contact-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bracket-contact-area .fixture-contact-btn:hover {
  background: #f1f1f1;
}

.pending-match {
  opacity: 0.85;
}



.knockout-score-header {
  display: grid;
  grid-template-columns:
    minmax(120px, 1fr) 42px 42px 48px;
  align-items: center;
  width: 100%;
  height: 34px;
  min-height: 34px;
  background: #eeeeee;
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
  box-sizing: border-box;
}

.knockout-score-header>span,
.score-header-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
  border-left: 1px solid #cccccc;
  color: #111111;
  background: #eeeeee;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.knockout-score-header>span:first-child {
  border-left: none;
}

.knockout-team-row {
  display: grid;
  grid-template-columns:
    minmax(120px, 1fr) 42px 42px 48px;
  align-items: stretch;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  background: #ffffff;
  border-bottom: 1px solid #dddddd;
}

.knockout-score-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 42px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: none;
  border-left: 1px solid #dddddd;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  visibility: visible;
  opacity: 1;
}

button.knockout-score-cell {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

button.knockout-score-cell:hover {
  background: #f2f2f2;
}

.aggregate-score {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  border-left: 1px solid #cccccc;
  background: #f7f7f7;
  color: #000000;
  font-size: 14px;
  font-weight: 900;
  visibility: visible;
  opacity: 1;
}

.knockout-score-header .score-header-cell:nth-child(2),
.knockout-score-header .score-header-cell:nth-child(3),
.knockout-score-header .score-header-cell:nth-child(4) {
  color: #000000 !important;
  background: #eeeeee !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.single-leg-match-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  min-width: 280px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.single-leg-match-inner {
  width: 100%;
  background: #ffffff;
  box-sizing: border-box;
}

.single-leg-label {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.single-leg-team-row {
  display: grid;
  grid-template-columns:
    minmax(120px, 1fr) 48px;
  align-items: stretch;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  background: #ffffff;
  border-bottom: 1px solid #dddddd;
}

.single-leg-team-row:last-of-type {
  border-bottom: none;
}

.single-leg-team-side {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  box-sizing: border-box;
}

.single-leg-team-name {
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #222222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.single-leg-team-logo-placeholder,
.single-leg-match-card .fixture-team-logo {
  width: 28px;
  height: 28px;
  min-width: 28px;
  object-fit: contain;
  border-radius: 50%;
}

.single-leg-team-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eeeeee;
  color: #888888;
  font-size: 12px;
}

.single-leg-score {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: none;
  border-left: 1px solid #dddddd;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.single-leg-match-card button.single-leg-score {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.single-leg-match-card button.single-leg-score:hover {
  background: #f2f2f2;
}

.single-leg-contact-area {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 5px 8px;
  background: #ffffff;
  border-top: 1px solid #eeeeee;
}

.single-leg-contact-area .fixture-contact-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-leg-contact-area .fixture-contact-btn:hover {
  background: #f1f1f1;
}


.bracket-zoom-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  position: relative;
}

.bracket-zoom-content {
  transform-origin: 0 0;
  will-change: transform;
}

#bracketTeamLists {
  position: fixed;
  top: 60px;
  width: 100%;
  height: 100vh;
  padding-top: 20px;
  padding-bottom: 50px;
  padding-left: 20px;
  padding-right: 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

.notice-delete-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid #dc3545;
  border-radius: 8px;
  background: transparent;
  color: #dc3545;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notice-delete-btn:hover {
  background: #dc3545;
  color: #fff;
}

.notice-delete-btn:active {
  transform: scale(0.98);
}


.fixture-match-stats {
  margin: 10px 12px 0;
  padding: 8px 10px;
  background: #f7f8fa;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
}

.fixture-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  font-size: 12px;
  color: #4b5563;
}

.fixture-stat-row+.fixture-stat-row {
  border-top: 1px solid #e5e7eb;
}

.fixture-stat-row span:first-child {
  font-weight: 600;
  color: #374151;
}

.fixture-stat-row span:last-child {
  font-weight: 700;
  color: #111827;
  text-align: right;
  white-space: nowrap;
}

.match-playedTime {
  margin-top: 8px;
}



.team-performance-card {
  margin: 12px 0;
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.team-performance-header {
  padding: 14px 15px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

.team-performance-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.team-performance-header span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #6b7280;
}

.team-performance-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.team-performance-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 12px;
}

.team-performance-table th {
  padding: 10px 8px;
  background: #f7f8fa;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #e2e5e9;
}

.team-performance-table th:first-child {
  text-align: left;
  padding-left: 14px;
}

.team-performance-table td {
  padding: 11px 8px;
  text-align: center;
  color: #374151;
  font-weight: 600;
  border-bottom: 1px solid #edf0f2;
  white-space: nowrap;
}

.team-performance-table tr:last-child td {
  border-bottom: none;
}

.team-performance-table td:first-child {
  text-align: left;
  padding-left: 14px;
}

.team-performance-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  color: #111827;
}

.team-performance-empty {
  margin: 12px 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

.team-performance-description {
  margin: 0;
  padding: 10px 15px 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #6b7280;
  background: #fafafa;
  border-bottom: 1px solid #e5e7eb;
}


.streak-card .record-title,
.streak-card .team-side,
.streak-card .team-side span,
.streak-card .record-sub {
  color: #222;
}

#mostGoalsByTeamInMatch .team-side span,
#mostGoalsByTeamInMatch .record-title,
#mostGoalsByTeamInMatch .record-sub {
  color: #222;
}


.rankings-header {
  margin-bottom: 20px;
  padding: 18px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}
.rankings-header h2 {
  margin: 0 0 12px;
  color: #111827;
}
.rankings-header p {
  margin: 10px 0;
  line-height: 1.5;
  color: #111827;
}
.global-ranking-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 16px 14px;
  margin-bottom: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.ranking-position {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  color: #374151;
  background: #f3f4f6;
  border-radius: 10px;
}
.ranking-player {
  min-width: 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  color: #111827;
  overflow-wrap: anywhere;
}
.ranking-player-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #111827;
}
.ranking-rating {
  padding: 7px 10px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  color: #111827;
  background: #f3f4f6;
  border-radius: 9px;
  white-space: nowrap;
}
.ranking-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}
.ranking-stats span {
  display: block;
  padding: 7px 8px;
  color: #4b5563;
  background: #f9fafb;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
/* Current user's ranking card */
.current-ranking-user {
  position: relative;
  overflow: hidden;
  border: 1.5px solid #d4a72c;
  background: linear-gradient(
    135deg,
    #fffbeb 0%,
    #ffffff 60%,
    #fef3c7 100%
  );
  box-shadow:
    0 4px 14px rgba(180, 130, 20, 0.12),
    inset 3px 0 0 #d4a72c;
}
.current-ranking-user .ranking-position {
  color: #92400e;
  background: #fef3c7;
}
.current-ranking-user .ranking-rating {
  color: #92400e;
  background: #fef3c7;
}
.current-ranking-user .ranking-player-name {
  color: #78350f;
}
.current-ranking-user .ranking-stats span {
  color: #78350f;
  background: #fff7d6;
  border-color: #f3d47a;
}
/* YOU badge */
.you-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #e8c45c;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
}
@media (min-width: 500px) {
  .ranking-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.player-comparison-section {
  margin-bottom: 24px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}
.player-comparison-header {
  margin-bottom: 20px;
}
.player-comparison-header h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 19px;
  font-weight: 800;
}
.player-comparison-header p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}
.player-comparison-searches {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.comparison-player-field {
  position: relative;
  min-width: 0;
}
.comparison-player-field label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}
.comparison-player-field input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  color: #111827;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.comparison-player-field input:focus {
  background: #ffffff;
  border-color: #c49a27;
  box-shadow: 0 0 0 3px rgba(196, 154, 39, 0.14);
}
.comparison-player-field input::placeholder {
  color: #9ca3af;
}
.player-comparison-page-header {
  margin: 20px;
  padding-top: 20px;
}
.player-comparison-page-header h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
}
.player-comparison-page-header p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}
.back-to-rankings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 16px;
  color: #78350f;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #d4a72c;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.back-to-rankings-button:hover {
  background: #fef3c7;
  box-shadow: 0 3px 10px rgba(180, 130, 20, 0.15);
}
.back-to-rankings-button:active {
  transform: scale(0.97);
}
.back-to-rankings-button:focus-visible {
  outline: 2px solid #b8860b;
  outline-offset: 3px;
}
.player-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.player-search-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: #111827;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background 0.15s ease;
}
.player-search-suggestion:last-child {
  border-bottom: none;
}
.player-search-suggestion:hover,
.player-search-suggestion:focus {
  background: #fffbeb;
  outline: none;
}
.player-search-suggestion-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 700;
}
.player-search-suggestion-rating {
  flex-shrink: 0;
  padding: 4px 7px;
  color: #92400e;
  background: #fef3c7;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}
.player-search-empty {
  padding: 13px;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}
.comparison-selected-player {
  margin-top: 8px;
  padding: 9px 11px;
  color: #6b7280;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 9px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.comparison-selected-player.has-player {
  color: #78350f;
  background: #fffbeb;
  border: 1px solid #e8c45c;
  font-weight: 700;
}
.comparison-versus {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 42px;
  height: 42px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #e8c45c;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}
.compare-players-button {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 13px 16px;
  color: #ffffff;
  background: #92400e;
  border: 1px solid #78350f;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.compare-players-button:hover:not(:disabled) {
  background: #78350f;
}
.compare-players-button:active:not(:disabled) {
  transform: scale(0.99);
}
.compare-players-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.player-comparison-message {
  margin-top: 14px;
  padding: 11px 12px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #f3d47a;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
}
.player-comparison-results {
  margin-top: 22px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.comparison-results-heading {
  margin: 24px 0 12px;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
}
.comparison-player-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  align-items: stretch;
  box-sizing: border-box;
}
.comparison-player-card {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 15px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.comparison-player-card:first-child {
  border-top: 3px solid #d4a72c;
}
.comparison-player-card:last-child {
  border-top: 3px solid #6b7280;
}
.comparison-player-card h4 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.comparison-player-rating {
  margin-bottom: 14px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.comparison-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.comparison-stat-item {
  min-width: 0;
  padding: 10px 8px;
  background: #f9fafb;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.comparison-stat-label {
  display: block;
  margin-bottom: 5px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.comparison-stat-value {
  display: block;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.comparison-h2h-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
}

.comparison-h2h-item {
  min-width: 0;
  padding: 12px 5px;
  text-align: center;
  background: #fffbeb;
  border: 1px solid #f3d47a;
  border-radius: 10px;
  box-sizing: border-box;
}

.comparison-h2h-item strong {
  display: block;
  margin-bottom: 5px;
  color: #78350f;
  font-size: 20px;
  font-weight: 900;
}

.comparison-h2h-item span {
  display: block;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .comparison-h2h-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  
  .comparison-h2h-item {
    padding: 10px 3px;
  }
  
  .comparison-h2h-item strong {
    font-size: 17px;
  }
  
  .comparison-h2h-item span {
    font-size: 10px;
  }
}
.comparison-matches-list {
  display: grid;
  gap: 10px;
}
.comparison-match-card {
  padding: 13px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.comparison-match-tournament {
  margin-bottom: 9px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.comparison-match-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.comparison-match-player {
  min-width: 0;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.comparison-match-player:last-child {
  text-align: right;
}
.comparison-match-result {
  padding: 7px 9px;
  color: #78350f;
  background: #fef3c7;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}
.comparison-match-date {
  margin-top: 9px;
  color: #9ca3af;
  font-size: 11px;
}
.comparison-no-matches {
  padding: 18px 12px;
  color: #6b7280;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}
@media (min-width: 600px) {
  .player-comparison-searches {
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }
  .comparison-versus {
    margin-top: 26px;
  }
  .compare-players-button {
    width: auto;
    min-width: 220px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 480px) {
  .comparison-player-cards {
    gap: 8px;
  }
  .comparison-player-card {
    padding: 9px;
  }
  .comparison-player-card h4 {
    font-size: 14px;
  }
  .comparison-player-rating {
    font-size: 11px;
  }
  .comparison-stat-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .comparison-stat-item {
    padding: 8px 5px;
  }
  .comparison-stat-label {
    font-size: 10px;
  }
  .comparison-stat-value {
    font-size: 14px;
  }
  .comparison-h2h-summary {
    gap: 5px;
  }
  .comparison-h2h-item {
    padding: 10px 4px;
  }
  .comparison-h2h-item strong {
    font-size: 17px;
  }
  .comparison-match-score {
    gap: 5px;
  }
  .comparison-match-player {
    font-size: 11px;
  }
  .comparison-match-result {
    padding: 6px;
    font-size: 13px;
  }
}

.comparison-h2h-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
}

.comparison-h2h-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
}

.comparison-h2h-item:last-child {
  grid-column: 2;
  margin-top: 4px;
}


.comparison-match-score strong {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #1a1a1a !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  flex-shrink: 0 !important;
}
.comparison-match-player {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #333333 !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}
.table-zones {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  margin: 0 auto 15px;
  width: max-content;
  font-size: 0.75rem;
  color: #0f0f0f;
  overflow-x: auto;
}
.table-zone {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.zone-indicator {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}
.champions-zone {
  background: #2563eb;
}
.relegation-zone {
  background: #dc2626;
}

.table-tournament-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 12px 10px;
  text-align: center;
  color: #0f0f0f;
  background: white;
  box-sizing: border-box;
}

.table-tournament-name #tableTournamentName {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.table-tournament-name #tournamentSeason {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 400;
  color: #777;
  line-height: 1.2;
}

.tournament-champion {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 8px 10px 10px;
  text-align: center;
}

.tournament-champion-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.65;
}

.tournament-champion-name {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
}


.cup-tables-header {
  width: 100%;
  text-align: center;
  background: #fff;
  color: #222;
  padding: 16px 12px;
  border-radius: 10px;
}

.cup-tables-name {
  color: #222;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.cup-tables-season {
  color: #555;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
}

.cup-fixtures-header {
  width: 100%;
  text-align: center;
  padding: 14px 0 10px;
  background: #fff;
}

.cup-fixtures-tournament-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #111;
}

.cup-fixtures-season {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
}

.fixtures-tournament-header {
  width: 100%;
  padding: 14px 12px 10px;
  text-align: center;
  background: #fff;
  box-sizing: border-box;
}

.fixtures-tournament-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #111;
}

.fixtures-tournament-season {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
}

.cupRoundBar {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 16px 12px;
  margin-bottom: 12px;
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.cupRoundBar .roundbarNav {
  display: flex;
  align-items: center;
  width: 80%;
  gap: 6px;
  margin: 0 auto;
}

.cupRoundBar .roundbarNav button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid #ddd;
  padding: 5px;
  border-radius: 7px;
  background: #f7f7f7;
  color: #444;
  font-size: 1rem;
  font-weight: 600;
  transition: transform .12s ease, background .12s ease;
}

.cupRoundBar .roundbarNav button:active {
  transform: scale(.95);
}

.cupRoundBar .roundbarNav button:hover {
  background: #f0f0f0;
}

#cupRoundLabel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  padding: 5px 10px;
  color: #333;
  background: #f7f7f7;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  height: 32px;
  box-sizing: border-box;
}

#cupSubmissionDeadlineCountdown {
  display: none;
  width: 100%;
  margin: 10px 0 0;
  padding: 10px 14px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e2e2;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

#cupFixtures {
  padding-top: 0 !important;
  padding-bottom: 40px;
  overflow: auto;
  
}





#bracketViewport {
  width: 100%;
  height: calc(100vh - 60px);
  overflow: auto;
  padding: 20px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

#bracket-container {
  background: #f8f7f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  min-width: 100%;
  height: max-content;
  transform-origin: top left;
}

#bracketFixturesView {
  padding: 20px;
  overflow: visible;
  gap: 3px;
}


.bracket-zoom-viewport {
  width: 100%;
  height: 100%;
  overflow: auto;
  position: relative;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}


#bracketViewport {
  background: grey;
  width: 100%;
  height: calc(100vh - 60px);
  overflow: auto;
  padding: 20px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

#bracket-container {
  background: grey;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  min-width: 100%;
  height: max-content;
  box-sizing: border-box;
}




.tournament-rules-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
}

.tournament-rules-container {
  width: min(100%, 620px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #171717;
  border-radius: 14px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.tournament-rules-content {
  flex: 1;
  min-height: 0;
  padding: 22px;
  overflow-y: auto;
  overflow-x: hidden;
  text-align: left;
  line-height: 1.6;
  font-size: 15px;
  box-sizing: border-box;
}

.tournament-rules-content::-webkit-scrollbar {
  width: 6px;
}

.tournament-rules-content::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}

.tournament-rules-content::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.tournament-rules-actions {
  display: flex;
  gap: 10px;
  padding: 15px 18px;
  border-top: 1px solid #e5e5e5;
  background: #fff;
  box-sizing: border-box;
}

.tournament-rules-actions button {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #171717;
  border-radius: 8px;
  background: #fff;
  color: #171717;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, background 0.2s;
}

.tournament-rules-actions button:active {
  opacity: 0.7;
}

.tournament-rules-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tournament-rules-agree {
  background: #171717 !important;
  color: #fff !important;
}

.tournament-rules-decline {
  background: #fff !important;
  color: #171717 !important;
}

.tournament-rules-close {
  background: #171717 !important;
  color: #fff !important;
}

.rules-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
}

.rules-subtitle {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
  color: #666;
}

.rules-intro {
  margin: 0 0 22px;
  padding: 12px 14px;
  background: #f7f7f7;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.rules-main-section {
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #171717;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.rules-main-section:first-child {
  margin-top: 0;
}

.rules-subsection {
  margin: 22px 0 8px;
  padding: 8px 10px;
  background: #f7f7f7;
  border-left: 4px solid #171717;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.rules-code-heading {
  margin: 16px 0 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #555;
  overflow-wrap: anywhere;
}

.rules-point {
  display: flex;
  gap: 9px;
  margin: 7px 0;
  padding-left: 4px;
  max-width: 100%;
  box-sizing: border-box;
}

.rules-point span {
  flex-shrink: 0;
  font-weight: 700;
}

.rules-point div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rules-paragraph {
  margin: 9px 0;
  overflow-wrap: anywhere;
}

.rules-number {
  margin: 6px 0;
  padding-left: 8px;
  overflow-wrap: anywhere;
}

.rules-final {
  margin: 30px 0 5px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.4px;
}

.tournament-rules-search {
  padding: 14px 18px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.tournament-rules-search input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f7f7f7;
  color: #171717;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.tournament-rules-search input:focus {
  border-color: #171717;
  background: #fff;
}

.tournament-rules-search input::placeholder {
  color: #888;
}

.rules-search-match {
  background: #ffeb3b;
  color: #171717;
  border-radius: 2px;
}


.fixture-squad-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.fixture-squad-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.fixture-squad-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: fixtureSquadModalIn 0.2s ease;
}

.fixture-squad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.fixture-squad-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #171717;
}

.fixture-squad-header p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #777;
}

.fixture-squad-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  color: #111;
  font-size: 25px;
  cursor: pointer;
}

.fixture-squad-teams {
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.fixture-squad-team {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  background: #fff;
}

.fixture-squad-team:last-child {
  margin-bottom: 0;
}

.fixture-squad-team-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 12px;
  border: 0;
  background: #fff;
  color: #111;
  text-align: left;
  cursor: pointer;
}

.fixture-squad-team-toggle:active {
  background: #f7f7f7;
}

.fixture-squad-team-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f3f3;
  font-size: 18px;
}

.fixture-squad-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fixture-squad-team-info {
  flex: 1;
  min-width: 0;
}

.fixture-squad-team-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #171717;
  overflow-wrap: anywhere;
}

.fixture-squad-team-label {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 12px;
}

.fixture-squad-chevron {
  flex: 0 0 auto;
  font-size: 18px;
  color: #777;
  transition: transform 0.2s ease;
}

.fixture-squad-team.expanded .fixture-squad-chevron {
  transform: rotate(180deg);
}

.fixture-squad-team-content {
  padding: 0 12px 14px;
  border-top: 1px solid #eee;
}

.fixture-squad-team-content[hidden] {
  display: none;
}

.fixture-squad-image {
  display: block;
  width: 100%;
  max-height: 380px;
  margin: 14px auto 0;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f7f7;
}

.fixture-squad-message {
  padding: 18px 8px;
  color: #777;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.fixture-squad-error {
  color: #b42318;
}

.fixture-contact-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
}

.fixture-squad-btn,
.fixture-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  color: #111;
  cursor: pointer;
}

.fixture-squad-btn {
  font-size: 17px;
}

.fixture-contact-btn {
  font-size: 16px;
}

.fixture-squad-btn:active,
.fixture-contact-btn:active {
  transform: scale(0.94);
}

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

@media (prefers-reduced-motion: reduce) {
  .fixture-squad-dialog {
    animation: none;
  }
  
  .fixture-squad-chevron {
    transition: none;
  }
}





#homepageNav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-around;
  gap: 0;
  padding: 12px 8px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  width: 100%;
}

#homepageNav .homepage-nav-btn {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 2px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
}

#homepageNav .homepage-nav-btn span:first-child {
  display: block;
  font-size: 21px;
  line-height: 1;
}

#homepageNav .homepage-nav-btn span:last-child {
  display: block;
  white-space: nowrap;
}

#homepageNav .homepage-nav-btn:active {
  background: #f3f4f6;
}


#hallOfFameList {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  color: #f5f7fb;
  box-sizing: border-box;
}

.hallOfFameCategory {
  position: relative;
  width: 100%;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(212, 175, 55, 0.10),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      #172235 0%,
      #0c1524 65%,
      #09111e 100%
    );
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  box-sizing: border-box;
}

.hallOfFameCategory::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 56px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(
    90deg,
    #f8e5a0,
    #c69b36
  );
}

.hallOfFameTitle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #f7d98b;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
}

.hallOfFameTitle::before {
  content: "🏆";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(226, 187, 83, 0.25);
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(220, 174, 61, 0.18),
    rgba(220, 174, 61, 0.04)
  );
  font-size: 23px;
}

.hallOfFameWinners {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.hallOfFameWinner {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid rgba(155, 173, 201, 0.2);
  border-radius: 13px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.065),
    rgba(255, 255, 255, 0.025)
  );
  color: #f4f6fb;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.hallOfFameWinner:first-child {
  border-color: rgba(231, 190, 79, 0.42);
  background: linear-gradient(
    135deg,
    rgba(218, 170, 52, 0.15),
    rgba(255, 255, 255, 0.035)
  );
}

.hallOfFameWinner span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hallOfFameWinner span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  color: #f6d16f;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 28px 20px;
  border: 1px dashed rgba(212, 175, 55, 0.3);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    #172235,
    #0c1524
  );
  color: #c3ccda;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  box-sizing: border-box;
}

@media (hover: hover) {
  .hallOfFameWinner:hover {
    border-color: rgba(231, 190, 79, 0.55);
    background: rgba(218, 170, 52, 0.10);
    transform: translateY(-2px);
  }
}

@media (max-width: 380px) {
  #hallOfFameList {
    gap: 14px;
    padding: 14px 12px 28px;
  }

  .hallOfFameCategory {
    padding: 16px;
    border-radius: 16px;
  }

  .hallOfFameTitle {
    gap: 10px;
    font-size: 17px;
  }

  .hallOfFameTitle::before {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 20px;
  }

  .hallOfFameWinners {
    gap: 8px;
  }

  .hallOfFameWinner {
    min-height: 44px;
    gap: 8px;
    padding: 9px 11px;
    font-size: 13px;
  }
}

@media (min-width: 600px) {
  #hallOfFameList {
    padding: 28px 24px 40px;
  }

  .hallOfFameCategory {
    padding: 24px;
  }

  .hallOfFameTitle {
    font-size: 21px;
  }

  .hallOfFameWinner {
    min-height: 54px;
    padding: 12px 16px;
    font-size: 15px;
  }
}


#hallOfFameList {
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(184, 134, 11, 0.18),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      #171207 0%,
      #0e0c08 50%,
      #080a10 100%
    );
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px;
}

.hallOfFameCategory {
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(212, 175, 55, 0.14),
      transparent 45%
    ),
    linear-gradient(
      145deg,
      #29200e 0%,
      #17150f 55%,
      #101019 100%
    );
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 220, 130, 0.08);
}

.hallOfFameCategory::before {
  background: linear-gradient(
    90deg,
    #fff0b0,
    #e7bd50,
    #a87519
  );
}

.hallOfFameTitle {
  color: #ffdf8a;
  border-bottom-color: rgba(212, 175, 55, 0.2);
}

.hallOfFameTitle::before {
  background: linear-gradient(
    145deg,
    rgba(234, 190, 70, 0.24),
    rgba(120, 82, 17, 0.15)
  );
  border-color: rgba(237, 194, 78, 0.35);
}

.hallOfFameWinner {
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.09),
    rgba(255, 255, 255, 0.025)
  );
  border-color: rgba(212, 175, 55, 0.2);
  color: #fff8e7;
}

.hallOfFameWinner:first-child {
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.2),
    rgba(212, 175, 55, 0.06)
  );
  border-color: rgba(239, 198, 88, 0.5);
}

.hallOfFameWinner span:last-child {
  color: #ffda70;
}

.empty-state {
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(212, 175, 55, 0.12),
      transparent 70%
    ),
    linear-gradient(
      145deg,
      #29200e,
      #121019
    );
  border-color: rgba(212, 175, 55, 0.3);
  color: #e3d8bd;
}

@media (hover: hover) {
  .hallOfFameWinner:hover {
    background: rgba(212, 175, 55, 0.16);
    border-color: rgba(255, 215, 100, 0.65);
  }
}

#hallOfFameSection {
  width: 100%;
  min-height: 100%;
  padding-bottom: 24px;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(184, 134, 11, 0.17),
      transparent 48%
    ),
    linear-gradient(
      180deg,
      #171207 0%,
      #0c0b08 45%,
      #080a10 100%
    );
  color: #fff8e7;
  box-sizing: border-box;
}

.hallOfFameHeader {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 22px 26px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(232, 190, 76, 0.13),
      transparent 68%
    );
  box-sizing: border-box;
}

.hallOfFameHeaderBadge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border: 1px solid rgba(235, 194, 79, 0.55);
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(233, 190, 72, 0.22),
    rgba(124, 83, 19, 0.12)
  );
  box-shadow:
    0 0 30px rgba(212, 175, 55, 0.12),
    inset 0 1px 0 rgba(255, 235, 170, 0.12);
}

.hallOfFameHeaderBadge span {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 3px 8px rgba(232, 180, 50, 0.3));
}

.hallOfFameHeaderLabel {
  margin-bottom: 10px;
  color: #d5b66a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.5;
}

.hallOfFameMainTitle {
  margin: 0;
  color: #fff8e7;
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 850;
  letter-spacing: -1.5px;
  line-height: 1.15;
  text-transform: uppercase;
}

.hallOfFameMainTitle span {
  color: #edc75e;
  background: linear-gradient(
    180deg,
    #fff0ae 0%,
    #e9c35a 48%,
    #b8862b 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hallOfFameDescription {
  max-width: 340px;
  margin: 14px 0 0;
  color: #c4bba5;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.1px;
}

.hallOfFameHeaderDivider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 180px;
  margin-top: 24px;
}

.hallOfFameHeaderDivider > span:not(.hallOfFameDividerIcon) {
  height: 1px;
  flex: 1;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(218, 177, 65, 0.7)
  );
}

.hallOfFameHeaderDivider > span:last-child {
  transform: rotate(180deg);
}

.hallOfFameDividerIcon {
  color: #edc75e;
  font-size: 16px;
}

@media (max-width: 380px) {
  .hallOfFameHeader {
    padding: 28px 18px 22px;
  }

  .hallOfFameHeaderBadge {
    width: 60px;
    height: 60px;
    border-radius: 19px;
  }

  .hallOfFameHeaderBadge span {
    font-size: 31px;
  }

  .hallOfFameHeaderLabel {
    font-size: 9px;
    letter-spacing: 2.5px;
  }

  .hallOfFameDescription {
    font-size: 13px;
  }
}


#hallOfFameList {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 16px 32px;
  background: transparent;
  border: none;
  color: #f5f7fb;
  box-sizing: border-box;
}


.disciplinary-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: inherit;
}
.disciplinary-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.disciplinary-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 490px;
  max-height: 90%;
  overflow-y: auto;
  background: linear-gradient(160deg, #171711, #0c0d0b 75%);
  border: 1px solid rgba(202, 164, 75, 0.35);
  border-radius: 20px;
  padding: 24px;
  color: #f7f3e8;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: disciplinaryModalEnter 0.22s ease-out;
}
@keyframes disciplinaryModalEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.disciplinary-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.disciplinary-eyebrow {
  display: block;
  color: #d2b15f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  margin-bottom: 8px;
}
.disciplinary-modal-header h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: #fff9e8;
}
.disciplinary-modal-header p {
  margin: 7px 0 0;
  color: #a8a89c;
  font-size: 13px;
  line-height: 1.5;
}
.disciplinary-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #38372d;
  background: #222219;
  color: #d7d3c5;
  font-size: 25px;
  cursor: pointer;
}
.disciplinary-tournament-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px;
  margin-bottom: 22px;
  border-radius: 13px;
  border: 1px solid rgba(202, 164, 75, 0.22);
  background: rgba(202, 164, 75, 0.07);
}
.disciplinary-info-label {
  color: #c6a957;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.disciplinary-tournament-info strong {
  color: #fff3cf;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.disciplinary-tournament-info > span:last-child {
  color: #99988b;
  font-size: 12px;
}
.disciplinary-field {
  margin-bottom: 19px;
}
.disciplinary-field label {
  display: block;
  margin-bottom: 9px;
  color: #e9e5d8;
  font-size: 13px;
  font-weight: 700;
}
.disciplinary-field select,
.disciplinary-field input,
.disciplinary-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #3b3b30;
  border-radius: 11px;
  background: #11120f;
  color: #f6f1e4;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.disciplinary-field select {
  cursor: pointer;
}
.disciplinary-field textarea {
  resize: vertical;
  min-height: 90px;
}
.disciplinary-field select:focus,
.disciplinary-field input:focus,
.disciplinary-field textarea:focus {
  border-color: #c9a54d;
  box-shadow: 0 0 0 3px rgba(201, 165, 77, 0.12);
}
.disciplinary-field small {
  display: block;
  margin-top: 7px;
  color: #939387;
  font-size: 11px;
  line-height: 1.5;
}
.disciplinary-selected-player {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  margin: -5px 0 20px;
  background: #202018;
  border: 1px solid #39382b;
  border-radius: 13px;
}
.disciplinary-player-avatar {
  display: flex;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #d8bb6d, #94712d);
  color: #17140b;
  font-size: 16px;
  font-weight: 900;
}
.disciplinary-player-details {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.disciplinary-player-details strong {
  color: #f8f1de;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.disciplinary-player-details span {
  color: #aaa99b;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.disciplinary-current-points {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.disciplinary-current-points span {
  color: #a6a494;
  font-size: 10px;
  white-space: nowrap;
}
.disciplinary-current-points strong {
  color: #e4c36d;
  font-size: 21px;
  font-weight: 800;
}
.disciplinary-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(202, 164, 75, 0.25);
  border-radius: 12px;
  background: rgba(202, 164, 75, 0.07);
}
.disciplinary-summary span {
  color: #c3bdab;
  font-size: 12px;
}
.disciplinary-summary strong {
  color: #e8c76f;
  font-size: 22px;
  font-weight: 900;
}
.disciplinary-message {
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
}
.disciplinary-error {
  background: rgba(180, 48, 48, 0.12);
  border: 1px solid rgba(230, 87, 87, 0.3);
  color: #ffaaaa;
}
.disciplinary-modal-actions {
  display: flex;
  gap: 11px;
  margin-top: 24px;
}
.disciplinary-modal-actions button {
  min-height: 46px;
  border-radius: 11px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.disciplinary-cancel-btn {
  flex: 1;
  background: #24241c;
  color: #d5d1c4;
  border: 1px solid #3b3a30;
}
.disciplinary-submit-btn {
  flex: 1.5;
  border: 1px solid #d8b65e;
  background: linear-gradient(135deg, #e0c471, #b38b37);
  color: #191509;
}
.disciplinary-modal-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.disciplinary-modal-actions button:not(:disabled):active {
  transform: scale(0.98);
}
@media (max-width: 420px) {
  .disciplinary-modal {
    padding: 10px;
  }
  .disciplinary-modal-card {
    padding: 19px;
    border-radius: 17px;
    max-height: 94%;
  }
  .disciplinary-modal-header h2 {
    font-size: 22px;
  }
  .disciplinary-modal-actions button {
    padding: 11px 10px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .disciplinary-modal-card {
    animation: none;
  }
  .disciplinary-field select,
  .disciplinary-field input,
  .disciplinary-field textarea,
  .disciplinary-modal-actions button {
    transition: none;
  }
}



#disciplinaryActionsSection,
.disciplinary-actions-section {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  width: calc(100% - 28px);
  max-width: 680px;
  height: min(820px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #f5f0df;
  background:
    radial-gradient(ellipse at top right, rgba(184, 139, 35, 0.13), transparent 42%),
    linear-gradient(155deg, #211b0e 0%, #14120d 48%, #0c0c09 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 22px;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(212, 175, 55, 0.08),
    inset 0 1px 0 rgba(255, 230, 150, 0.08);
  overflow: hidden;
  z-index: 10000;
  box-sizing: border-box;
  isolation: isolate;
}
#disciplinaryActionsSection *,
.disciplinary-actions-section * {
  box-sizing: border-box;
}
#disciplinaryActionsSection .disciplinary-actions-header,
.disciplinary-actions-section .disciplinary-actions-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  margin: 0;
  padding: 25px 24px 22px;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.11),
    rgba(212, 175, 55, 0.025)
  );
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.disciplinary-actions-heading {
  flex: 1;
  min-width: 0;
}
.disciplinary-actions-header h2 {
  margin: 0 0 9px;
  color: #f3d778;
  font-size: clamp(19px, 4vw, 25px);
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.25;
}
.disciplinary-actions-header p {
  max-width: 430px;
  margin: 0;
  color: #bdb39c;
  font-size: 12px;
  line-height: 1.7;
}
.disciplinary-actions-header-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.disciplinary-refresh-btn,
.disciplinary-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 11px;
  background: rgba(212, 175, 55, 0.07);
  color: #f0d47b;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.disciplinary-refresh-btn {
  padding: 0 13px;
  font-size: 12px;
  font-weight: 800;
}
.disciplinary-close-btn {
  width: 38px;
  padding: 0;
  font-size: 25px;
  line-height: 1;
}
.disciplinary-refresh-btn:hover,
.disciplinary-close-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(240, 215, 131, 0.7);
}
.disciplinary-refresh-btn:active,
.disciplinary-close-btn:active {
  transform: scale(0.96);
}
.disciplinary-refresh-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#disciplinaryActionsSection #disciplinaryActionsList,
.disciplinary-actions-section #disciplinaryActionsList {
  display: block;
  flex: 1 1 0%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 19px 22px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #0b0b0b;
  color: #f5f0df;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.55) #151515;
  scroll-padding-top: 12px;
}
#disciplinaryActionsList::-webkit-scrollbar {
  width: 6px;
}
#disciplinaryActionsList::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 10px;
}
#disciplinaryActionsList::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 10px;
}
#disciplinaryActionsList::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 215, 131, 0.7);
}
.disciplinary-action-card {
  position: relative;
  margin: 0 0 15px;
  padding: 19px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.012)
  );
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
  overflow-wrap: anywhere;
}
.disciplinary-action-card:last-child {
  margin-bottom: 0;
}
.disciplinary-action-card:hover {
  border-color: rgba(212, 175, 55, 0.38);
  background: linear-gradient(
    145deg,
    rgba(212, 175, 55, 0.065),
    rgba(255, 255, 255, 0.015)
  );
}
.disciplinary-action-card.active {
  border-left: 3px solid #d6ad43;
}
.disciplinary-action-card.reversed {
  border-left: 3px solid #6abf91;
}
.disciplinary-action-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.disciplinary-player-info {
  flex: 1;
  min-width: 0;
}
.disciplinary-player-name {
  margin: 0 0 6px;
  color: #fff4d4;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.disciplinary-team-name {
  color: #b9ad90;
  font-size: 12px;
  line-height: 1.5;
}
.disciplinary-action-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex-shrink: 0;
}
.disciplinary-points-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  color: #ffb7a9;
  background: rgba(220, 65, 45, 0.12);
  border: 1px solid rgba(220, 65, 45, 0.3);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.disciplinary-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.disciplinary-status-badge.active {
  color: #f0d27a;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.disciplinary-status-badge.active::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e5bf55;
  box-shadow: 0 0 8px rgba(229, 191, 85, 0.4);
}
.disciplinary-status-badge.reversed {
  color: #8fe0b1;
  background: rgba(59, 170, 112, 0.1);
  border: 1px solid rgba(78, 190, 130, 0.25);
}
.disciplinary-status-badge.reversed::before {
  content: "✓";
  font-size: 11px;
}
.disciplinary-status-badge.unknown {
  color: #c4bba7;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.disciplinary-action-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin-top: 19px;
  padding-top: 7px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}
.disciplinary-detail-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 11px 0;
}
.disciplinary-detail-label {
  color: #948a73;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.75px;
  line-height: 1.4;
  text-transform: uppercase;
}
.disciplinary-detail-value {
  max-width: 100%;
  color: #e8dfcb;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.disciplinary-action-details > .disciplinary-detail-row:first-child {
  grid-column: 1 / -1;
}
.disciplinary-reversal-details {
  grid-column: 1 / -1;
  margin-top: 9px;
  padding: 5px 14px 7px;
  background: rgba(59, 170, 112, 0.055);
  border: 1px solid rgba(78, 190, 130, 0.17);
  border-radius: 11px;
}
.disciplinary-reversal-details .disciplinary-detail-row {
  border-bottom: 1px solid rgba(78, 190, 130, 0.1);
}
.disciplinary-reversal-details .disciplinary-detail-row:last-child {
  border-bottom: none;
}
.disciplinary-reversal-details .disciplinary-detail-label {
  color: #81b79a;
}
.disciplinary-reversal-details .disciplinary-detail-value {
  color: #cce8d7;
}
.disciplinary-reverse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 17px;
  padding: 12px 16px;
  color: #1a1407;
  background: linear-gradient(
    135deg,
    #f3dc8d 0%,
    #d4af37 55%,
    #bd9025 100%
  );
  border: 1px solid rgba(255, 235, 165, 0.4);
  border-radius: 11px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.25px;
  transition:
    filter 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.disciplinary-reverse-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.25);
}
.disciplinary-reverse-btn:active {
  transform: translateY(0);
}
.disciplinary-reverse-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.disciplinary-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 35px 20px;
  color: #b9b09a;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(212, 175, 55, 0.2);
  border-radius: 15px;
}
.disciplinary-reversal-form {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 45%;
  margin: 0 22px 20px;
  padding: 20px;
  overflow-y: auto;
  background: linear-gradient(145deg, #211b10, #15130f);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: disciplinaryFormExpand 0.25s ease;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}
#disciplinaryActionsSection #disciplinaryReversalForm[style*="display: none"],
.disciplinary-actions-section #disciplinaryReversalForm[style*="display: none"] {
  display: none !important;
}
.disciplinary-reversal-form-header {
  margin-bottom: 18px;
}
.disciplinary-reversal-form-header h3 {
  margin: 0 0 8px;
  color: #e8c866;
  font-size: 18px;
  font-weight: 800;
}
.disciplinary-reversal-form-header p {
  margin: 0;
  color: #b9b2a2;
  font-size: 12px;
  line-height: 1.7;
}
.disciplinary-reversal-form label {
  display: block;
  margin-bottom: 9px;
  color: #f0e8d5;
  font-size: 12px;
  font-weight: 700;
}
#disciplinaryReversalReason {
  display: block;
  width: 100%;
  min-height: 110px;
  padding: 13px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #55482a;
  border-radius: 10px;
  outline: none;
  background: #100f0c;
  color: #fff8e6;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
#disciplinaryReversalReason::placeholder {
  color: #817968;
}
#disciplinaryReversalReason:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}
.disciplinary-reversal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.disciplinary-cancel-btn,
.disciplinary-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s,
    opacity 0.2s,
    background 0.2s;
}
.disciplinary-cancel-btn {
  border: 1px solid #514a3b;
  background: #25221b;
  color: #ddd3bd;
}
.disciplinary-submit-btn {
  border: 1px solid #e1c35b;
  background: linear-gradient(135deg, #e5c65c, #b78b20);
  color: #171208;
}
.disciplinary-cancel-btn:hover,
.disciplinary-submit-btn:hover {
  transform: translateY(-1px);
}
.disciplinary-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
@keyframes disciplinaryFormExpand {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  #disciplinaryActionsSection,
  .disciplinary-actions-section {
    width: calc(100% - 20px);
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }
  .disciplinary-actions-header {
    gap: 10px;
    padding: 19px 16px 17px;
  }
  .disciplinary-actions-header p {
    font-size: 11px;
  }
  .disciplinary-actions-header-buttons {
    gap: 6px;
  }
  .disciplinary-refresh-btn {
    min-height: 35px;
    padding: 0 10px;
    font-size: 11px;
  }
  .disciplinary-close-btn {
    width: 35px;
    min-height: 35px;
  }
  #disciplinaryActionsList {
    padding: 14px 13px 20px;
  }
  .disciplinary-action-card {
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 14px;
  }
  .disciplinary-player-name {
    font-size: 14px;
  }
  .disciplinary-team-name {
    font-size: 11px;
  }
  .disciplinary-points-badge {
    padding: 6px 8px;
    font-size: 10px;
  }
  .disciplinary-status-badge {
    padding: 5px 7px;
    font-size: 9px;
  }
  .disciplinary-action-details {
    gap: 0 12px;
    margin-top: 14px;
  }
  .disciplinary-detail-row {
    padding: 10px 0;
  }
  .disciplinary-detail-label {
    font-size: 9px;
  }
  .disciplinary-detail-value {
    font-size: 11px;
  }
  .disciplinary-reversal-details {
    padding-right: 10px;
    padding-left: 10px;
  }
  .disciplinary-reversal-form {
    margin: 0 13px 14px;
    padding: 15px;
  }
}
@media (max-width: 380px) {
  .disciplinary-actions-header {
    flex-wrap: wrap;
  }
  .disciplinary-actions-heading {
    flex-basis: 100%;
  }
  .disciplinary-actions-header-buttons {
    margin-left: auto;
  }
  .disciplinary-action-top {
    gap: 8px;
  }
  .disciplinary-action-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .disciplinary-action-details > .disciplinary-detail-row:first-child {
    grid-column: auto;
  }
  .disciplinary-reversal-details {
    grid-column: auto;
  }
  .disciplinary-reversal-form-actions {
    flex-direction: column-reverse;
  }
  .disciplinary-cancel-btn,
  .disciplinary-submit-btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .disciplinary-action-card,
  .disciplinary-refresh-btn,
  .disciplinary-close-btn,
  .disciplinary-reverse-btn,
  .disciplinary-cancel-btn,
  .disciplinary-submit-btn {
    transition: none;
  }
  .disciplinary-reversal-form {
    animation: none;
  }
}

.team-name-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.deduction-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
  vertical-align: middle;
}


.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, 0.12);
  backdrop-filter: blur(0.3px);
  -webkit-backdrop-filter: blur(0.3px);
}

.galatico-mini-loader {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111111;
  border: 1px solid rgba(232, 185, 71, 0.45);
  box-shadow:
    0 0 0 3px rgba(17, 17, 17, 0.08),
    0 4px 14px rgba(0, 0, 0, 0.18);
}

.galatico-mini-logo {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: galaticoMiniDeform 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(232, 185, 71, 0.4));
}

.galatico-mini-g {
  transform-box: fill-box;
  transform-origin: center;
  animation: galaticoMiniGForm 1.5s ease-in-out infinite;
}

.galatico-mini-orbit {
  stroke-dasharray: 180;
  stroke-dashoffset: 0;
  transform-origin: center;
  animation: galaticoMiniOrbit 2s linear infinite;
}

.galatico-mini-star {
  transform-box: fill-box;
  transform-origin: center;
  animation: galaticoMiniStar 1s ease-in-out infinite;
}

@keyframes galaticoMiniDeform {
  0%, 100% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(0.88, 1.12);
  }
}

@keyframes galaticoMiniGForm {
  0%, 100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(1.08);
  }
}

@keyframes galaticoMiniOrbit {
  from {
    transform: rotate(-35deg);
  }
  to {
    transform: rotate(325deg);
  }
}

@keyframes galaticoMiniStar {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}



.auth-logo {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 20px;
}


.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 800;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  height: auto;
  background: #f7f7f5;
  border-bottom: 1px solid #e2e2df;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.header-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  background: #111111 ;
  border-radius: 10px;
}

#welcomeText {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  min-width: 0;
  line-height: 1.3;
}

.welcome-message {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.75;
}

#usernameText {
  display: block;
  max-width: 100%;
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}

#tourListPageHead {
  justify-content: center;
  padding-left: 16px;
  padding-right: 16px;
}

#tourListPageHead .page-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#tourListPageHead .tournamentListView {
  text-align: center;
}


#galaticoSplash {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(
    ellipse at center,
    #242016 0%,
    #100f0b 42%,
    #050505 100%
  );
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#galaticoSplash::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(218, 170, 55, 0.09);
  filter: blur(65px);
  animation: splashGlow 2.4s ease-in-out infinite;
}

.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 24px;
  text-align: center;
}

.splash-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 170px;
  margin-bottom: 18px;
  opacity: 0;
  transform: scale(0.72);
  animation: splashLogoReveal 0.9s ease-out 0.15s forwards;
}

.splash-logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(222, 177, 67, 0.22));
}

.splash-gold-ring {
  position: absolute;
  width: 135px;
  height: 135px;
  border: 1px solid rgba(224, 183, 82, 0.5);
  border-radius: 50%;
  animation: splashRing 2.5s linear infinite;
}

.splash-brand {
  margin: 0;
  color: #e8c66d;
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 900;
  letter-spacing: 5px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(12px);
  animation: splashTextReveal 0.65s ease-out 0.65s forwards;
  text-shadow: 0 0 20px rgba(224, 183, 82, 0.15);
}

.splash-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 190px;
  margin-top: 13px;
  opacity: 0;
  animation: splashFadeIn 0.5s ease-out 0.95s forwards;
}

.splash-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #cba64e
  );
}

.splash-divider span:last-child {
  background: linear-gradient(
    90deg,
    #cba64e,
    transparent
  );
}

.splash-divider div {
  width: 6px;
  height: 6px;
  background: #f2d58b;
  transform: rotate(45deg);
}

.splash-subtitle {
  margin: 9px 0 0;
  color: #f2e4bd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 8px;
  padding-left: 8px;
  opacity: 0;
  animation: splashFadeIn 0.5s ease-out 1.05s forwards;
}

.splash-tagline {
  margin: 23px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.8;
  opacity: 0;
  animation: splashFadeIn 0.6s ease-out 1.25s forwards;
}

.splash-bottom {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  text-align: center;
  opacity: 0;
  animation: splashFadeIn 0.6s ease-out 1.4s forwards;
}

.splash-bottom span {
  color: rgba(232, 198, 109, 0.5);
  font-size: 9px;
  letter-spacing: 3px;
}

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

@keyframes splashLogoReveal {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  65% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splashTextReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splashFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes splashGlow {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes splashRing {
  from {
    transform: rotate(0deg) scale(0.95);
    opacity: 0.45;
  }
  50% {
    transform: rotate(180deg) scale(1.05);
    opacity: 0.8;
  }
  to {
    transform: rotate(360deg) scale(0.95);
    opacity: 0.45;
  }
}

@media (max-width: 380px) {
  .splash-logo-wrap {
    width: 145px;
    height: 145px;
  }

  .splash-gold-ring {
    width: 115px;
    height: 115px;
  }

  .splash-tagline {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #galaticoSplash *,
  #galaticoSplash::before {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


#homepageNav .homepage-nav-btn.active {
  color: #d4af37;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 10px;
}

#homepageNav .homepage-nav-btn.active span:first-child {
  transform: scale(1.05);
}

#homepageNav .homepage-nav-btn {
  border: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.ranking-trophies {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 8px;
  margin-bottom: 8px;
  margin-left: 70%;
  padding: 5px 12px;
  background: #5c4500;
  border: 1px solid #b8860b;
  border-radius: 20px;
  color: #ffd700;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}


.rankings-actions {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
}
.open-player-comparison-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  color: #78350f;
  background: linear-gradient(
    135deg,
    #fffbeb,
    #fef3c7
  );
  border: 1px solid #d4a72c;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(180, 130, 20, 0.1);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.open-player-comparison-button:hover {
  background: #fef3c7;
  box-shadow: 0 5px 14px rgba(180, 130, 20, 0.18);
}
.open-player-comparison-button:active {
  transform: scale(0.98);
}
@media (min-width: 500px) {
  .open-player-comparison-button {
    width: auto;
    min-width: 240px;
  }
}



.season-key-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.season-key-modal-content {
  width: 100%;
  max-width: 380px;
  padding: 22px;
  border-radius: 14px;
  background: #fff;
  color: #222;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}
.season-key-modal-content h3 {
  margin: 0 0 10px;
  font-size: 20px;
}
.season-key-modal-content p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}
#seasonKeyInput {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 16px;
}
#seasonKeyInput:focus {
  border-color: #b8860b;
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.15);
}
.season-key-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.season-key-modal-actions button {
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f5f5f5;
  color: #222;
  font-size: 14px;
  cursor: pointer;
}
.season-key-modal-actions button:last-child {
  border-color: #b8860b;
  background: #5c4500;
  color: #fff;
}
.season-key-modal-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}





.competition-branding {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
padding: 30px 12px 20px;
text-align: center;
background: radial-gradient(
ellipse at center,
rgba(184, 134, 11, 0.09) 0%,
transparent 70%
);
}

.competition-branding-content {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
position: relative;
z-index: 1;
}

.competition-logo-wrap {
width: 104px;
height: 104px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
margin-bottom: 14px;
}

.competition-gold-ring {
position: absolute;
inset: 0;
border: 1px solid rgba(212, 175, 55, 0.7);
border-radius: 50%;
box-shadow:
0 0 10px rgba(212, 175, 55, 0.18),
inset 0 0 10px rgba(212, 175, 55, 0.08);
animation: competitionRingPulse 3s ease-in-out infinite;
}

.competition-gold-ring::before {
content: “”;
position: absolute;
inset: 6px;
border: 1px solid rgba(212, 175, 55, 0.25);
border-radius: 50%;
}

.competition-brand-logo {
display: block;
width: 76px;
height: 76px;
object-fit: contain;
filter:
drop-shadow(0 0 6px rgba(255, 215, 0, 0.4))
drop-shadow(0 0 16px rgba(255, 190, 0, 0.22));
animation: competitionLogoPulse 3s ease-in-out infinite;
}

.competition-brand-name {
margin: 0;
color: #d4af37;
font-size: 25px;
font-weight: 900;
letter-spacing: 7px;
line-height: 1.3;
text-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.competition-brand-divider {
display: flex;
align-items: center;
justify-content: center;
gap: 9px;
width: 150px;
margin: 13px 0 10px;
}

.competition-brand-divider span {
flex: 1;
height: 1px;
background: linear-gradient(
90deg,
transparent,
rgba(212, 175, 55, 0.8)
);
}

.competition-brand-divider span:last-child {
background: linear-gradient(
90deg,
rgba(212, 175, 55, 0.8),
transparent
);
}

.competition-brand-divider div {
width: 6px;
height: 6px;
background: #d4af37;
transform: rotate(45deg);
box-shadow: 0 0 7px rgba(212, 175, 55, 0.5);
}

.competition-brand-subtitle {
margin: 0;
color: #b8860b;
font-size: 11px;
font-weight: 800;
letter-spacing: 6px;
}

.competition-brand-tagline {
margin: 14px 0 0;
color: #88816d;
font-size: 9px;
font-weight: 600;
letter-spacing: 1.8px;
line-height: 1.8;
}

.competition-brand-footer {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
margin-top: 25px;
padding-top: 12px;
border-top: 1px solid rgba(184, 134, 11, 0.18);
}

.competition-brand-footer span {
color: #8c7840;
font-size: 8px;
font-weight: 700;
letter-spacing: 3px;
}

@keyframes competitionLogoPulse {
0%, 100% {
filter:
drop-shadow(0 0 5px rgba(255, 215, 0, 0.3))
drop-shadow(0 0 12px rgba(255, 190, 0, 0.2));
transform: scale(1);
}

50% {
filter:
drop-shadow(0 0 9px rgba(255, 215, 0, 0.7))
drop-shadow(0 0 22px rgba(255, 190, 0, 0.4));
transform: scale(1.04);
}
}

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

50% {
opacity: 1;
transform: scale(1.035);
}
}

@media (max-width: 480px) {
.competition-branding {
padding: 24px 10px 16px;
}

.competition-logo-wrap {
width: 92px;
height: 92px;
}

.competition-brand-logo {
width: 68px;
height: 68px;
}

.competition-brand-name {
font-size: 23px;
letter-spacing: 6px;
}

.competition-brand-footer {
margin-top: 20px;
}
}

@media (prefers-reduced-motion: reduce) {
.competition-brand-logo,
.competition-gold-ring {
animation: none;
}
}


td.cup-direct-qualification {
  border-left: 5px solid #16a34a !important;
}
td.cup-playoff-qualification {
  border-left: 5px solid #2563eb !important;
}
td.cup-group-qualification {
  border-left: 5px solid #16a34a !important;
}
td.cup-eliminated {
  border-left: 5px solid #dc2626 !important;
}


.cup-qualification-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 8px;
  margin: 12px 0 16px;
  background: #fff;
  border: none;
  border-radius: 0;
  color: #111827;
  font-size: 12px;
  text-align: center;
}
.cup-legend-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #111827;
  white-space: nowrap;
}
.cup-legend-item span:last-child {
  color: #111827;
}
.cup-legend-marker {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 3px;
}
.cup-legend-marker.cup-direct-qualification,
.cup-legend-marker.cup-group-qualification {
  background: #16a34a;
}
.cup-legend-marker.cup-playoff-qualification {
  background: #2563eb;
}
.cup-legend-marker.cup-eliminated {
  background: #dc2626;
}

#seasonRegistrationApp {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;
  background: #f6f8fc;
  color: #172033;
  font-family: inherit;
  -webkit-overflow-scrolling: touch;
}
#seasonRegistrationApp[hidden] {
  display: none !important;
}
.sr-page {
  max-width: 760px;
  min-height: 100%;
  margin: 0 auto;
  padding: 0 18px 28px;
  box-sizing: border-box;
}
.sr-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 0 18px;
}
.sr-back {
  width: 42px;
  height: 42px;
  border: 1px solid #e1e6ef;
  border-radius: 13px;
  background: white;
  color: #172033;
  font-size: 30px;
  line-height: 1;
}
.sr-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
}
.sr-header p {
  margin: 4px 0 0;
  color: #7b8495;
  font-size: 12px;
}
.sr-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 23px 20px;
  border-radius: 20px;
  background: linear-gradient(125deg, #173a8a, #2563eb 68%, #087eaa);
  color: white;
  box-shadow: 0 10px 26px #2563eb24;
}
.sr-hero-content {
  min-width: 0;
}
.sr-eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  opacity: .8;
}
.sr-hero h2 {
  margin: 9px 0 7px;
  max-width: 340px;
  font-size: 25px;
  line-height: 1.15;
}
.sr-hero p {
  max-width: 350px;
  margin: 0;
  color: #e1eaff;
  font-size: 12px;
  line-height: 1.6;
}
.sr-hero-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sr-hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sr-tabs {
  display: flex;
  gap: 7px;
  margin: 21px 0 15px;
  padding: 5px;
  border: 1px solid #e8ebf2;
  border-radius: 13px;
  background: white;
}
.sr-tabs button {
  flex: 1;
  padding: 11px 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #697386;
  font-size: 12px;
  font-weight: 650;
}
.sr-tabs button.active {
  background: #eaf1ff;
  color: #2059c8;
}
.sr-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 25px;
}
.sr-summary-item {
  padding: 15px;
  border: 1px solid #e8ebf2;
  border-radius: 15px;
  background: white;
}
.sr-summary-item span,
.sr-fees span,
.sr-season-label span,
.sr-history-total span {
  display: block;
  color: #7b8495;
  font-size: 11px;
}
.sr-summary-item strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
}
.sr-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.sr-section-heading h2 {
  margin: 0;
  font-size: 17px;
}
.sr-section-heading p {
  margin: 5px 0 0;
  color: #7b8495;
  font-size: 11px;
  line-height: 1.5;
}
.sr-refresh {
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  border: 1px solid #e1e6ef;
  border-radius: 12px;
  background: white;
  color: #2563eb;
  font-size: 23px;
}
.sr-card {
  margin-bottom: 15px;
  padding: 18px;
  border: 1px solid #e6eaf1;
  border-radius: 17px;
  background: white;
  box-shadow: 0 4px 14px #14213b05;
}
.sr-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.sr-competition-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 13px;
  background: #eef4ff;
  font-size: 23px;
}
.sr-open-badge {
  padding: 6px 9px;
  border-radius: 20px;
  background: #e8f8ef;
  color: #18824b;
  font-size: 10px;
  font-weight: 700;
}
.sr-card h3 {
  margin: 14px 0 4px;
  font-size: 16px;
  line-height: 1.4;
}
.sr-season-name {
  margin: 0;
  color: #778195;
  font-size: 12px;
}
.sr-season-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 12px 0;
  border-top: 1px solid #eef0f5;
  border-bottom: 1px solid #eef0f5;
}
.sr-season-label strong {
  font-size: 13px;
}
.sr-spaces {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0 17px;
  color: #68758b;
  font-size: 11px;
}
.sr-spaces-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22b573;
}
.sr-fees {
  padding: 14px;
  border-radius: 12px;
  background: #f7f9fc;
}
.sr-fees > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sr-fees > div:last-child {
  margin-bottom: 0;
}
.sr-fees strong {
  font-size: 12px;
}
.sr-fees .sr-total {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px dashed #dce2ed;
}
.sr-fees .sr-total span {
  color: #29364d;
  font-weight: 700;
}
.sr-fees .sr-total strong {
  color: #2059c8;
  font-size: 18px;
}
.sr-register-btn,
.sr-primary-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 15px;
  padding: 14px;
  border: 0;
  border-radius: 11px;
  background: #2563eb;
  color: white;
  font-size: 13px;
  font-weight: 700;
}
.sr-register-btn span {
  font-size: 18px;
}
.sr-state {
  padding: 35px 20px;
  border: 1px solid #e8ebf2;
  border-radius: 17px;
  background: white;
  text-align: center;
}
.sr-empty-icon {
  font-size: 35px;
}
.sr-state h3 {
  margin: 12px 0 7px;
  font-size: 16px;
}
.sr-state p {
  margin: 0;
  color: #7b8495;
  font-size: 12px;
  line-height: 1.6;
}
.sr-state .sr-primary-btn {
  margin-top: 20px;
}
.sr-spinner {
  width: 26px;
  height: 26px;
  margin: 0 auto;
  border: 3px solid #dce7ff;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: srSpin .7s linear infinite;
}
@keyframes srSpin {
  to {
    transform: rotate(360deg);
  }
}
.sr-message {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
}
.sr-message-error {
  background: #fff0f0;
  color: #b42318;
}
.sr-message-info {
  background: #edf4ff;
  color: #2059c8;
}
.sr-history-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.sr-history-top h3 {
  margin: 0 0 5px;
}
.sr-history-top p {
  margin: 0;
  color: #7b8495;
  font-size: 12px;
}
.sr-status {
  flex-shrink: 0;
  padding: 6px 9px;
  border-radius: 20px;
  background: #fff4d8;
  color: #986400;
  font-size: 10px;
  font-weight: 700;
  text-transform: capitalize;
}
.sr-status-paid {
  background: #e8f8ef;
  color: #18824b;
}
.sr-status-rejected {
  background: #fff0f0;
  color: #b42318;
}
.sr-status-refunded {
  background: #f0eaff;
  color: #6941c6;
}
.sr-history-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid #eef0f5;
}
.sr-history-total strong {
  font-size: 16px;
}
.sr-rejection {
  margin: 12px 0 0;
  padding: 10px;
  border-radius: 9px;
  background: #fff0f0;
  color: #b42318;
  font-size: 12px;
}
.sr-footer {
  padding: 15px 0 5px;
  color: #929bad;
  font-size: 10px;
  text-align: center;
}
@media (min-width: 600px) {
  .sr-list:has(.sr-card:first-child) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
  }
  .sr-card {
    margin-bottom: 0;
  }
}
@media (max-width: 480px) {
  .sr-page {
    padding-right: 14px;
    padding-left: 14px;
  }
  .sr-hero h2 {
    font-size: 22px;
  }
}
.sr-season-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.sr-competition-name {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.sr-season-info h3 {
  margin: 3px 0 2px;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.sr-season-info > p:not(.sr-competition-name) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}
.sr-season-info > p:not(.sr-competition-name)::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
}
.sr-season-card {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sr-season-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}
@media (max-width: 480px) {
  .sr-season-card {
    padding: 16px;
    border-radius: 13px;
  }
  .sr-season-info h3 {
    font-size: 18px;
  }
  .sr-season-info > p:not(.sr-competition-name) {
    font-size: 12px;
  }
}

.sr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 22px;
  margin: 8px 0;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
}
.sr-empty::before {
  content: "🏆";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: #eff6ff;
  font-size: 29px;
}
.sr-empty h3 {
  margin: 0 0 9px;
  color: #111827;
  font-size: 19px;
  font-weight: 800;
}
.sr-empty p {
  max-width: 270px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}
.sr-empty button {
  margin-top: 22px;
  padding: 12px 22px;
  border: 0;
  border-radius: 9px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.sr-empty button:hover {
  background: #1d4ed8;
}
.sr-empty button:active {
  transform: scale(0.97);
}
@media (max-width: 480px) {
  .sr-empty {
    padding: 30px 16px;
  }
  .sr-empty h3 {
    font-size: 17px;
  }
  .sr-empty p {
    font-size: 13px;
  }
}

.sr-registered-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 12px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

#expensePreviewModal,
#expensePreviewModal * {
  box-sizing: border-box;
}
#expensePreviewModal {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
}
#expensePreviewModal .expense-preview-container {
  width: 100%;
  max-width: 520px;
  min-width: 0;
  max-height: 90%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  background: #fff;
  color: #222;
  border-radius: 14px;
  padding: 20px;
  margin: auto;
  flex: 0 1 520px;
}
#expensePreviewModal #expensePreviewForm {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
#expensePreviewModal label {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
#expensePreviewModal input,
#expensePreviewModal textarea,
#expensePreviewModal select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 6px 0 14px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: #222;
}
#expensePreviewModal textarea {
  resize: vertical;
}
#expensePreviewModal button {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  font: inherit;
  cursor: pointer;
}
#expensePreviewModal button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#expensePreviewModal .expense-preview-type {
  min-width: 0;
  max-width: 100%;
  background: #f3f4f6;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#expensePreviewModal .expense-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
#expensePreviewModal .expense-preview-actions button {
  flex: 1 1 120px;
  padding: 12px 8px;
  border-radius: 8px;
  white-space: normal;
}
#expensePreviewModal .expense-preview-cancel {
  border: 1px solid #ccc;
  background: #fff;
  color: #222;
}
#expensePreviewModal .expense-preview-review {
  border: 1px solid #2563eb;
  background: #fff;
  color: #2563eb;
  font-weight: 600;
}
#expensePreviewModal .expense-preview-submit {
  border: 0;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
}
#expensePreviewModal #expensePreviewReview,
#expensePreviewModal #expensePreviewReviewContent,
#expensePreviewModal #expensePreviewError {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 380px) {
  #expensePreviewModal {
    padding: 8px;
  }
  #expensePreviewModal .expense-preview-container {
    padding: 14px;
  }
  #expensePreviewModal .expense-preview-actions {
    gap: 8px;
  }
  #expensePreviewModal .expense-preview-actions button {
    flex-basis: 100%;
    width: 100%;
  }
}


#prizePreviewModal,
#prizePreviewModal * {
  box-sizing: border-box;
}
#prizePreviewModal {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
}
#prizePreviewModal .prize-preview-container {
  width: 100%;
  max-width: 520px;
  min-width: 0;
  max-height: 90%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  background: #fff;
  color: #222;
  border-radius: 14px;
  padding: 20px;
  margin: auto;
  flex: 0 1 520px;
}
#prizePreviewModal #prizePreviewForm {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
#prizePreviewModal label {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
#prizePreviewModal input,
#prizePreviewModal select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 6px 0 14px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: #222;
}
#prizePreviewModal select {
  text-overflow: ellipsis;
}
#prizePreviewModal button {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  font: inherit;
  cursor: pointer;
}
#prizePreviewModal button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#prizePreviewModal .prize-preview-type {
  min-width: 0;
  max-width: 100%;
  background: #f3f4f6;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#prizePreviewModal .prize-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
#prizePreviewModal .prize-preview-actions button {
  flex: 1 1 120px;
  padding: 12px 8px;
  border-radius: 8px;
}
#prizePreviewModal .prize-preview-cancel {
  border: 1px solid #ccc;
  background: #fff;
  color: #222;
}
#prizePreviewModal .prize-preview-review {
  border: 1px solid #2563eb;
  background: #fff;
  color: #2563eb;
  font-weight: 600;
}
#prizePreviewModal .prize-preview-submit {
  border: 0;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
}
#prizePreviewModal #prizePreviewReview,
#prizePreviewModal #prizePreviewReviewContent,
#prizePreviewModal #prizePreviewError {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 380px) {
  #prizePreviewModal {
    padding: 8px;
  }
  #prizePreviewModal .prize-preview-container {
    padding: 14px;
  }
  #prizePreviewModal .prize-preview-actions {
    gap: 8px;
  }
  #prizePreviewModal .prize-preview-actions button {
    flex-basis: 100%;
    width: 100%;
  }
}

.prize-preview-container {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  color: #111827;
}
.prize-preview-container h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.prize-preview-container h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 10px;
}
.prize-preview-container label {
  display: block;
  margin: 16px 0 7px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}
.prize-preview-container input,
.prize-preview-container select {
  display: block;
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.prize-preview-container input:focus,
.prize-preview-container select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.prize-preview-container input::placeholder {
  color: #9ca3af;
}
.prize-preview-type {
  margin: 18px 0;
  padding: 13px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  color: #4b5563;
  overflow-wrap: anywhere;
}
.prize-preview-type strong {
  display: block;
  margin-bottom: 5px;
  color: #111827;
}
.prize-preview-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 22px;
  width: 100%;
}
.prize-preview-actions button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 10px 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background 0.2s, opacity 0.2s;
}
.prize-preview-cancel {
  background: #f3f4f6;
  color: #374151;
  border-color: #e5e7eb !important;
}
.prize-preview-cancel:hover {
  background: #e5e7eb;
}
.prize-preview-review {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe !important;
}
.prize-preview-review:hover {
  background: #dbeafe;
}
.prize-preview-submit {
  background: #2563eb;
  color: #ffffff;
}
.prize-preview-submit:hover {
  background: #1d4ed8;
}
.prize-preview-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
@media (max-width: 480px) {
  .prize-preview-container {
    padding: 19px;
    border-radius: 13px;
  }
  .prize-preview-container h2 {
    font-size: 20px;
  }
  .prize-preview-actions {
    gap: 6px;
  }
  .prize-preview-actions button {
    flex: 1 1 0;
    padding: 10px 4px;
    font-size: 12px;
  }
}


.payment-history-section {
  position: fixed;
  inset: 0;
  
  z-index: 999;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 18px;
  color: #172033;
  background: #f8fafc;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  padding-bottom: 100px;
}

.payment-history-section[hidden] {
  display: none !important;
}

.payment-history-header {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 22px;
  box-sizing: border-box;
}

#paymentHistorySummary,
#paymentHistoryContent {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

#paymentHistorySummary {
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .payment-history-section {
    padding: 14px;
  }
}
.payment-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.payment-history-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.payment-history-header p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.payment-history-header button {
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #1e293b;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.payment-history-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.payment-history-stat {
  padding: 16px;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
}
.payment-history-stat span {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 8px;
}
.payment-history-stat strong {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.payment-history-group {
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 15px;
  overflow: hidden;
}
.payment-history-group-header {
  padding: 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e5eaf2;
}
.payment-history-group-header h3 {
  margin: 0 0 5px;
  font-size: 16px;
}
.payment-history-group-header p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}
.payment-history-group-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5eaf2;
}
.payment-history-group-summary div {
  font-size: 12px;
  color: #64748b;
}
.payment-history-group-summary strong {
  display: block;
  margin-top: 5px;
  color: #172033;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.payment-history-list {
  display: flex;
  flex-direction: column;
}
.payment-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid #eef2f7;
}
.payment-history-item:last-child {
  border-bottom: none;
}
.payment-history-player {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.payment-history-date {
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
}
.payment-history-amount {
  text-align: right;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.payment-history-status {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: capitalize;
}
.payment-history-status.paid {
  background: #dcfce7;
  color: #166534;
}
.payment-history-status.pending,
.payment-history-status.submitted {
  background: #fef3c7;
  color: #92400e;
}
.payment-history-status.rejected {
  background: #fee2e2;
  color: #991b1b;
}
.payment-history-status.refunded {
  background: #dbeafe;
  color: #1d4ed8;
}
.payment-history-status.unknown {
  background: #e2e8f0;
  color: #334155;
}
.payment-history-empty {
  padding: 30px 18px;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #64748b;
  font-size: 13px;
}
@media (min-width: 700px) {
  .payment-history-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .payment-history-group-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

.payment-history-close {
  background: #fff;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.payment-history-close:hover {
  background: #fef2f2;
}

@media (max-width: 480px) {
  .payment-history-header {
    align-items: flex-start;
  }
  
  .payment-history-actions {
    flex-direction: column;
    align-items: stretch;
  }
}



#paymentHistorySection .financial-navigation {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  margin: 20px 0 24px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
#paymentHistorySection .financial-navigation::-webkit-scrollbar {
  display: none;
}
#paymentHistorySection .financial-nav-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
#paymentHistorySection .financial-nav-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
#paymentHistorySection .financial-nav-btn.active {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.07);
}
#paymentHistorySection .financial-nav-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
#paymentHistorySection .financial-tab-content {
  width: 100%;
  min-width: 0;
}
#paymentHistorySection .financial-tab-content[hidden] {
  display: none !important;
}
#paymentHistorySection .financial-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-sizing: border-box;
}
#paymentHistorySection .financial-section-heading > div:first-child {
  min-width: 0;
}
#paymentHistorySection .financial-section-heading h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}
#paymentHistorySection .financial-section-heading p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}
#paymentHistorySection .financial-section-heading > button,
#paymentHistorySection #createTournamentExpenseBtn,
#paymentHistorySection #createGeneralExpenseBtn,
#paymentHistorySection #createPrizeBtn {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #1d4ed8;
  border-radius: 9px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
#paymentHistorySection .financial-section-heading > button:hover,
#paymentHistorySection #createTournamentExpenseBtn:hover,
#paymentHistorySection #createGeneralExpenseBtn:hover,
#paymentHistorySection #createPrizeBtn:hover {
  background: #1d4ed8;
}
#paymentHistorySection .financial-section-heading button[hidden] {
  display: none !important;
}
#paymentHistorySection .payment-history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}
#paymentHistorySection .payment-history-stat {
  min-width: 0;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.025);
  box-sizing: border-box;
}
#paymentHistorySection .payment-history-stat-label {
  margin-bottom: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
#paymentHistorySection .payment-history-stat-value {
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.3;
}
#paymentHistorySection .payment-history-stat-description {
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#paymentHistorySection .payment-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
#paymentHistorySection .payment-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#paymentHistorySection .payment-history-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}
#paymentHistorySection .payment-history-item-main {
  flex: 1;
  min-width: 0;
}
#paymentHistorySection .payment-history-item-title {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#paymentHistorySection .payment-history-item-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}
#paymentHistorySection .payment-history-item-details span {
  overflow-wrap: anywhere;
}
#paymentHistorySection .payment-history-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  max-width: 45%;
}
#paymentHistorySection .payment-history-item-amount {
  color: #0f172a;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-align: right;
}
#paymentHistorySection .payment-history-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: capitalize;
}
#paymentHistorySection .payment-history-status.pending {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}
#paymentHistorySection .payment-history-status.approved {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
#paymentHistorySection .payment-history-status.paid {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
#paymentHistorySection .payment-history-status.rejected,
#paymentHistorySection .payment-history-status.cancelled {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
#paymentHistorySection .payment-history-status.unknown {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}
#paymentHistorySection .financial-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
#paymentHistorySection .financial-approve-btn,
#paymentHistorySection .financial-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
#paymentHistorySection .financial-approve-btn {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
#paymentHistorySection .financial-approve-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}
#paymentHistorySection .financial-pay-btn {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
#paymentHistorySection .financial-pay-btn:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}
#paymentHistorySection .payment-history-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 28px 20px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  box-sizing: border-box;
}
#paymentHistorySection #paymentHistoryContent,
#paymentHistorySection #financialPrizeContent,
#paymentHistorySection #financialExpenseContent,
#paymentHistorySection #financialOverviewContent {
  min-width: 0;
  width: 100%;
}
@media (max-width: 900px) {
  #paymentHistorySection .payment-history-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #paymentHistorySection .payment-history-stat {
    padding: 18px;
  }
}
@media (max-width: 600px) {
  #paymentHistorySection .financial-navigation {
    gap: 6px;
    padding: 7px;
    margin: 16px 0 20px;
    border-radius: 12px;
  }
  #paymentHistorySection .financial-nav-btn {
    min-height: 62px;
    padding: 18px 20px;
    font-size: 13px;
  }
  #paymentHistorySection .financial-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
  }
  #paymentHistorySection .financial-section-heading h3 {
    font-size: 18px;
  }
  #paymentHistorySection .financial-section-heading > button,
  #paymentHistorySection #createTournamentExpenseBtn,
  #paymentHistorySection #createGeneralExpenseBtn,
  #paymentHistorySection #createPrizeBtn {
    width: 100%;
    min-height: 46px;
  }
  #paymentHistorySection .financial-section-heading .payment-history-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  #paymentHistorySection .payment-history-summary {
    gap: 10px;
    margin-bottom: 18px;
  }
  #paymentHistorySection .payment-history-stat {
    padding: 15px;
    border-radius: 12px;
  }
  #paymentHistorySection .payment-history-stat-label {
    margin-bottom: 10px;
    font-size: 11px;
  }
  #paymentHistorySection .payment-history-stat-value {
    font-size: 19px;
  }
  #paymentHistorySection .payment-history-stat-description {
    font-size: 11px;
  }
  #paymentHistorySection .payment-history-list {
    gap: 10px;
  }
  #paymentHistorySection .payment-history-item {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 17px;
    border-radius: 12px;
  }
  #paymentHistorySection .payment-history-item-title {
    font-size: 15px;
  }
  #paymentHistorySection .payment-history-item-details {
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
  }
  #paymentHistorySection .payment-history-item-side {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
  }
  #paymentHistorySection .payment-history-item-amount {
    font-size: 17px;
    text-align: left;
  }
  #paymentHistorySection .financial-action-buttons {
    gap: 8px;
  }
  #paymentHistorySection .financial-approve-btn,
  #paymentHistorySection .financial-pay-btn {
    min-height: 42px;
    padding: 11px 14px;
  }
  #paymentHistorySection .payment-history-empty {
    min-height: 130px;
    padding: 22px 16px;
    font-size: 13px;
  }
}


#paymentHistorySection .financial-navigation {
  position: relative;
  z-index: 10;
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  gap: 5px;
  width: 100%;
  min-height: 56px;
  padding: 5px;
  margin: 20px 0;
  box-sizing: border-box;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#paymentHistorySection .financial-navigation::-webkit-scrollbar {
  display: none;
}
#paymentHistorySection .financial-nav-btn {
  position: relative;
  z-index: 11;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
#paymentHistorySection .financial-nav-btn.active {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
#paymentHistorySection .financial-nav-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.payment-history-section {
  padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
  scroll-padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.payment-history-section::after {
  content: "";
  display: block;
  flex: 0 0 20px;
  min-height: 20px;
}

@media (max-width: 600px) {
  .payment-history-section {
    padding-bottom: calc(140px + env(safe-area-inset-bottom)) !important;
  }
}


#paymentHistorySection #financialOverviewContent {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}
#paymentHistorySection .financial-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
#paymentHistorySection .financial-overview-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 145px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.025);
}
#paymentHistorySection .financial-overview-card > span {
  margin-bottom: 14px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
#paymentHistorySection .financial-overview-card > strong {
  max-width: 100%;
  color: #0f172a;
  font-size: 23px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#paymentHistorySection .financial-overview-card > strong.positive {
  color: #047857;
}
#paymentHistorySection .financial-overview-card > strong.negative {
  color: #dc2626;
}
#paymentHistorySection .financial-overview-card > small {
  margin-top: 10px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.6;
}
#paymentHistorySection .financial-breakdown {
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.025);
}
#paymentHistorySection .financial-breakdown h3 {
  margin: 0;
  padding: 18px 20px;
  color: #0f172a;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
#paymentHistorySection .financial-breakdown-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid #f1f5f9;
  box-sizing: border-box;
}
#paymentHistorySection .financial-breakdown-row:last-child {
  border-bottom: none;
}
#paymentHistorySection .financial-breakdown-row > span {
  min-width: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#paymentHistorySection .financial-breakdown-row > strong {
  flex: 0 0 auto;
  max-width: 55%;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-align: right;
  overflow-wrap: anywhere;
}
@media (min-width: 700px) {
  #paymentHistorySection .financial-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #paymentHistorySection .financial-overview-card {
    padding: 18px;
  }
  #paymentHistorySection .financial-overview-card > strong {
    font-size: 21px;
  }
}
@media (max-width: 600px) {
  #paymentHistorySection #financialOverviewContent {
    gap: 16px;
  }
  #paymentHistorySection .financial-overview-grid {
    gap: 10px;
  }
  #paymentHistorySection .financial-overview-card {
    min-height: 132px;
    padding: 15px;
    border-radius: 12px;
  }
  #paymentHistorySection .financial-overview-card > span {
    margin-bottom: 12px;
    font-size: 11px;
  }
  #paymentHistorySection .financial-overview-card > strong {
    font-size: 19px;
  }
  #paymentHistorySection .financial-overview-card > small {
    margin-top: 8px;
    font-size: 10px;
  }
  #paymentHistorySection .financial-breakdown {
    border-radius: 12px;
  }
  #paymentHistorySection .financial-breakdown h3 {
    padding: 16px;
    font-size: 14px;
  }
  #paymentHistorySection .financial-breakdown-row {
    gap: 12px;
    padding: 14px 16px;
  }
  #paymentHistorySection .financial-breakdown-row > span {
    font-size: 12px;
  }
  #paymentHistorySection .financial-breakdown-row > strong {
    font-size: 12px;
  }
}


#paymentHistorySection .payment-history-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}

#paymentHistorySection .payment-history-group-header h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#paymentHistorySection .payment-history-group-header p {
  flex: 0 0 auto;
  margin: 2px 0 0;
  padding: 5px 9px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

#paymentHistorySection .payment-history-group-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 16px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

#paymentHistorySection .payment-history-group-summary>div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
  padding: 0 12px;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#paymentHistorySection .payment-history-group-summary>div:first-child {
  padding-left: 0;
}

#paymentHistorySection .payment-history-group-summary>div:last-child {
  padding-right: 0;
}

#paymentHistorySection .payment-history-group-summary strong {
  display: block;
  max-width: 100%;
  color: #0f172a;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#paymentHistorySection .payment-history-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

#paymentHistorySection .payment-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 16px 20px;
  box-sizing: border-box;
  border-bottom: 1px solid #f1f5f9;
}

#paymentHistorySection .payment-history-item:last-child {
  border-bottom: none;
}

#paymentHistorySection .payment-history-item>div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

#paymentHistorySection .payment-history-player {
  max-width: 100%;
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#paymentHistorySection .payment-history-date {
  max-width: 100%;
  margin: 0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#paymentHistorySection .payment-history-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}

#paymentHistorySection .payment-history-status.paid {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

#paymentHistorySection .payment-history-status.pending,
#paymentHistorySection .payment-history-status.submitted {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

#paymentHistorySection .payment-history-status.rejected {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

#paymentHistorySection .payment-history-status.refunded {
  color: #6d28d9;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

#paymentHistorySection .payment-history-status.unknown {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

#paymentHistorySection .payment-history-amount {
  align-self: center;
  min-width: 0;
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 600px) {
  #paymentHistorySection .payment-history-group-header {
    gap: 8px;
    padding: 15px;
  }
  
  #paymentHistorySection .payment-history-group-header h3 {
    font-size: 14px;
  }
  
  #paymentHistorySection .payment-history-group-header p {
    padding: 4px 7px;
    font-size: 10px;
  }
  
  #paymentHistorySection .payment-history-group-summary {
    padding: 14px 12px;
  }
  
  #paymentHistorySection .payment-history-group-summary>div {
    gap: 6px;
    padding: 0 8px;
    font-size: 10px;
  }
  
  #paymentHistorySection .payment-history-group-summary strong {
    font-size: 12px;
  }
  
  #paymentHistorySection .payment-history-item {
    gap: 10px;
    padding: 15px;
  }
  
  #paymentHistorySection .payment-history-player {
    font-size: 12px;
  }
  
  #paymentHistorySection .payment-history-date {
    font-size: 10px;
  }
  
  #paymentHistorySection .payment-history-status {
    padding: 4px 7px;
    font-size: 9px;
  }
  
  #paymentHistorySection .payment-history-amount {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  #paymentHistorySection .payment-history-group-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  #paymentHistorySection .payment-history-group-summary {
    padding: 12px 8px;
  }
  
  #paymentHistorySection .payment-history-group-summary>div {
    padding: 0 6px;
    font-size: 9px;
  }
  
  #paymentHistorySection .payment-history-group-summary strong {
    font-size: 11px;
  }
  
  #paymentHistorySection .payment-history-item {
    padding: 13px 12px;
  }
  
  #paymentHistorySection .payment-history-amount {
    font-size: 11px;
  }
}

#paymentHistorySection #financialPrizeContent,
#paymentHistorySection #financialExpenseContent {
  width: 100%;
  min-width: 0;
}

#paymentHistorySection #financialPrizeContent .payment-history-list,
#paymentHistorySection #financialExpenseContent .payment-history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

#paymentHistorySection #financialPrizeContent .payment-history-item,
#paymentHistorySection #financialExpenseContent .payment-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding: 18px 20px;
  box-sizing: border-box;
}

#paymentHistorySection .payment-history-item-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

#paymentHistorySection .payment-history-item-title {
  width: 100%;
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#paymentHistorySection .payment-history-item-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

#paymentHistorySection .payment-history-item-details > span {
  display: block;
  max-width: 100%;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#paymentHistorySection .payment-history-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  max-width: 150px;
}

#paymentHistorySection .payment-history-item-amount {
  max-width: 100%;
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
  text-align: right;
  overflow-wrap: anywhere;
}

#paymentHistorySection .payment-history-item-side .payment-history-status {
  align-self: flex-end;
  margin: 0;
}

#paymentHistorySection .financial-action-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

#paymentHistorySection .financial-action-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

#paymentHistorySection .financial-approve-btn {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
}

#paymentHistorySection .financial-pay-btn {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

#paymentHistorySection .financial-approve-btn:hover {
  background: #fef3c7;
}

#paymentHistorySection .financial-pay-btn:hover {
  background: #d1fae5;
}

#paymentHistorySection .payment-history-status.approved {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

#paymentHistorySection .payment-history-status.cancelled {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

#paymentHistorySection .payment-history-status.rejected {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

#paymentHistorySection .payment-history-status.paid {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

#paymentHistorySection .payment-history-status.pending {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

#paymentHistorySection .payment-history-status.unknown {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

#paymentHistorySection .financial-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

#paymentHistorySection .financial-overview-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 17px;
  box-sizing: border-box;
}

#paymentHistorySection .financial-overview-card > span {
  margin: 0;
  line-height: 1.6;
}

#paymentHistorySection .financial-overview-card > strong {
  max-width: 100%;
  font-size: 20px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#paymentHistorySection .financial-overview-card > small {
  margin: 0;
  line-height: 1.6;
}

#paymentHistorySection .financial-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
}

#paymentHistorySection .financial-breakdown-row > span {
  min-width: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#paymentHistorySection .financial-breakdown-row > strong {
  max-width: 180px;
  line-height: 1.6;
  text-align: right;
  overflow-wrap: anywhere;
}

@media (min-width: 700px) {
  #paymentHistorySection .financial-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #paymentHistorySection #financialPrizeContent .payment-history-item,
  #paymentHistorySection #financialExpenseContent .payment-history-item {
    gap: 10px;
    padding: 16px 14px;
  }

  #paymentHistorySection .payment-history-item-main {
    gap: 8px;
  }

  #paymentHistorySection .payment-history-item-title {
    font-size: 13px;
  }

  #paymentHistorySection .payment-history-item-details > span {
    font-size: 11px;
  }

  #paymentHistorySection .payment-history-item-side {
    max-width: 120px;
    gap: 8px;
  }

  #paymentHistorySection .payment-history-item-amount {
    font-size: 13px;
  }

  #paymentHistorySection .financial-action-buttons button {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 10px;
  }

  #paymentHistorySection .financial-overview-grid {
    gap: 10px;
  }

  #paymentHistorySection .financial-overview-card {
    gap: 9px;
    padding: 14px;
  }

  #paymentHistorySection .financial-overview-card > strong {
    font-size: 17px;
  }

  #paymentHistorySection .financial-breakdown-row {
    gap: 12px;
    padding: 14px 15px;
  }

  #paymentHistorySection .financial-breakdown-row > strong {
    max-width: 140px;
  }
}

@media (max-width: 360px) {
  #paymentHistorySection #financialPrizeContent .payment-history-item,
  #paymentHistorySection #financialExpenseContent .payment-history-item {
    gap: 8px;
    padding: 14px 10px;
  }

  #paymentHistorySection .payment-history-item-title {
    font-size: 12px;
  }

  #paymentHistorySection .payment-history-item-details > span {
    font-size: 10px;
  }

  #paymentHistorySection .payment-history-item-side {
    max-width: 105px;
  }

  #paymentHistorySection .payment-history-item-amount {
    font-size: 12px;
  }

  #paymentHistorySection .financial-overview-card {
    padding: 12px;
  }

  #paymentHistorySection .financial-overview-card > strong {
    font-size: 15px;
  }
}

#paymentHistorySection .financial-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--header-height, 70px) + 12px) 12px calc(var(--bottom-nav-height, 70px) + 12px);
  background: rgba(15, 23, 42, 0.55);
  overflow: hidden;
  box-sizing: border-box;
}

#paymentHistorySection .financial-modal[hidden] {
  display: none !important;
}

#paymentHistorySection .financial-modal-content {
  width: 100%;
  max-width: 460px;
  max-height: 100%;
  min-height: 0;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

#paymentHistorySection #financialContributionForm {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#paymentHistorySection #financialContributionForm label {
  margin-top: 5px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

#paymentHistorySection #financialContributionForm input,
#paymentHistorySection #financialContributionForm select,
#paymentHistorySection #financialContributionForm textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  outline: none;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
}

#paymentHistorySection #financialContributionForm textarea {
  min-height: 58px;
  max-height: 90px;
  resize: vertical;
}

#paymentHistorySection #financialContributionForm .financial-modal-actions {
  position: sticky;
  bottom: -16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 12px -16px -16px;
  padding: 12px 16px 16px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

#paymentHistorySection #financialContributionForm .financial-modal-actions button {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#paymentHistorySection #financialContributionForm #submitFinancialContributionBtn {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

@media (max-height: 700px) {
  #paymentHistorySection .financial-modal {
    padding-top: calc(var(--header-height, 60px) + 6px);
    padding-bottom: calc(var(--bottom-nav-height, 60px) + 6px);
  }
  
  #paymentHistorySection .financial-modal-content {
    padding: 12px;
  }
  
  #paymentHistorySection #financialContributionForm {
    gap: 4px;
  }
  
  #paymentHistorySection #financialContributionForm label {
    margin-top: 3px;
  }
  
  #paymentHistorySection #financialContributionForm input,
  #paymentHistorySection #financialContributionForm select {
    min-height: 34px;
    padding: 6px 9px;
  }
  
  #paymentHistorySection #financialContributionForm textarea {
    min-height: 45px;
  }
  
  #paymentHistorySection #financialContributionForm .financial-modal-actions {
    bottom: -12px;
    margin: 8px -12px -12px;
    padding: 9px 12px 12px;
  }
}

#paymentHistorySection #financialContributionSummary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  box-sizing: border-box;
}

#paymentHistorySection #financialContributionSummary .payment-history-summary-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 125px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.035);
  box-sizing: border-box;
}

#paymentHistorySection #financialContributionSummary .payment-history-summary-card>span {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#paymentHistorySection #financialContributionSummary .payment-history-summary-card>strong {
  display: block;
  max-width: 100%;
  margin: auto 0 0;
  color: #0f172a;
  font-size: clamp(16px, 4vw, 21px);
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#paymentHistorySection #financialContributionSummary .payment-history-summary-card>small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#paymentHistorySection #financialContributionSummary .payment-history-summary-card:nth-child(1) {
  border-top: 3px solid #2563eb;
}

#paymentHistorySection #financialContributionSummary .payment-history-summary-card:nth-child(2) {
  border-top: 3px solid #0891b2;
}

#paymentHistorySection #financialContributionSummary .payment-history-summary-card:nth-child(3) {
  border-top: 3px solid #059669;
}

@media (min-width: 700px) {
  #paymentHistorySection #financialContributionSummary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  #paymentHistorySection #financialContributionSummary {
    gap: 9px;
    margin-bottom: 18px;
  }
  
  #paymentHistorySection #financialContributionSummary .payment-history-summary-card {
    min-height: 112px;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
  }
  
  #paymentHistorySection #financialContributionSummary .payment-history-summary-card>span {
    font-size: 11px;
  }
  
  #paymentHistorySection #financialContributionSummary .payment-history-summary-card>strong {
    font-size: 15px;
  }
  
  #paymentHistorySection #financialContributionSummary .payment-history-summary-card>small {
    font-size: 10px;
  }
}

@media (max-width: 320px) {
  #paymentHistorySection #financialContributionSummary {
    grid-template-columns: minmax(0, 1fr);
  }
  
  #paymentHistorySection #financialContributionSummary .payment-history-summary-card {
    min-height: 95px;
  }
}

.financial-record-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.financial-record-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 5px 16px rgba(37, 99, 235, 0.08);
}
.financial-record-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid #f1f5f9;
}
.financial-record-main > div {
  min-width: 0;
}
.financial-record-main h4 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.financial-record-main > strong {
  flex-shrink: 0;
  color: #15803d;
  font-size: 16px;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}
.financial-record-type {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 20px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.financial-record-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 13px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}
.financial-record-details span {
  overflow-wrap: anywhere;
}
.financial-record-details p {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  overflow-wrap: anywhere;
}
.payment-history-summary-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}
.payment-history-summary-card > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.payment-history-summary-card > strong {
  color: #15803d;
  font-size: 20px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.payment-history-summary-card > small {
  color: #94a3b8;
  font-size: 11px;
}
#financialContributionSummary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
#financialContributionSummary .payment-history-summary-card:last-child {
  grid-column: 1 / -1;
  background: #eff6ff;
  border-color: #bfdbfe;
}
#financialContributionSummary .payment-history-summary-card:last-child > strong {
  color: #1d4ed8;
}
.payment-history-empty {
  padding: 24px 16px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 360px) {
  .financial-record-card {
    padding: 13px;
  }
  .financial-record-main {
    gap: 8px;
  }
  .financial-record-main h4 {
    font-size: 14px;
  }
  .financial-record-main > strong {
    font-size: 14px;
  }
  #financialContributionSummary {
    gap: 8px;
  }
  .payment-history-summary-card {
    padding: 12px;
  }
  .payment-history-summary-card > strong {
    font-size: 17px;
  }
}


.profile-modal-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid #e5e5e5;
  flex-shrink: 0;
  background: #fff;
}
.profile-modal-page-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #1a1a1a;
  font-size: 19px;
  font-weight: 700;
  text-align: left;
  line-height: 1.2;
}
.profile-modal-page-header-spacer {
  display: none;
}
.profile-modal-page-header .profile-page-update-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 34px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid #d4af37;
  border-radius: 8px;
  background: #111827;
  color: #f5d778;
  -webkit-text-fill-color: #f5d778;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.profile-modal-page-header .profile-page-update-profile-btn:active {
  transform: scale(0.97);
}
.profile-page-bank-section {
  width: 100%;
  margin: 16px 0 22px;
  padding: 16px;
  border: 1px solid #e8d9a5;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #fffcf2 100%);
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.045);
}
.profile-page-bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 13px;
  margin-bottom: 4px;
  border-bottom: 1px solid #eee5ca;
}
.profile-page-bank-header h4 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
}
#profileBankStatus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: 20px;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.profile-page-bank-details {
  display: flex;
  flex-direction: column;
}
.profile-page-bank-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid #f0ead9;
}
.profile-page-bank-row:last-child {
  padding-bottom: 5px;
  border-bottom: none;
}
.profile-page-bank-row > span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.profile-page-bank-row > strong {
  max-width: 100%;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#profileBankMessage {
  margin: 12px 0 0;
  padding: 10px 11px;
  border-radius: 8px;
  background: #f8f5e9;
  color: #75602b;
  font-size: 11px;
  line-height: 1.6;
}
@media (max-width: 380px) {
  .profile-modal-page-header {
    gap: 8px;
    padding: 0 12px;
  }
  .profile-modal-page-title {
    font-size: 17px;
  }
  .profile-modal-page-header .profile-page-update-profile-btn {
    min-height: 32px;
    padding: 0 9px;
    font-size: 10px;
  }
  .profile-page-bank-section {
    padding: 13px;
  }
  .profile-page-bank-header h4 {
    font-size: 14px;
  }
  .profile-page-bank-row > strong {
    font-size: 13px;
  }
}


.financial-prize-bank-details {
  margin-top: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.financial-prize-bank-heading {
  margin-bottom: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}
.financial-prize-bank-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 5px 0;
  font-size: 12px;
}
.financial-prize-bank-row > span {
  flex-shrink: 0;
  color: #64748b;
}
.financial-prize-bank-row > strong {
  flex: 1;
  min-width: 0;
  color: #111827;
  text-align: right;
  overflow-wrap: anywhere;
}
.financial-prize-account-copy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.financial-prize-account-copy > strong {
  flex: 1;
  min-width: 0;
  color: #111827;
  text-align: right;
  overflow-wrap: anywhere;
}
.financial-prize-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.financial-prize-copy-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.financial-prize-copy-btn:active {
  background: #f1f5f9;
  transform: scale(0.95);
}
.financial-prize-copy-btn.copied {
  color: #15803d;
  border-color: #86efac;
  background: #f0fdf4;
}

.financial-prize-bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  font-size: 12px;
}
.financial-prize-bank-row > span {
  flex-shrink: 0;
  color: #64748b;
}
.financial-prize-account-copy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.financial-prize-account-copy > strong {
  flex: 1;
  min-width: 0;
  color: #111827;
  text-align: right;
  overflow-wrap: anywhere;
}



