.tctt-competition-empty {
  padding: 14px 16px;
  border: 1px solid var(--e-global-color-secondary);
  border-radius: 10px;
  color: var(--e-global-color-text);
  background: var(--e-global-color-primary);
}

.tctt-competition-register-shell {
  border: 1px solid var(--e-global-color-secondary);
  border-radius: 14px;
  background: rgb(0, 0, 0);
  color: var(--e-global-color-text);
  padding: 18px;
}

.tctt-competition-register-details {
  margin-bottom: 14px;
}

.tctt-register-details-title {
  margin: 0 0 10px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 2rem;
  color: #fff;
  font-family: var(--e-global-typography-primary-font-family);
}

.tctt-competition-form {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 14px;
}

.tctt-competition-form label {
  display: block;
  color: var(--e-global-color-text);
  font-size: 1.6rem;
  font-family: var(--e-global-typography-primary-font-family);
  font-weight: 700;
  margin: 0 0 6px;
}

.tctt-competition-form input[type="text"],
.tctt-competition-form input[type="email"] {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: rgb(23, 23, 23);
  color: var(--e-global-color-text) !important;
  -webkit-text-fill-color: var(--e-global-color-text);
  padding: 16px 18px;
  margin: 0 0 16px;
  font-size: 1.8rem;
  caret-color: var(--e-global-color-text);
}

.tctt-competition-form input::placeholder {
  color: var(--e-global-color-text);
  opacity: 0.7;
  text-transform: lowercase;
}

.tctt-competition-form input:-webkit-autofill,
.tctt-competition-form input:-webkit-autofill:hover,
.tctt-competition-form input:-webkit-autofill:focus,
.tctt-competition-form input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--e-global-color-text) !important;
  box-shadow: 0 0 0px 1000px rgb(23, 23, 23) inset !important;
  transition: background-color 9999s ease-out 0s;
}

.tctt-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.tctt-competition-submit-wrap {
  margin-top: 0;
}

.tctt-competition-wrapper .tctt-competition-submit-wrap {
  margin-top: 0;
}

.tctt-competition-submit {
  width: 100%;
  display: block;
  background: var(--e-global-color-secondary);
  color: var(--e-global-color-text);
  padding: 1.15rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: var(--e-global-typography-primary-font-family);
}

.tctt-competition-submit:hover {
  background: #00b67a;
}

.tctt-competition-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.tctt-competition-details-card {
  border-radius: 12px;
  background: rgb(14, 14, 14);
  color: var(--e-global-color-text);
  padding: 18px;
  margin-bottom: 16px;
}

.tctt-competition-details-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tctt-competition-details-title {
  margin: 0;
  color: var(--e-global-color-text);
  font-family: var(--e-global-typography-primary-font-family);
}

.tctt-competition-state-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--e-global-typography-secondary-font-family);
}

.tctt-state-live {
  background: var(--e-global-color-secondary);
  color: var(--e-global-color-text);
}

.tctt-state-upcoming,
.tctt-state-ended {
  border: 1px solid var(--e-global-color-secondary);
  color: var(--e-global-color-text);
}

.tctt-competition-countdown-grid {
  margin-top: 14px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 14px;
  background: rgb(25, 25, 25);
}

.tctt-time-box {
  text-align: center;
}

.tctt-time-value {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: var(--e-global-color-secondary);
  font-family: var(--e-global-typography-primary-font-family);
}

.tctt-time-label {
  display: block;
  margin-top: 6px;
  color: var(--e-global-color-text);
  opacity: 0.8;
  font-family: var(--e-global-typography-secondary-font-family);
}

.tctt-time-sep {
  font-size: 2rem;
  font-weight: 700;
  color: var(--e-global-color-text);
  opacity: 0.8;
}

.tctt-competition-details-meta {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.tctt-competition-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.tctt-meta-label {
  color: var(--e-global-color-text);
  opacity: 0.8;
}

.tctt-meta-value {
  color: var(--e-global-color-text);
  font-weight: 700;
}

.tctt-competition-leaderboard-wrapper {
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  color: var(--e-global-color-text);
  padding: 18px;
}

.tctt-lb-header {
  text-align: center;
  margin-bottom: 12px;
}

.tctt-lb-title {
  margin: 0;
  font-family: var(--e-global-typography-primary-font-family);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--e-global-color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.035em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tctt-lb-subtitle {
  margin: 6px 0 0;
  opacity: 0.8;
  font-size: 1.4rem;
}

.tctt-lb-refresh-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--e-global-color-text);
  cursor: pointer;
  padding: 0;
}

.tctt-lb-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.tctt-lb-refresh-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.tctt-lb-updated {
  margin: 8px 0 0;
  opacity: 0.75;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tctt-lb-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--e-global-color-secondary);
  position: relative;
  display: inline-block;
}

.tctt-lb-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--e-global-color-secondary);
  opacity: 0.8;
  animation: tctt-lb-pulse-ring 1.8s ease-out infinite;
}

.tctt-lb-refreshing .tctt-lb-refresh-btn i {
  animation: tctt-lb-spin 0.9s linear infinite;
}

.tctt-lb-refreshing .tctt-competition-table-wrapper {
  opacity: 0.75;
}

@keyframes tctt-lb-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes tctt-lb-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  80% {
    transform: scale(2.1);
    opacity: 0;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

.tctt-lb-top3 {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  gap: 12px;
  margin-bottom: 14px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
}

.tctt-lb-top3-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  background:
    radial-gradient(120% 120% at 50% -20%, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 58%),
    rgba(0, 0, 0, 0.28);
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 20px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.tctt-lb-top3-first {
  border-color: var(--e-global-color-secondary);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 0 34px rgba(201, 173, 134, 0.36),
    0 0 56px rgba(201, 173, 134, 0.18);
  min-height: 198px;
  padding: 20px 16px;
}

.tctt-lb-top3-second {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(192, 192, 192, 0.14);
}

.tctt-lb-top3-third {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(205, 127, 50, 0.14);
}

.tctt-lb-top-rank {
  margin-bottom: 4px;
  font-size: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tctt-lb-top-rank i {
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.tctt-lb-top-name {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 1.8rem;
}

.tctt-lb-top-return {
  font-size: 4.2rem;
  font-weight: 700;
  color: var(--e-global-color-secondary);
  line-height: 1;
  letter-spacing: 0.01em;
}

.tctt-lb-top3-first .tctt-lb-top-return {
  font-size: 5.4rem;
}

.tctt-lb-top-balance {
  margin-top: 6px;
  opacity: 0.8;
  font-size: 1.4rem;
}

.tctt-lb-search-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.tctt-lb-search-input {
  width: 320px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--e-global-color-text);
  padding: 8px 10px;
}

.tctt-competition-table-wrapper {
  padding: 0;
}

table.tctt-competition-table {
  margin-top: 0 !important;
  border-collapse: collapse !important;
  width: 100%;
  color: var(--e-global-color-text);
  background: transparent !important;
  border: 0 !important;
}

table.tctt-competition-table th,
table.tctt-competition-table td {
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
}

table.tctt-competition-table thead th {
  background: transparent;
  color: var(--e-global-color-text);
  border-bottom: 0;
  font-weight: 700 !important;
  padding: 12px 14px;
  text-transform: uppercase;
  font-size: 1.3rem;
  opacity: 0.9;
  vertical-align: middle;
  text-align: left;
}

table.tctt-competition-table tbody td {
  background: rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--e-global-color-text);
  padding: 14px;
  vertical-align: middle;
  font-size: 1.55rem;
  line-height: 1.2;
  text-align: left;
}

/* Zebra starts at row 1 (odd) as grey */
table.tctt-competition-table tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.12);
}

table.tctt-competition-table tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.45);
}

table.tctt-competition-table tbody tr:first-child td:first-child {
  border-top-left-radius: 8px;
}

table.tctt-competition-table tbody tr:first-child td:last-child {
  border-top-right-radius: 8px;
}

table.tctt-competition-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

table.tctt-competition-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

table.tctt-competition-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.1);
}

.tctt-rank-icon {
  margin-right: 8px;
}

table.tctt-competition-table thead th.tctt-col-rank {
  width: 86px;
  white-space: nowrap;
}

table.tctt-competition-table tbody td.tctt-col-rank {
  width: 86px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tctt-col-trader {
  min-width: 220px;
}

.tctt-col-return {
  min-width: 160px;
  white-space: nowrap;
}

.tctt-col-balance {
  width: 140px;
  text-align: right !important;
}

table.tctt-competition-table thead th.tctt-col-balance {
  text-align: right !important;
}

.tctt-rank-first {
  color: #d4af37;
}

.tctt-rank-second {
  color: #c0c0c0;
}

.tctt-rank-third {
  color: #cd7f32;
}

.tctt-lb-top-rank.tctt-rank-first {
  color: #d4af37;
  box-shadow:
    0 0 18px rgba(212, 175, 55, 0.42),
    0 0 30px rgba(212, 175, 55, 0.18);
}

.tctt-lb-top-rank.tctt-rank-second {
  color: #c0c0c0;
  box-shadow: 0 0 12px rgba(192, 192, 192, 0.22);
}

.tctt-lb-top-rank.tctt-rank-third {
  color: #cd7f32;
  box-shadow: 0 0 12px rgba(205, 127, 50, 0.22);
}

.tctt-rank-other {
  color: var(--e-global-color-text);
  opacity: 0.6;
}

.tctt-rank-icon-wrap {
  width: 22px;
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tctt-rank-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.tctt-rank-number {
  display: inline-block;
  min-width: 14px;
}

.tctt-num-positive {
  color: #00b67a !important;
  font-weight: 700;
}

.tctt-num-negative {
  color: #ef5350 !important;
  font-weight: 700;
}

.tctt-num-neutral {
  color: var(--e-global-color-text);
  font-weight: 700;
}

.tctt-return-up {
  color: #00b67a;
  margin-right: 8px;
}

.tctt-return-down {
  color: #ef5350;
  margin-right: 8px;
}

.tctt-lb-actions {
  margin-top: 14px;
  text-align: center;
}

.tctt-lb-more-btn {
  border: 0;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--e-global-color-text);
  padding: 8px 14px;
  cursor: pointer;
}

.tctt-lb-more-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .tctt-competition-leaderboard-wrapper {
    overflow: visible;
  }

  .tctt-competition-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table.tctt-competition-table {
    min-width: 760px;
  }

  .tctt-lb-top3 {
    grid-template-columns: 1fr;
  }
}

