.opentt-auth-card,
.opentt-profile-card,
.opentt-profile-section {
  background: rgba(3, 20, 58, 0.72);
  border: 1px solid rgba(142, 197, 255, 0.28);
  border-radius: 14px;
  padding: 16px;
  margin: 0 0 16px 0;
  color: #d8e9ff;
}

.opentt-auth-card {
  padding-top: 24px;
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.opentt-profile-wrap {
  display: grid;
  gap: 16px;
}

.opentt-profile-tabs {
  display: grid;
  gap: 14px;
}

.opentt-profile-tab-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opentt-profile-tab-btn {
  border: 1px solid rgba(142, 197, 255, 0.35);
  background: rgba(5, 23, 66, 0.72);
  color: #d8e9ff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.opentt-profile-tab-btn.is-active {
  background: linear-gradient(135deg, #0b4db8, #1b79f3);
  color: #fff;
}

.opentt-profile-tab-pane {
  display: none;
}

.opentt-profile-tab-pane.is-active {
  display: block;
}

.opentt-auth-card h3,
.opentt-profile-card h2,
.opentt-profile-section h3,
.opentt-profile-section h4 {
  margin: 0 0 10px 0;
  color: #ffffff;
}

.opentt-auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 24px 0;
  padding: 0 40px;
}

.opentt-auth-logo {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.opentt-auth-switcher {
  max-width: 360px;
  margin: 0 auto 16px;
}

.opentt-auth-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.opentt-auth-menu-login {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.opentt-auth-menu-login-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  background: #fff;
  -webkit-mask: var(--opentt-login-icon) no-repeat center / contain;
  mask: var(--opentt-login-icon) no-repeat center / contain;
}

.opentt-auth-menu-toggle {
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.opentt-auth-menu-toggle img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid rgba(142, 197, 255, 0.38);
}

.opentt-auth-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: rgba(5, 23, 66, 0.96);
  border: 1px solid rgba(142, 197, 255, 0.28);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  padding: 8px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.opentt-auth-menu-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.opentt-auth-menu:hover .opentt-auth-menu-dropdown,
.opentt-auth-menu:focus-within .opentt-auth-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.opentt-auth-menu-link {
  display: block;
  color: #d8e9ff;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.92rem;
}

.opentt-auth-menu-link:hover {
  background: rgba(142, 197, 255, 0.14);
}

.opentt-auth-menu-link.is-logout {
  color: #ffd0d0;
}

.opentt-auth-pane {
  display: none;
}

.opentt-auth-pane.is-active {
  display: block;
}

.opentt-auth-switch-note {
  margin: 12px 0 0;
}

.opentt-auth-link {
  border: 0;
  background: none;
  color: #8ec5ff;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.opentt-auth-form {
  display: grid;
  gap: 10px;
}

.opentt-auth-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.opentt-auth-form input,
.opentt-auth-form textarea,
.opentt-auth-form select {
  background: rgba(5, 23, 66, 0.95);
  border: 1px solid rgba(142, 197, 255, 0.35);
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
}

.opentt-turnstile-wrap {
  width: 100%;
}

.opentt-turnstile-wrap .cf-turnstile {
  width: 100% !important;
  max-width: 100%;
}

.opentt-turnstile-wrap .cf-turnstile iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid rgba(142, 197, 255, 0.35);
  border-radius: 10px;
}

.opentt-auth-inline {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.opentt-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(142, 197, 255, 0.48);
  border-radius: 10px;
  background: linear-gradient(135deg, #0b4db8, #1b79f3);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}

.opentt-auth-btn.is-ghost {
  background: transparent;
  color: #cfe4ff;
}

.opentt-auth-note {
  margin: 10px 0 0;
  color: #c3d9fb;
}

.opentt-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.opentt-profile-card--account {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.opentt-profile-head-meta h2 {
  margin-bottom: 4px;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.2;
}

.opentt-profile-head-meta p {
  margin: 0;
}

.opentt-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(142, 197, 255, 0.45);
}

.opentt-profile-list ul {
  margin: 0;
  padding-left: 18px;
}

.opentt-inline-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.opentt-profile-subsection {
  margin-top: 14px;
}

.opentt-inline-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.opentt-editor-wrap .wp-editor-wrap {
  border-radius: 10px;
  overflow: hidden;
}

.opentt-editor-media-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.opentt-editor-featured-preview img {
  max-width: 220px;
  border-radius: 10px;
  border: 1px solid rgba(142, 197, 255, 0.35);
}

.opentt-cover-focus-wrap {
  margin-top: 10px;
}

.opentt-cover-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.opentt-cover-focus-preview {
  margin-top: 6px;
  border: 1px solid rgba(142, 197, 255, 0.32);
  background: rgba(6, 20, 54, 0.7);
  overflow: hidden;
}

.opentt-cover-focus-preview.is-desktop {
  aspect-ratio: 16 / 5;
}

.opentt-cover-focus-preview.is-mobile {
  aspect-ratio: 16 / 5;
}

.opentt-club-cover-current img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.opentt-cover-focus-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.opentt-cover-focus-controls {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.opentt-cover-focus-controls label {
  display: block;
  font-weight: 600;
}

.opentt-cover-focus-controls input[type="range"] {
  width: 100%;
}

.opentt-editor-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.opentt-editor-post-card {
  background: rgba(5, 23, 66, 0.62);
  border: 1px solid rgba(142, 197, 255, 0.22);
  border-radius: 12px;
  overflow: hidden;
}

.opentt-editor-post-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.opentt-editor-post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.opentt-editor-post-card h5 {
  margin: 10px 10px 12px;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.35;
}

.opentt-league-tabs {
  display: grid;
  gap: 12px;
}

.opentt-league-tab-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opentt-league-tab-btn {
  border: 1px solid rgba(142, 197, 255, 0.35);
  background: rgba(5, 23, 66, 0.7);
  color: #d8e9ff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.opentt-league-tab-btn.is-active {
  background: linear-gradient(135deg, #0b4db8, #1b79f3);
  color: #fff;
}

.opentt-league-tab-pane {
  display: none;
}

.opentt-league-tab-pane.is-active {
  display: block;
}

.opentt-league-matches-grid {
  display: grid;
  gap: 10px;
}

.opentt-season-tab-head {
  margin-bottom: 4px;
}

.opentt-league-subtab-head {
  margin-bottom: 10px;
}

.opentt-season-pane,
.opentt-league-subpane {
  display: none;
}

.opentt-season-pane.is-active,
.opentt-league-subpane.is-active {
  display: block;
}

.opentt-league-admin-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.opentt-league-admin-controls label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
}

.opentt-league-admin-controls input,
.opentt-league-admin-controls select {
  width: 100%;
}

.opentt-league-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.opentt-league-season-group {
  margin-top: 12px;
}

.opentt-league-season-title {
  margin: 0 0 8px;
  color: #9bcaff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.opentt-league-match-card {
  background: rgba(3, 20, 58, 0.84);
  border: 1px solid rgba(142, 197, 255, 0.36);
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.opentt-league-match-card:hover {
  border-color: rgba(142, 197, 255, 0.58);
  transform: translateY(-1px);
}

.opentt-league-match-card summary {
  display: grid;
  gap: 2px;
  cursor: pointer;
  list-style: none;
}

.opentt-league-match-card summary::-webkit-details-marker {
  display: none;
}

.opentt-lm-top {
  color: #9bcaff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.opentt-lm-main {
  color: #fff;
  font-weight: 700;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.opentt-lm-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.opentt-lm-team img {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.opentt-lm-team span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opentt-league-games-form {
  margin-top: 10px;
  border-top: 1px solid rgba(142, 197, 255, 0.22);
  padding-top: 10px;
}

.opentt-league-game-card {
  border: 1px solid rgba(142, 197, 255, 0.2);
  border-radius: 10px;
  padding: 10px;
  background: rgba(5, 23, 66, 0.45);
}

.opentt-league-game-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.opentt-league-game-set-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.opentt-league-game-set-pair input {
  width: 80px;
}

.opentt-lm-score {
  color: #fff;
  font-weight: 800;
}

.opentt-lm-date {
  color: #c3d9fb;
  font-size: 0.88rem;
}

.opentt-frontend-notice {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 23, 66, 0.9);
  color: #fff;
}

.opentt-frontend-notice.is-success {
  border-color: rgba(88, 230, 144, 0.55);
  color: #beffd4;
}

.opentt-frontend-notice.is-error {
  border-color: rgba(255, 107, 107, 0.55);
  color: #ffd0d0;
}

@media (max-width: 768px) {
  .opentt-inline-form {
    display: grid;
    width: 100%;
  }

  .opentt-profile-head {
    align-items: flex-start;
  }

  .opentt-inline-select-grid {
    grid-template-columns: 1fr;
  }

  .opentt-editor-posts-grid {
    grid-template-columns: 1fr;
  }

  .opentt-cover-focus-grid,
  .opentt-cover-focus-controls {
    grid-template-columns: 1fr;
  }

  .opentt-league-admin-controls {
    grid-template-columns: 1fr;
  }

  .opentt-league-admin-grid {
    grid-template-columns: 1fr;
  }

  .opentt-turnstile-wrap {
    width: 100%;
  }

  .opentt-turnstile-wrap .cf-turnstile {
    width: 100% !important;
    max-width: 100%;
  }

  .opentt-turnstile-wrap .cf-turnstile iframe {
    width: 100% !important;
    max-width: 100% !important;
  }
}
