:root {
  --brand-momentum: #00E56A;
  --brand-obsidian: #081A16;
  --brand-mint: #e1f3e4;
  --brand-espresso: #110e0c;
  --theme-bg: #0D231D;
  --theme-bg-dark: #081A16;
  --theme-surface: #102A22;
  --theme-surface-elevated: #17352C;
  --theme-border: #1D4B3D;
  --theme-text: #F8FAF9;
  --theme-text-secondary: #B6C4BE;
  --theme-text-muted: #7D938A;
  --theme-header-bg: linear-gradient(90deg, #0D3A2C 0%, #00C85C 100%);
  --theme-sidebar-bg: #0B2019;
  --theme-nav-hover: rgba(0, 229, 106, 0.12);
  --theme-card-bg: #102A22;
  --theme-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  --text-muted: var(--theme-text-muted);
  --glow-primary: #00E56A;
  --glow-soft: rgba(0, 229, 106, 0.28);
  --glow-mid: rgba(0, 229, 106, 0.45);
  --glow-strong: rgba(0, 229, 106, 0.65);
  --glow-corner-tl: radial-gradient(ellipse 92px 68px at 0% 0%, rgba(0, 229, 106, 0.42) 0%, rgba(0, 229, 106, 0.14) 38%, transparent 72%);
  --glow-corner-br: radial-gradient(ellipse 78px 58px at 100% 100%, rgba(0, 229, 106, 0.28) 0%, transparent 70%);
  --glow-surface-shadow: -10px -8px 28px -16px var(--glow-mid), 10px 10px 26px -18px rgba(0, 229, 106, 0.18);
  --glow-surface-shadow-hover: -12px -10px 34px -14px var(--glow-strong), 12px 12px 30px -16px rgba(0, 229, 106, 0.28), 0 0 22px rgba(0, 229, 106, 0.16);
}

html[data-theme="light"] {
  --brand-momentum: #02D866;
  --brand-obsidian: #112225;
  --theme-bg: #f3f7f6;
  --theme-bg-dark: #ffffff;
  --theme-surface: #ffffff;
  --theme-surface-elevated: #f7fcfa;
  --theme-border: #d2efe3;
  --theme-text: #13262a;
  --theme-text-secondary: #607579;
  --theme-text-muted: #607579;
  --theme-header-bg: linear-gradient(90deg, #0C5235 0%, #02D866 45%, #0C5235 100%);
  --theme-sidebar-bg: #ffffff;
  --theme-nav-hover: rgba(2, 216, 102, 0.12);
  --theme-card-bg: #ffffff;
  --theme-shadow: 0 8px 20px rgba(10, 61, 50, 0.08);
  --glow-primary: #0C5235;
  --glow-soft: rgba(12, 82, 53, 0.12);
  --glow-mid: rgba(12, 82, 53, 0.18);
  --glow-strong: rgba(12, 82, 53, 0.28);
  --glow-corner-tl: radial-gradient(ellipse 92px 68px at 0% 0%, rgba(12, 82, 53, 0.16) 0%, transparent 70%);
  --glow-corner-br: radial-gradient(ellipse 78px 58px at 100% 100%, rgba(12, 82, 53, 0.1) 0%, transparent 70%);
  --glow-surface-shadow: var(--theme-shadow);
  --glow-surface-shadow-hover: 0 10px 24px rgba(12, 82, 53, 0.12);
}

html,
body {
  min-height: 100%;
}

body.goplai-shell {
  background: radial-gradient(circle at top right, rgba(2, 216, 102, 0.16), transparent 44%), var(--theme-bg);
  color: var(--theme-text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.goplai-header {
  background: var(--theme-header-bg);
  box-shadow: 0 2px 14px rgba(3, 24, 34, 0.24);
}

.goplai-logo {
  height: 38px;
  width: auto;
}

.goplai-sidebar {
  background: var(--theme-sidebar-bg);
  border-right: 1px solid var(--theme-border);
  flex: 0 0 280px;
  width: 280px;
  max-width: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  align-self: stretch;
}

.goplai-sidebar .nav-link {
  position: relative;
  color: var(--theme-text-secondary, var(--theme-text));
  font-weight: 600;
  border-radius: 14px;
  margin-bottom: 0.55rem;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  overflow: hidden;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.goplai-sidebar .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.goplai-sidebar .nav-link:hover {
  background: linear-gradient(90deg, rgba(0, 229, 106, 0.16) 0%, rgba(0, 229, 106, 0.04) 70%, transparent 100%);
  color: var(--theme-text);
  border-color: rgba(0, 229, 106, 0.18);
  box-shadow: 0 0 18px rgba(0, 229, 106, 0.12);
}

.goplai-sidebar .nav-link:hover::before,
.goplai-sidebar .nav-link.active::before {
  background: #00E56A;
  box-shadow: 0 0 10px rgba(0, 229, 106, 0.85), 0 0 18px rgba(0, 229, 106, 0.45);
}

.goplai-sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(0, 229, 106, 0.22) 0%, rgba(0, 229, 106, 0.08) 55%, rgba(0, 229, 106, 0.02) 100%);
  color: var(--brand-momentum);
  border-color: rgba(0, 229, 106, 0.28);
  box-shadow: 0 0 22px rgba(0, 229, 106, 0.16), inset 0 0 18px rgba(0, 229, 106, 0.06);
}

.goplai-sidebar .transactions-menu-label,
.goplai-sidebar .transactions-menu-label.active {
  color: var(--theme-text) !important;
}

.goplai-sidebar .submenu {
  margin: -0.15rem 0 0.4rem 1.9rem;
  display: none;
}

.goplai-sidebar .submenu.open {
  display: block;
}

.goplai-sidebar .submenu.show {
  display: block;
}

.goplai-sidebar .sub-link {
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.2rem;
  border-radius: 0.5rem;
}

.menu-icon {
  display: inline-block;
  width: 1.25rem;
  margin-right: 0.35rem;
}

.goplai-main {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  color: var(--theme-text);
}

.goplai-app-shell,
.goplai-admin-shell {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 0;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 992px) {
  .goplai-sidebar {
    flex-basis: 240px;
    width: 240px;
    max-width: 240px;
  }
}

@media (max-width: 576px) {
  .goplai-sidebar {
    flex-basis: 210px;
    width: 210px;
    max-width: 210px;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .goplai-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.goplai-page-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.goplai-page-subtitle {
  color: var(--text-muted);
}

.goplai-card {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
  border-radius: 0.9rem;
  padding: 1rem;
  box-shadow: var(--theme-shadow);
}

.login-wrapper {
  max-width: 430px;
  margin: 8vh auto 0;
}

.org-signup-page {
  max-width: 820px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

.org-signup-header {
  margin-bottom: 1.5rem;
}

.org-signup-card {
  padding: 1.75rem 1.85rem;
}

.org-signup-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #e8efef;
}

.org-signup-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.25rem;
}

.org-signup-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.org-signup-step {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-momentum);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.org-verify-panel {
  background: #f8fbfb;
  border: 1px solid #e4ecec;
  border-radius: 0.65rem;
  padding: 1rem 1.1rem;
}

.org-verify-status {
  display: inline-block;
  color: var(--text-muted);
}

.org-verify-status.is-verified {
  color: #0d6e3f;
  font-weight: 600;
}

.org-btn-with-spinner {
  position: relative;
  min-height: 2.375rem;
}

.org-btn-with-spinner.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.org-btn-with-spinner.is-loading .org-btn-label {
  visibility: hidden;
}

.org-btn-with-spinner .org-btn-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -0.5rem 0 0 -0.5rem;
}

.org-cert-row {
  padding: 0.65rem 0.75rem;
  background: #f8fbfb;
  border: 1px solid #e4ecec;
  border-radius: 0.5rem;
}

.org-cert-row .btn-remove-cert {
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.35rem 0.5rem;
}

#btn-add-cert {
  font-weight: 600;
}

.login-card {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--theme-shadow);
}

.login-card-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8efef;
  text-align: center;
}

.login-forgot-link {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-momentum, #02d460);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.login-forgot-link:hover {
  color: #02D866;
  background-color: rgba(2, 212, 96, 0.08);
  text-decoration: none;
}

.login-signup-line {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.login-signup-link {
  font-weight: 600;
  color: var(--brand-obsidian, #112225);
  text-decoration: none;
  margin-left: 0.25rem;
}

.login-signup-link:hover {
  color: var(--brand-momentum, #02d460);
  text-decoration: underline;
}

.btn-goplai {
  background: var(--brand-momentum);
  border-color: var(--brand-momentum);
  color: #062017;
  font-weight: 600;
}

.btn-goplai:hover {
  background: #02D866;
  border-color: #02D866;
  color: #042113;
}

.btn-goplai-outline {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #e6fff3;
  background: transparent;
}

.btn-goplai-outline:hover {
  background: rgba(4, 20, 14, 0.22);
  border-color: #d2ffe8;
  color: #ffffff;
}

.goplai-user-welcome {
  color: #e6fff4;
}

.goplai-user-menu-toggle {
  border: 1px solid rgba(235, 255, 245, 0.45);
  background: rgba(5, 44, 28, 0.22);
  color: #ecfff4;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.goplai-user-menu-toggle:hover,
.goplai-user-menu-toggle:focus,
.goplai-user-menu-toggle.show {
  background: rgba(9, 75, 45, 0.4);
  color: #ffffff;
  border-color: rgba(235, 255, 245, 0.75);
}

.goplai-user-menu-toggle::after {
  margin-left: 0.15rem;
  opacity: 0.85;
}

.goplai-user-dropdown {
  min-width: 11.5rem;
  margin-top: 0.4rem !important;
  border: 1px solid rgba(15, 60, 40, 0.12);
  border-radius: 0.65rem;
  padding: 0.35rem;
}

.goplai-user-dropdown .dropdown-item {
  border-radius: 0.4rem;
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
}

.goplai-change-password-card {
  border-radius: 1rem;
  background: var(--bs-body-bg, #fff);
}

.goplai-change-password-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: linear-gradient(145deg, rgba(16, 120, 72, 0.14), rgba(16, 120, 72, 0.04));
  border: 1px solid rgba(16, 120, 72, 0.18);
}

.goplai-password-field {
  position: relative;
}

.goplai-password-field .form-control {
  padding-right: 2.75rem;
}

.goplai-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: #5a7266;
  border-radius: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.goplai-password-toggle:hover,
.goplai-password-toggle:focus-visible {
  color: #0d6e45;
  background: rgba(13, 110, 69, 0.08);
  outline: none;
}

.goplai-password-success {
  background: rgba(16, 120, 72, 0.1);
  color: #0d5134;
  border-radius: 0.75rem;
  padding: 0.95rem 1rem;
}

.goplai-password-success-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #0d6e45;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

html[data-theme="dark"] .goplai-password-toggle {
  color: #a8c4b6;
}

html[data-theme="dark"] .goplai-password-toggle:hover,
html[data-theme="dark"] .goplai-password-toggle:focus-visible {
  color: #d7ffe9;
  background: rgba(215, 255, 233, 0.08);
}

html[data-theme="dark"] .goplai-password-success {
  background: rgba(52, 180, 110, 0.16);
  color: #d7ffe9;
}

html[data-theme="dark"] .goplai-password-success-icon {
  background: #2f9e65;
}

html[data-theme="light"] .goplai-user-menu-toggle {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.75);
  color: #f2fffa;
}

html[data-theme="light"] .goplai-user-welcome {
  color: #f2fffa;
}

.goplai-theme-toggle {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(235, 255, 245, 0.65);
  color: #ecfff4;
  background: rgba(5, 44, 28, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.goplai-theme-toggle .theme-icon::before {
  content: "☾";
  font-size: 1rem;
  line-height: 1;
}

.goplai-theme-toggle.is-dark .theme-icon::before {
  content: "☀";
}

.goplai-theme-toggle:hover {
  background: rgba(9, 75, 45, 0.35);
}

html[data-theme="light"] .goplai-theme-toggle {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .btn-goplai-outline {
  border-color: rgba(255, 255, 255, 0.9);
  color: #ffffff;
}

.card,
.table,
.list-group-item,
.form-control,
.form-select,
.modal-content {
  background-color: var(--theme-card-bg);
  color: var(--theme-text);
  border-color: var(--theme-border);
}

.table {
  --bs-table-color: var(--theme-text);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--theme-border);
}

.text-muted,
.small.text-muted {
  color: var(--theme-text-muted) !important;
}

/* Bootstrap .text-dark stays black in dark theme — remap for content, keep light badges readable. */
html[data-theme="dark"] .goplai-main .text-dark:not(.badge):not(.btn):not(.nav-link) {
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .goplai-main .badge.text-bg-light,
html[data-theme="dark"] .goplai-main .badge.bg-light,
html[data-theme="dark"] .goplai-main .badge.bg-white,
html[data-theme="dark"] .goplai-main .badge.bg-warning,
html[data-theme="dark"] .goplai-main .badge.bg-info,
html[data-theme="dark"] .goplai-main .badge.text-bg-warning,
html[data-theme="dark"] .goplai-main .badge.text-bg-info {
  color: #212529 !important;
}

html[data-theme="dark"] .org-profile .card,
html[data-theme="dark"] .org-profile .card-body,
html[data-theme="dark"] .org-profile .list-group-item,
html[data-theme="dark"] .org-profile .table,
html[data-theme="dark"] .org-profile .table > :not(caption) > * > * {
  background-color: var(--theme-bg-dark);
  color: var(--theme-text);
  --bs-table-color: var(--theme-text);
  border-color: var(--theme-border);
}

html[data-theme="dark"] .org-profile,
html[data-theme="dark"] .org-profile .card-title,
html[data-theme="dark"] .org-profile h1,
html[data-theme="dark"] .org-profile h2,
html[data-theme="dark"] .org-profile h3,
html[data-theme="dark"] .org-profile h4,
html[data-theme="dark"] .org-profile h5,
html[data-theme="dark"] .org-profile h6,
html[data-theme="dark"] .org-profile dt,
html[data-theme="dark"] .org-profile .fw-semibold,
html[data-theme="dark"] .org-profile .org-conn-label,
html[data-theme="dark"] .org-profile .org-conn-card .h6,
html[data-theme="dark"] .org-profile-post-card,
html[data-theme="dark"] .org-profile-post-card h3,
html[data-theme="dark"] .org-profile .breadcrumb,
html[data-theme="dark"] .org-profile .breadcrumb-item,
html[data-theme="dark"] .org-profile .breadcrumb-item.active {
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .org-profile .breadcrumb-item a {
  color: var(--brand-momentum) !important;
}

html[data-theme="dark"] .org-profile .text-muted {
  color: var(--theme-text-muted) !important;
}

html[data-theme="dark"] .org-profile-post-card {
  background: var(--theme-bg-dark) !important;
  border-color: var(--theme-border) !important;
}

html[data-theme="dark"] .org-conn-avatar-placeholder {
  background: #143042;
  border-color: #2a4555 !important;
}

html[data-theme="dark"] .org-conn-type-athlete {
  background: rgba(2, 216, 102, 0.18);
  color: #7dffb5;
  border-color: rgba(2, 216, 102, 0.4) !important;
}

html[data-theme="dark"] .org-conn-type-coach {
  background: rgba(110, 168, 254, 0.18);
  color: #9ec5fe;
  border-color: rgba(110, 168, 254, 0.4) !important;
}

html[data-theme="dark"] .org-conn-type-org {
  background: rgba(183, 148, 246, 0.18);
  color: #d0bfff;
  border-color: rgba(183, 148, 246, 0.4) !important;
}

html[data-theme="dark"] .org-conn-type-user {
  background: rgba(255, 255, 255, 0.08);
  color: #c5d2d8;
}

/* Keep key content headings readable site-wide in dark mode */
html[data-theme="dark"] .goplai-main h1:not(.modal-title),
html[data-theme="dark"] .goplai-main h2:not(.modal-title),
html[data-theme="dark"] .goplai-main h3:not(.modal-title),
html[data-theme="dark"] .goplai-main h4:not(.modal-title),
html[data-theme="dark"] .goplai-main h5:not(.modal-title),
html[data-theme="dark"] .goplai-main h6:not(.modal-title),
html[data-theme="dark"] .goplai-main .card-title,
html[data-theme="dark"] .goplai-main dt,
html[data-theme="dark"] .goplai-main label:not(.btn),
html[data-theme="dark"] .goplai-main .fw-semibold:not(.badge):not(.btn),
html[data-theme="dark"] .goplai-main .fw-bold:not(.badge):not(.btn) {
  color: var(--theme-text);
}

html[data-theme="dark"] .org-settings-nav .nav-link,
html[data-theme="dark"] .org-settings-nav .nav-link:hover,
html[data-theme="dark"] .org-settings-nav .nav-link:focus {
  color: var(--theme-text);
}

html[data-theme="dark"] .org-settings-page .org-settings-card {
  border-color: var(--theme-border) !important;
  background-color: var(--theme-card-bg);
  color: var(--theme-text);
}

html[data-theme="dark"] .org-tryout-stat-card,
html[data-theme="dark"] .org-tryout-detail .org-tryout-detail-card,
html[data-theme="dark"] .org-tryout-candidate-card,
html[data-theme="dark"] .org-sports-index .org-sport-list-card,
html[data-theme="dark"] .org-tryouts-index .card,
html[data-theme="dark"] .org-posts-index .card {
  background-color: var(--theme-card-bg) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}

html[data-theme="dark"] .org-tryout-candidate-card:hover {
  border-color: rgba(2, 216, 102, 0.4);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  color: var(--theme-text);
}

html[data-theme="dark"] .org-tryout-candidate-name,
html[data-theme="dark"] .org-tryout-candidate-progress-count {
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .org-tryout-candidate-meta,
html[data-theme="dark"] .org-tryout-candidate-progress-head {
  color: var(--theme-muted);
}

html[data-theme="dark"] .org-tryout-candidate-progress-track {
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .org-tryout-candidate-photo,
html[data-theme="dark"] .org-tryout-candidate-initials {
  box-shadow: 0 0 0 2px var(--theme-card-bg), 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Institute organization profile */
.org-profile {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  color: var(--theme-text);
}

/* Organization portal — settings (EditSettings) */
.org-settings-page .org-settings-section-title {
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  border-left: 3px solid var(--brand-momentum);
  padding-left: 0.65rem;
  margin-bottom: 1rem !important;
}

.org-settings-page .org-settings-card {
  border: 1px solid #e4ecec !important;
  scroll-margin-top: 5.5rem;
}

.org-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 992px) {
  .org-settings-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

.org-settings-nav {
  position: sticky;
  top: 1rem;
  z-index: 10;
}

.org-settings-nav-mobile {
  top: 0.5rem;
}

.org-settings-nav-mobile .nav-link {
  white-space: nowrap;
  border: 1px solid #e4ecec;
  border-radius: 999px;
}

.org-settings-nav .nav-link {
  color: var(--brand-obsidian);
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.375rem;
}

.org-settings-nav .nav-link:hover,
.org-settings-nav .nav-link:focus {
  background: rgba(2, 216, 102, 0.12);
  color: var(--brand-obsidian);
}

.org-settings-nav .nav-link.active {
  background: rgba(2, 216, 102, 0.18);
  font-weight: 600;
}

.org-settings-page .form-select,
.org-settings-page .form-select option,
.org-settings-page .served-country,
.org-settings-page .served-city-picker,
.org-settings-page .social-platform {
  font-size: 1rem;
}

.org-settings-page .form-control:disabled,
.org-settings-page .form-control[readonly].org-field-locked {
  background-color: #eef1f2;
  color: #5c6b6e;
  border-color: #d0d8da;
  cursor: not-allowed;
  opacity: 1;
}

.org-settings-locked-note {
  background: #f4f7f8;
  border: 1px solid #dce4e6;
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  color: #4a5c60;
}

.org-settings-section-actions {
  border-top: 1px solid #e8eeee;
  margin-top: 1.25rem;
  padding-top: 1rem;
}

/* Keep save confirmation visible after section-hash redirect */
.org-settings-page .org-settings-save-toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1080;
  width: min(36rem, calc(100vw - 2rem));
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.12);
}

.org-settings-age-grid .form-check-label {
  font-size: 0.95rem;
}

.org-settings-social-error {
  font-size: 0.875rem;
}

/* Ensure body copy on cards stays readable across light/dark themes. */
.org-profile .card,
.org-profile .card-body {
  background-color: var(--theme-card-bg);
  color: var(--theme-text);
}

.org-profile .card-title,
.org-profile h1,
.org-profile h2,
.org-profile h3,
.org-profile h4,
.org-profile h5,
.org-profile h6 {
  color: var(--theme-text);
}

.org-profile .text-muted {
  color: var(--theme-text-muted) !important;
}

.org-profile .org-conn-label,
.org-profile .org-label {
  color: var(--theme-text);
  font-weight: 600;
}

.org-profile-cover-upload {
  right: 14px;
  top: 14px;
  bottom: auto;
  z-index: 5;
}

.org-profile-cover-upload .org-profile-cam-btn {
  background: rgba(6, 32, 23, 0.72) !important;
  color: #ecfff4 !important;
  border-color: rgba(235, 255, 245, 0.45) !important;
  backdrop-filter: blur(4px);
}

.org-profile-cover-upload .org-profile-cam-btn:hover {
  background: rgba(2, 216, 102, 0.9) !important;
  color: #062017 !important;
  border-color: #02D866 !important;
}

.org-profile-avatar-photo-form {
  right: 2px;
  bottom: 2px;
}

.org-profile-cam-btn {
  cursor: pointer;
  line-height: 1.15;
}

.org-profile-avatar-cam-btn {
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  display: inline-flex;
  font-size: 0.95rem;
}

.org-profile .table,
.org-profile .table > :not(caption) > * > * {
  color: var(--theme-text);
  --bs-table-color: var(--theme-text);
}

.org-profile .list-group-item {
  background-color: var(--theme-card-bg);
  color: var(--theme-text);
}

.org-profile .badge.text-bg-light {
  color: #212529 !important;
}

/* Org profile — tryouts & posts: emphasize catalog sport name */
.org-profile .org-profile-tryout-sport-highlight {
  background-color: rgba(2, 216, 102, 0.22) !important;
  color: #0C5235 !important;
  border: 1px solid rgba(2, 216, 102, 0.55) !important;
  font-weight: 600;
}

html[data-theme="dark"] .org-profile .org-profile-tryout-sport-highlight,
html[data-theme="dark"] .org-profile-tryout-sport-highlight {
  background-color: rgba(2, 216, 102, 0.22) !important;
  color: #b8ffd8 !important;
  border-color: rgba(2, 216, 102, 0.55) !important;
}

/* Certificate files on org profile */
.org-profile-cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.org-profile-cert-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 5.25rem;
  padding: 0.5rem 0.35rem 0.35rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(2, 216, 102, 0.35);
  background: rgba(2, 216, 102, 0.06);
  color: #0C5235;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.org-profile-cert-link:hover {
  background: rgba(2, 216, 102, 0.14);
  border-color: rgba(2, 216, 102, 0.55);
  color: #0C5235;
  transform: translateY(-1px);
}

.org-profile-cert-link:hover .org-profile-cert-label {
  color: #0C5235 !important;
}

.org-profile-cert-link:focus-visible {
  outline: 2px solid rgba(25, 135, 84, 0.65);
  outline-offset: 2px;
}

.org-profile-cert-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  color: #02D866;
}

.org-profile-cert-label {
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  margin-top: 0.25rem;
}

.org-profile-cert-filetype-badge {
  margin-top: 0.3rem;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(2, 216, 102, 0.35);
  background: rgba(255, 255, 255, 0.8);
  color: #0C5235;
}

.org-tryout-overview-sport-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background-color: rgba(2, 216, 102, 0.16);
  color: #0C5235;
  font-weight: 600;
  border: 1px solid rgba(2, 216, 102, 0.45);
}

/* Organization tryout Details — summary cards & tables */
.org-tryout-detail .org-tryout-detail-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.org-tryout-detail .org-tryout-detail-card-title {
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: none;
  color: #0f172a;
}

.org-tryout-detail .org-tryout-detail-card-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(25, 135, 84, 0.12);
  font-size: 1rem;
  line-height: 1;
}

.org-tryout-detail .org-tryout-detail-card-lead {
  border-left: 3px solid var(--bs-success);
  padding-left: 0.75rem;
}

.org-tryout-detail .org-tryout-detail-pill {
  border-radius: 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1rem;
}

.org-tryout-detail .org-tryout-detail-pill-accent {
  background: rgba(25, 135, 84, 0.06);
  border-color: rgba(25, 135, 84, 0.2);
}

.org-tryout-detail .org-tryout-detail-row {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.03);
}

.org-tryout-detail .org-tryout-detail-section-title {
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.org-tryout-detail .org-tryout-detail-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  white-space: nowrap;
}

.org-tryout-detail .org-tryout-detail-drill-score-list li {
  line-height: 1.35;
}

.org-tryout-detail .org-tryout-detail-chart-wrap {
  min-height: 280px;
}

/* Organization tryout Details — KPI grid & candidate cards (Pharco-style) */
.org-tryout-detail-cover {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.org-tryout-detail-cover-img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.org-tryout-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 992px) {
  .org-tryout-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.org-tryout-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
  box-shadow: var(--glow-surface-shadow);
  color: var(--theme-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.org-tryout-stat-card:hover {
  border-color: rgba(0, 229, 106, 0.4);
  box-shadow: var(--glow-surface-shadow-hover);
}

.org-tryout-stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.org-tryout-stat-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.org-tryout-stat-icon--green {
  background: rgba(2, 216, 102, 0.1);
  color: #02D866;
}

.org-tryout-stat-icon--blue {
  background: rgba(31, 91, 255, 0.08);
  color: #1f5bff;
}

.org-tryout-stat-icon--amber {
  background: rgba(255, 149, 0, 0.1);
  color: #e68600;
}

.org-tryout-stat-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--theme-text-muted);
}

.org-tryout-stat-value {
  margin: 0.1rem 0 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--theme-text);
}

.org-tryout-stat-value--success { color: #02D866; }
.org-tryout-stat-value--warn { color: #e68600; }

.org-tryout-panel {
  border-radius: 1rem;
  border: 1px solid var(--theme-border);
  background: var(--theme-card-bg);
  box-shadow: var(--theme-shadow);
  overflow: hidden;
  color: var(--theme-text);
}

.org-tryout-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--theme-border);
  background: linear-gradient(180deg, rgba(2, 216, 102, 0.1) 0%, transparent 100%);
}

.org-tryout-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--theme-text);
}

.org-tryout-view-all-btn {
  border-radius: 999px;
  border-color: #02D866;
  color: #02D866;
  font-weight: 700;
}

.org-tryout-view-all-btn:hover {
  background: #02D866;
  border-color: #02D866;
  color: #fff;
}

.org-tryout-panel-body {
  padding: 1.25rem;
}

.org-tryout-candidate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .org-tryout-candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .org-tryout-candidate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.org-tryout-candidate-card {
  display: block;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--theme-border);
  background: var(--theme-card-bg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--glow-surface-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.org-tryout-candidate-card:hover {
  border-color: rgba(0, 229, 106, 0.4);
  box-shadow: var(--glow-surface-shadow-hover);
  color: inherit;
}

.org-tryout-candidate-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.org-tryout-candidate-photo,
.org-tryout-candidate-initials {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(15, 23, 42, 0.08);
}

.org-tryout-candidate-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #06e16e, #02c25c);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.org-tryout-candidate-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.org-tryout-candidate-meta {
  font-size: 0.75rem;
  color: #64748b;
}

.org-tryout-candidate-score {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #02D866;
}

.org-tryout-candidate-progress {
  margin-top: 1rem;
}

.org-tryout-candidate-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.org-tryout-candidate-progress-count {
  color: #0f172a;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.org-tryout-candidate-progress-track {
  height: 0.375rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.org-tryout-candidate-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #06e16e, #33e085);
  transition: width 0.35s ease;
}

.org-tryout-detail .org-tryout-detail-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.85rem;
  background: #fff;
  padding: 1.15rem 1.25rem;
}

.org-tryout-detail .org-tryout-detail-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.org-tryout-detail .org-tryout-detail-card-head--split {
  justify-content: space-between;
}

.org-tryout-detail .org-tryout-detail-pill-label {
  letter-spacing: 0.04em;
  font-size: 0.68rem;
}

.org-tryout-detail-description {
  line-height: 1.6;
  white-space: pre-line;
}

.org-tryout-detail .org-tryout-detail-chart-wrap {
  position: relative;
  height: 280px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0.5rem;
}

/* Organization tryouts index — status emphasis on cards */
.org-tryouts-index .org-tryout-index-card {
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: var(--glow-surface-shadow);
}

.org-tryouts-index .org-tryout-index-card:hover {
  box-shadow: var(--glow-surface-shadow-hover) !important;
  border-color: rgba(0, 229, 106, 0.4);
}

.org-tryouts-index .org-tryout-index-status-pill,
.org-tryout-status-pill {
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid transparent;
}

/* Lifecycle labels: always dark ink on soft fills (avoids white/low-contrast text from theme + card inheritance). */
.org-tryouts-index .org-tryout-index-status-pill.text-bg-secondary,
.org-tryout-status-pill.text-bg-secondary {
  background-color: #e2e8f0 !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

.org-tryouts-index .org-tryout-index-status-pill.text-bg-success,
.org-tryout-status-pill.text-bg-success {
  background-color: rgba(25, 135, 84, 0.2) !important;
  color: #0a3622 !important;
  border-color: rgba(25, 135, 84, 0.45) !important;
}

.org-tryouts-index .org-tryout-index-status-pill.text-bg-dark,
.org-tryout-status-pill.text-bg-dark {
  background-color: #334155 !important;
  color: #f1f5f9 !important;
  border-color: #1e293b !important;
}

.org-tryouts-index .org-tryout-index-status-pill.text-bg-danger,
.org-tryout-status-pill.text-bg-danger {
  background-color: rgba(220, 53, 69, 0.18) !important;
  color: #842029 !important;
  border-color: rgba(220, 53, 69, 0.4) !important;
}

.org-tryouts-index .org-tryout-index-status-pill.text-bg-light.text-dark,
.org-tryout-status-pill.text-bg-light.text-dark {
  background-color: #f8f9fa !important;
  color: #212529 !important;
  border-color: #dee2e6 !important;
}

/* Post detail: default readable body text; allow author-chosen inline colors from the editor */
.org-profile .org-post-detail-body {
  color: var(--theme-text);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.org-profile .org-post-detail-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.75rem 0;
  border-radius: 0.25rem;
}

.org-profile .org-post-detail-body .goplai-rte-media,
.org-profile .org-post-detail-body .goplai-rte-video {
  margin: 0.75rem 0;
}

.org-profile .org-post-detail-body .goplai-rte-video iframe,
.org-profile .org-post-detail-body .goplai-rte-video video,
.org-profile .org-post-detail-body iframe,
.org-profile .org-post-detail-body video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 12rem;
  border: 0;
  border-radius: 0.25rem;
  background: #000;
}

.org-profile .org-post-detail-body a {
  color: #0a58ca;
}

html[data-theme="dark"] .org-profile .org-post-detail-body a {
  color: #7ad9b0;
}

.org-post-photos-carousel .carousel-item {
  min-height: 240px;
}

.org-post-photos-carousel .org-post-photo-link {
  display: block;
  cursor: zoom-in;
  text-decoration: none;
}

.org-post-photos-carousel .org-post-detail-attachment {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #f8f9fa;
}

.org-post-photos-carousel .org-post-carousel-btn {
  width: auto;
  height: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  opacity: 1;
  padding: 0;
}

.org-post-photos-carousel .carousel-control-prev.org-post-carousel-btn {
  left: 12px;
}

.org-post-photos-carousel .carousel-control-next.org-post-carousel-btn {
  right: 12px;
}

.org-post-photos-carousel .org-post-carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(17, 34, 37, 0.72);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(17, 34, 37, 0.25);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.org-post-photos-carousel .org-post-carousel-btn:hover .org-post-carousel-arrow,
.org-post-photos-carousel .org-post-carousel-btn:focus .org-post-carousel-arrow {
  background: rgba(17, 34, 37, 0.92);
  transform: scale(1.05);
}

.org-post-photos-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--brand-obsidian, #112225);
}

.org-profile-cover {
  height: 220px;
  background: linear-gradient(120deg, #0D3A2C 0%, #00C85C 55%, #0D231D 100%);
}

.org-profile-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.org-profile-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(8, 26, 22, 0.55) 100%);
  pointer-events: none;
}

.org-profile-hero {
  background: var(--theme-bg-dark);
  border: 1px solid var(--theme-border);
  border-radius: 24px;
  overflow: hidden;
}

.org-profile-identity {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.org-profile-identity-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.org-profile-name {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--theme-text);
}

.org-profile-meta {
  color: var(--theme-text-secondary);
  font-size: 0.95rem;
}

.org-profile-details-btn {
  background: transparent;
  border: 1px solid var(--theme-border);
  color: var(--theme-text);
  border-radius: 12px;
  padding: 0.55rem 1rem;
}

.org-profile-details-btn:hover {
  background: var(--theme-surface-elevated);
  border-color: var(--brand-momentum);
  color: var(--theme-text);
}

.org-profile-follow-counts {
  display: flex;
  gap: 2rem !important;
  margin-top: 0.5rem;
}

.org-profile-follow-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  line-height: 1.2;
  color: inherit;
  border-radius: 0.75rem;
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
  text-align: center;
}

.org-profile-follow-stat:hover,
.org-profile-follow-stat:focus-visible {
  color: var(--brand-momentum);
  background: rgba(0, 229, 106, 0.1);
  outline: none;
  box-shadow: 0 0 16px rgba(0, 229, 106, 0.25);
}

.org-profile-follow-stat-n {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-momentum);
}

.org-profile-follow-stat-label {
  font-size: 0.9rem;
  color: var(--theme-text-secondary);
  font-weight: 500;
}

@media (max-width: 575.98px) {
  .org-profile-follow-counts {
    width: 100%;
    justify-content: space-around;
  }
}

.org-profile-tabs {
  top: 0;
  z-index: 20;
  background: var(--theme-surface);
  padding: 0.6rem;
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  margin-left: 0;
  margin-right: 0;
}

.org-profile-tab-list {
  gap: 0.5rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
}

.org-profile-tab-list .nav-link {
  white-space: nowrap;
  border-radius: 12px;
  color: var(--theme-text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.05rem;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.org-profile-tab-list .nav-link:hover {
  background: rgba(0, 229, 106, 0.1);
  color: var(--brand-momentum);
  border-color: rgba(0, 229, 106, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 229, 106, 0.18), 0 0 18px rgba(0, 229, 106, 0.28);
}

.org-profile-tab-list .nav-link.active {
  background: rgba(0, 229, 106, 0.12);
  color: #00E56A;
  border-color: rgba(0, 229, 106, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 229, 106, 0.25),
    -8px -6px 20px -10px var(--glow-mid),
    0 0 22px rgba(0, 229, 106, 0.28);
}

.org-profile-tab-anchor {
  scroll-margin-top: 96px;
}

.org-profile-snapshot {
  color: var(--theme-text-secondary);
  font-size: 0.875rem;
}

.org-profile-section {
  background: var(--theme-bg-dark);
  border: 1px solid var(--theme-border);
  border-radius: 24px;
  padding: 1.5rem;
}

.org-profile-section-title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: var(--theme-text);
}

/* Shared soft corner glow for cards / tiles (dark + light via tokens) */
.goplai-glow-surface,
.org-dash-tile,
.org-tryout-stat-card,
.org-sports-index .org-sport-list-card,
.org-coach-card,
.org-sport-card,
.org-tryout-candidate-card,
.org-tryouts-index .org-tryout-index-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.goplai-glow-surface::before,
.org-dash-tile::before,
.org-tryout-stat-card::before,
.org-sports-index .org-sport-list-card::before,
.org-coach-card::before,
.org-sport-card::before,
.org-tryout-candidate-card::before,
.org-tryouts-index .org-tryout-index-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: var(--glow-corner-tl);
  opacity: 0.9;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.goplai-glow-surface::after,
.org-dash-tile::after,
.org-tryout-stat-card::after,
.org-sports-index .org-sport-list-card::after,
.org-coach-card::after,
.org-sport-card::after,
.org-tryout-candidate-card::after,
.org-tryouts-index .org-tryout-index-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: var(--glow-corner-br);
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.goplai-glow-surface > *,
.org-dash-tile > *,
.org-tryout-stat-card > *,
.org-sports-index .org-sport-list-card > *,
.org-coach-card > *,
.org-sport-card > *,
.org-tryout-candidate-card > *,
.org-tryouts-index .org-tryout-index-card > * {
  position: relative;
  z-index: 1;
}

.org-dash-tile {
  background: var(--theme-surface);
  border: 1px solid rgba(0, 229, 106, 0.18) !important;
  border-radius: 20px;
  color: var(--theme-text);
  box-shadow: var(--glow-surface-shadow);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.org-dash-tile:hover,
.org-tryout-stat-card:hover,
.org-sports-index .org-sport-list-card:hover,
.org-coach-card:hover,
.org-sport-card:hover,
.org-tryout-candidate-card:hover,
.org-tryouts-index .org-tryout-index-card:hover {
  transform: translateY(-2px);
}

.org-dash-tile:hover {
  background: var(--theme-surface-elevated);
  border-color: rgba(0, 229, 106, 0.42) !important;
  box-shadow: var(--glow-surface-shadow-hover);
}

.org-dash-tile:hover::before,
.org-tryout-stat-card:hover::before,
.org-sports-index .org-sport-list-card:hover::before,
.org-coach-card:hover::before,
.org-sport-card:hover::before,
.org-tryout-candidate-card:hover::before,
.org-tryouts-index .org-tryout-index-card:hover::before {
  opacity: 1;
  background: radial-gradient(ellipse 110px 80px at 0% 0%, rgba(0, 229, 106, 0.5) 0%, rgba(0, 229, 106, 0.16) 40%, transparent 74%);
}

.org-dash-tile:hover::after,
.org-tryout-stat-card:hover::after,
.org-sports-index .org-sport-list-card:hover::after,
.org-coach-card:hover::after,
.org-sport-card:hover::after,
.org-tryout-candidate-card:hover::after,
.org-tryouts-index .org-tryout-index-card:hover::after {
  opacity: 0.95;
}

.org-dash-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  color: #00E56A;
  background: radial-gradient(circle at 35% 30%, rgba(0, 229, 106, 0.22), rgba(0, 229, 106, 0.06) 70%);
  border: 1px solid rgba(0, 229, 106, 0.4);
  box-shadow: 0 0 14px rgba(0, 229, 106, 0.3), inset 0 0 10px rgba(0, 229, 106, 0.1);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.org-dash-tile:hover .org-dash-tile-icon {
  background: radial-gradient(circle at 35% 30%, rgba(0, 229, 106, 0.3), rgba(0, 229, 106, 0.1) 70%);
  border-color: #00E56A;
  box-shadow: 0 0 20px rgba(0, 229, 106, 0.5), inset 0 0 12px rgba(0, 229, 106, 0.14);
}

.org-dash-tile-label {
  color: var(--theme-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.org-dash-tile-value {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--brand-momentum);
  line-height: 1.1;
}

.org-dash-tile-desc {
  margin-top: 0.35rem;
  color: var(--theme-text-muted);
  font-size: 0.875rem;
}

html[data-theme="dark"] .org-profile-avatar {
  border-color: var(--theme-bg-dark) !important;
}

html[data-theme="dark"] .org-profile .link-success {
  color: var(--brand-momentum) !important;
}

html[data-theme="dark"] .org-profile .link-success:hover {
  color: #7dffb5 !important;
}

html[data-theme="light"] .goplai-sidebar .nav-link {
  color: var(--theme-text);
}

html[data-theme="light"] .goplai-sidebar .nav-link:hover,
html[data-theme="light"] .goplai-sidebar .nav-link.active {
  background: var(--brand-momentum);
  color: #062017;
  border-color: transparent;
  box-shadow: none;
}

html[data-theme="light"] .goplai-sidebar .nav-link:hover::before,
html[data-theme="light"] .goplai-sidebar .nav-link.active::before {
  background: transparent;
  box-shadow: none;
}

html[data-theme="light"] .org-profile-hero {
  background: #fff;
}

html[data-theme="light"] .org-profile-section {
  background: #fff;
}

html[data-theme="light"] .org-profile-follow-stat-n,
html[data-theme="light"] .org-dash-tile-value {
  color: #0C5235;
}

html[data-theme="light"] .org-profile-tab-list .nav-link.active {
  background: #0C5235;
  color: #fff;
  border-color: #0C5235;
  box-shadow: none;
}

html[data-theme="light"] .org-profile-tab-list .nav-link:hover {
  box-shadow: none;
}

html[data-theme="light"] .org-profile-tab-list .nav-link {
  color: #0C5235;
}

html[data-theme="light"] .org-profile-details-btn {
  border-color: #ced4da;
  color: #13262a;
}

html[data-theme="light"] .org-dash-tile,
html[data-theme="light"] .org-tryout-stat-card,
html[data-theme="light"] .org-sports-index .org-sport-list-card,
html[data-theme="light"] .org-coach-card,
html[data-theme="light"] .org-sport-card,
html[data-theme="light"] .org-tryout-candidate-card,
html[data-theme="light"] .org-tryouts-index .org-tryout-index-card {
  box-shadow: var(--theme-shadow);
}

html[data-theme="light"] .org-dash-tile:hover,
html[data-theme="light"] .org-tryout-stat-card:hover,
html[data-theme="light"] .org-sports-index .org-sport-list-card:hover,
html[data-theme="light"] .org-coach-card:hover,
html[data-theme="light"] .org-sport-card:hover,
html[data-theme="light"] .org-tryout-candidate-card:hover,
html[data-theme="light"] .org-tryouts-index .org-tryout-index-card:hover {
  box-shadow: var(--glow-surface-shadow-hover);
}

html[data-theme="light"] .org-dash-tile:hover::before,
html[data-theme="light"] .org-tryout-stat-card:hover::before,
html[data-theme="light"] .org-sports-index .org-sport-list-card:hover::before,
html[data-theme="light"] .org-coach-card:hover::before,
html[data-theme="light"] .org-sport-card:hover::before,
html[data-theme="light"] .org-tryout-candidate-card:hover::before,
html[data-theme="light"] .org-tryouts-index .org-tryout-index-card:hover::before {
  background: radial-gradient(ellipse 110px 80px at 0% 0%, rgba(12, 82, 53, 0.22) 0%, transparent 72%);
}

html[data-theme="light"] .org-dash-tile-icon {
  color: #0C5235;
  background: rgba(12, 82, 53, 0.08);
  border-color: rgba(12, 82, 53, 0.25);
  box-shadow: none;
  border-radius: 50%;
}

.org-conn-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: #fff;
}

.org-conn-avatar-placeholder {
  background: #f0f5f4;
  width: 64px;
  height: 64px;
}

.org-conn-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.org-conn-meta dt,
.org-conn-label {
  min-width: 4.25rem;
  color: var(--theme-text);
  font-weight: 600;
}

.org-conn-name {
  color: var(--theme-text);
}

.org-conn-type-athlete {
  background: rgba(2, 216, 102, 0.12);
  color: #0C5235;
  border-color: rgba(12, 82, 53, 0.2) !important;
}

.org-conn-type-coach {
  background: rgba(13, 110, 253, 0.1);
  color: #0a58ca;
  border-color: rgba(13, 110, 253, 0.25) !important;
}

.org-conn-type-org {
  background: rgba(111, 66, 193, 0.1);
  color: #6f42c1;
  border-color: rgba(111, 66, 193, 0.25) !important;
}

.org-conn-type-user {
  background: #f8f9fa;
  color: #6c757d;
}

.org-profile-avatar-wrap {
  margin-top: -60px;
}

.org-profile-avatar {
  width: 110px;
  height: 110px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.org-profile-avatar-placeholder {
  width: 110px;
  height: 110px;
  background: var(--theme-surface-elevated);
}

.org-profile-list .list-group-item {
  border-color: #eef3f3;
}

.org-profile-post-card {
  background: var(--theme-surface-elevated);
  color: var(--theme-text);
  max-width: 100%;
}

/* Prevent flex/grid children from resisting shrink (fixes horizontal overflow on narrow viewports). */
.org-profile-posts-section .org-profile-posts-row > [class*="col"] {
  min-width: 0;
}

/* Fixed-height slot so object-fit/object-position apply reliably (avoids skewed crops). */
.org-profile-post-media {
  position: relative;
  background: #e8eeed;
  overflow: hidden;
  height: 160px;
}

.org-profile-post-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.org-profile-post-badges .badge {
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.org-profile-post-engagement {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.org-profile-post-engagement-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.org-profile-post-engagement-icon {
  line-height: 1;
}

.org-coach-card {
  background: var(--theme-surface-elevated);
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
  border-radius: 1rem;
  box-shadow: var(--glow-surface-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.org-sport-card {
  background: var(--theme-surface-elevated);
  border-color: var(--theme-border) !important;
  color: var(--theme-text);
  box-shadow: var(--glow-surface-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Organization profile: sports row links to sport manage */
a.org-sport-profile-link:focus-visible {
  outline: 2px solid var(--brand-momentum);
  outline-offset: 2px;
}

a.org-sport-profile-link:hover .org-sport-card {
  border-color: rgba(0, 229, 106, 0.4) !important;
  box-shadow: var(--glow-surface-shadow-hover);
  background: var(--theme-card-bg);
}

/* Organization sports listing (portal) — card grid + readable status (no white label text). */
.org-sports-index .org-sport-list-card {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
  border-radius: 0.9rem;
  padding: 1.15rem 1.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--glow-surface-shadow);
  color: var(--theme-text);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.org-sports-index .org-sport-list-card:hover {
  border-color: rgba(0, 229, 106, 0.4);
  box-shadow: var(--glow-surface-shadow-hover);
}

.org-sports-index .org-sport-list-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--theme-text);
  margin: 0;
  line-height: 1.25;
}

.org-sports-index .org-sport-list-card-catalog {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: -0.15rem;
}

.org-sports-index .org-sport-list-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.org-sports-index .org-sport-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.org-sports-index .org-sport-desc {
  font-size: 0.875rem;
  color: var(--theme-text);
  line-height: 1.45;
  margin: 0;
  flex: 1;
  min-height: 2.55rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.org-sports-index .org-sport-desc.is-empty {
  color: var(--text-muted);
}

/* Badge-style status without white lettering (pairs with Bootstrap 5.1 in this repo). */
.org-offering-status {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid;
  display: inline-block;
  line-height: 1.3;
  white-space: nowrap;
}

.org-offering-status-active {
  color: #0d4630;
  background: rgba(2, 216, 102, 0.16);
  border-color: rgba(2, 180, 86, 0.55);
}

html[data-theme="dark"] .org-offering-status-active {
  color: #b8ffd8;
  background: rgba(2, 216, 102, 0.22);
  border-color: rgba(2, 216, 102, 0.5);
}

.org-offering-status-archived {
  color: var(--theme-text);
  background: var(--theme-surface-elevated);
  border-color: var(--theme-border);
}

.org-sports-index .org-sports-empty {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: 0.9rem;
  border: 1px dashed #c9dadb;
  background: #fafcfb;
}

.org-sports-index .org-sports-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.org-sports-index .org-sports-count-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-text);
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
}

/* Organization sport manage page — hero + anchors under header */
.scroll-margin-top-org {
  scroll-margin-top: 5.75rem;
}

.org-sport-manage-hero {
  background: var(--theme-card-bg);
  color: var(--theme-text);
}

.org-sport-manage-icon {
  width: 80px;
  height: 80px;
  border-color: #e4ecec !important;
}

.org-sport-manage-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.org-sport-manage-icon-fallback {
  font-size: 2.25rem;
  line-height: 1;
  opacity: 0.7;
}

.org-announcement-item .org-announcement-attachment img {
  display: block;
}

.org-announcement-list .org-announcement-item {
  border-left: none;
  border-right: none;
}

.org-announcement-thumb {
  width: 100px;
  min-height: 58px;
  max-width: 32%;
}

@media (min-width: 576px) {
  .org-announcement-thumb {
    width: 112px;
    max-width: none;
  }
}

.org-announcement-thumb-media {
  display: block;
  width: 100%;
  max-height: 72px;
  object-fit: cover;
}

.org-announcement-thumb video.org-announcement-thumb-media {
  max-height: 64px;
  background: #111;
}

.org-announcement-thumb-file {
  min-height: 58px;
  width: 100%;
  font-size: 0.75rem;
}

.org-ann-body-clamp:not(.is-expanded) {
  max-height: 4.35rem;
  overflow: hidden;
}

.org-announcement-body .org-ann-body-toggle {
  font-size: 0.8rem;
}

.org-sport-card-icon {
  width: 48px;
  height: 48px;
}

.org-sport-card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.org-tryout-card {
  background: var(--theme-surface-elevated);
  border-color: var(--theme-border) !important;
  color: var(--theme-text);
}

a.org-tryout-card--link {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

a.org-tryout-card--link:hover {
  border-color: rgba(2, 216, 102, 0.4) !important;
  box-shadow: 0 6px 18px rgba(17, 34, 37, 0.07);
  background: var(--theme-card-bg);
  transform: translateY(-1px);
}

a.org-tryout-card--link:focus-visible {
  outline: 2px solid var(--brand-momentum);
  outline-offset: 2px;
}

.org-stat-chips {
  row-gap: 0.35rem;
}

.org-stat-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
  color: var(--theme-text);
}

.org-stat-chip-label {
  color: var(--theme-text-muted);
  font-weight: 500;
}

.org-stat-chip-value {
  font-weight: 600;
  color: var(--theme-text);
}

.org-stat-chip-accent {
  border-color: rgba(2, 216, 102, 0.35);
  background: rgba(2, 216, 102, 0.12);
}

.org-tryout-drill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.org-tryout-drill-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid var(--theme-border);
  background: var(--theme-card-bg);
  color: var(--theme-text);
  flex: 1 1 200px;
}

.org-tryout-drill-order {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.35rem;
  background: #0C5235;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.org-tryout-drill-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-text);
}

.org-tryout-drill-cat {
  font-size: 0.75rem;
  color: var(--theme-text-muted);
}

/* Assessments / SubmissionDetails performance report */
.assessment-report-score-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(#0d6efd calc(var(--score-pct, 0) * 1%), #e9ecef 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.assessment-report-score-inner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--theme-card-bg);
  color: var(--theme-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px var(--theme-border) inset;
}

/* Performance report — screen uses theme; PDF export forces light via body.cr-exporting-pdf / print */
.report-pdf-root {
  background: var(--theme-card-bg);
  color: var(--theme-text);
  border-radius: 0.9rem;
  padding: 1rem 1.15rem 1.5rem;
  border: 1px solid var(--theme-border);
}

.report-pdf-cover {
  position: relative;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--theme-border);
  margin-bottom: 1.25rem;
}

.report-pdf-cover__logo {
  height: 2.5rem;
  width: auto;
  display: block;
  margin-bottom: 1.25rem;
}

.report-pdf-cover__title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--theme-text);
  margin-bottom: 0.5rem;
}

.report-pdf-cover__subtitle {
  text-align: center;
  color: var(--theme-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.report-pdf-cover__rule {
  width: 6rem;
  height: 2px;
  background: var(--theme-border);
  margin: 0 auto 0.75rem;
}

.report-pdf-cover__player {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 0.25rem;
}

.report-pdf-cover__meta {
  text-align: center;
  font-size: 0.875rem;
  color: var(--theme-text-muted);
}

.assessment-report-hero-chip {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.assessment-report-score-denom {
  color: var(--theme-text-muted);
}

html[data-theme="dark"] .assessment-report-hero-card .assessment-report-score-inner {
  background: #0A3A2A !important;
  color: #e8f4f0 !important;
}

html[data-theme="dark"] .assessment-report-hero-card .assessment-report-score-denom {
  color: #9ab0b9 !important;
}

body.cr-exporting-pdf .report-pdf-root,
@media print {
  .report-pdf-root {
    background: #fff !important;
    color: #0f172a !important;
    border: none !important;
    box-shadow: none !important;
  }

  .report-pdf-cover__title,
  .report-pdf-cover__player {
    color: #0f172a !important;
  }

  .report-pdf-cover__subtitle,
  .report-pdf-cover__meta {
    color: #64748b !important;
  }
}

.report-section {
  break-inside: avoid;
  page-break-inside: avoid;
}

@media print {
  .no-print {
    display: none !important;
  }

  .assessment-submission-report .goplai-card,
  .assessment-submission-report .card {
    box-shadow: none !important;
    break-inside: avoid;
  }
}

.assessment-report-hero-card {
  background: linear-gradient(135deg, #02D866 0%, #02D866 50%, #0C5235 100%) !important;
}

/* Submission report — chart value overlays */
.assessment-submission-report .report-chart-doughnut {
  position: relative;
  width: 100%;
  max-width: 200px;
  height: 200px;
}

.assessment-submission-report .report-chart-doughnut canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.assessment-submission-report .report-chart-doughnut__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.assessment-submission-report .report-chart-doughnut__value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #0d4630;
}

.assessment-submission-report .report-chart-doughnut__unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.assessment-submission-report .report-chart-radar-wrap {
  width: 100%;
  max-width: 420px;
  height: 340px;
}

.assessment-submission-report .report-chart-radar-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.assessment-submission-report .report-chart-bar-wrap {
  width: 100%;
  height: 420px;
  max-height: 420px;
}

.assessment-submission-report .report-chart-bar-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.assessment-submission-report .report-chart-snapshot {
  max-width: 100%;
  height: auto;
}

/* Age group performance comparison (Pharco TS parity) */
.assessment-submission-report .report-age-stat {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
}

.assessment-submission-report .report-age-stat__value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.assessment-submission-report .report-age-stat__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.assessment-submission-report .report-age-stat--green {
  background: rgba(2, 216, 102, 0.08);
  border-color: rgba(2, 216, 102, 0.25);
}

.assessment-submission-report .report-age-stat--green .report-age-stat__value {
  color: #02D866;
}

.assessment-submission-report .report-age-stat--orange {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.25);
}

.assessment-submission-report .report-age-stat--orange .report-age-stat__value {
  color: #c2410c;
}

.assessment-submission-report .report-age-stat--blue {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

.assessment-submission-report .report-age-stat--blue .report-age-stat__value {
  color: #1d4ed8;
}

.assessment-submission-report .report-age-bar-panel {
  background: linear-gradient(90deg, rgba(2, 216, 102, 0.06), rgba(37, 99, 235, 0.06));
  border: 1px solid rgba(2, 216, 102, 0.2);
  border-radius: 0.65rem;
  padding: 1.25rem 1rem;
}

.assessment-submission-report .report-age-bar-track {
  position: relative;
  height: 1.5rem;
  background: #e9ecef;
  border-radius: 999px;
  overflow: visible;
}

.assessment-submission-report .report-age-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ade80, #02d866);
  transition: width 0.6s ease;
  min-width: 0.5rem;
}

.assessment-submission-report .report-age-bar-marker {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(17, 34, 37, 0.2);
  pointer-events: none;
}

.assessment-submission-report .report-age-bar-marker--25 { left: 25%; }
.assessment-submission-report .report-age-bar-marker--50 { left: 50%; }
.assessment-submission-report .report-age-bar-marker--75 { left: 75%; }

.assessment-submission-report .report-age-bar-you {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: #02D866;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  z-index: 1;
}

/* Submission report — feedback point callouts (strengths / development / recommendations) */
.assessment-submission-report .report-feedback-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .assessment-submission-report .report-feedback-grid--split {
    grid-template-columns: 1fr 1fr;
  }
}

.assessment-submission-report .report-feedback-card {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
  border-radius: 0.9rem;
  box-shadow: var(--theme-shadow);
  padding: 1.35rem 1.5rem;
  height: 100%;
  color: var(--theme-text);
}

.assessment-submission-report .report-feedback-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.assessment-submission-report .report-feedback-card__title-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.assessment-submission-report .report-feedback-card__title-icon--strength {
  color: #ca8a04;
}

.assessment-submission-report .report-feedback-card__title-icon--improve {
  color: #ea580c;
}

.assessment-submission-report .report-feedback-card__title-icon--recommend {
  color: #2563eb;
}

.assessment-submission-report .report-feedback-card__title-icon--detail {
  color: var(--brand-momentum);
}

.assessment-submission-report .report-feedback-points {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.assessment-submission-report .report-feedback-point {
  padding: 0.9rem 1rem 0.9rem 1rem;
  border-radius: 0.55rem;
  border-left: 4px solid transparent;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--brand-obsidian);
  margin: 0;
}

.assessment-submission-report .report-feedback-point--strength {
  background: #ecfdf3;
  border-left-color: #22c55e;
}

.assessment-submission-report .report-feedback-point--improve {
  background: #fff7ed;
  border-left-color: #f97316;
}

.assessment-submission-report .report-feedback-point--recommend {
  background: #eff6ff;
  border-left-color: #3b82f6;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-left: 0.85rem;
}

.assessment-submission-report .report-feedback-point__index {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.assessment-submission-report .report-feedback-point__text {
  flex: 1;
  min-width: 0;
}

.assessment-submission-report .report-feedback-point--narrative {
  background: #f8fbfb;
  border: 1px solid #e4ecec;
  border-left: 4px solid var(--brand-momentum);
  white-space: pre-wrap;
}

.assessment-submission-report .report-feedback-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.assessment-submission-report .report-feedback-warnings .report-feedback-point {
  background: #fffbeb;
  border-left-color: #f59e0b;
}

/* Submission report — skill / technical / scoring breakdown cards */
.assessment-submission-report .report-skill-card {
  background: var(--theme-card-bg);
  border: 2px solid var(--theme-border);
  border-radius: 0.65rem;
  padding: 1.1rem 1.15rem;
  box-shadow: var(--theme-shadow);
  color: var(--theme-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.assessment-submission-report .report-skill-card:hover {
  border-color: rgba(2, 216, 102, 0.35);
  box-shadow: 0 4px 14px rgba(17, 34, 37, 0.08);
}

.assessment-submission-report .report-skill-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.assessment-submission-report .report-skill-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.assessment-submission-report .report-skill-card__icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.assessment-submission-report .report-skill-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--theme-text);
  line-height: 1.25;
}

.assessment-submission-report .report-skill-card__score-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--theme-text);
  line-height: 1.1;
}

.assessment-submission-report .report-skill-card__score-denom {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.assessment-submission-report .report-skill-card__score-pct {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.assessment-submission-report .report-skill-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.assessment-submission-report .report-skill-card__badge--excellent {
  background: #dcfce7;
  color: #166534;
}

.assessment-submission-report .report-skill-card__badge--good {
  background: #dbeafe;
  color: #1e40af;
}

.assessment-submission-report .report-skill-card__badge--average {
  background: #fef9c3;
  color: #854d0e;
}

.assessment-submission-report .report-skill-card__badge--developing {
  background: #ffedd5;
  color: #c2410c;
}

.assessment-submission-report .report-skill-card__bar {
  height: 0.65rem;
  background: #eef3f3;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.assessment-submission-report .report-skill-card__bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.assessment-submission-report .report-skill-card__bar-fill--excellent {
  background: #22c55e;
}

.assessment-submission-report .report-skill-card__bar-fill--good {
  background: #3b82f6;
}

.assessment-submission-report .report-skill-card__bar-fill--average {
  background: #eab308;
}

.assessment-submission-report .report-skill-card__bar-fill--developing {
  background: #f97316;
}

.assessment-submission-report .report-skill-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.assessment-top-skill-tile {
  background: linear-gradient(90deg, rgba(5, 150, 105, 0.08) 0%, rgba(13, 110, 253, 0.06) 100%);
}

.org-tryout-reg-window {
  background: var(--theme-surface-elevated);
  border: 1px solid var(--theme-border);
  color: var(--theme-text);
}

/* ---- Dark mode: system-wide institute portal readability ---- */
html[data-theme="dark"] .goplai-sidebar .nav-link,
html[data-theme="dark"] .goplai-sidebar .sub-link {
  color: var(--theme-text);
}

html[data-theme="dark"] .goplai-sidebar .transactions-menu-label,
html[data-theme="dark"] .goplai-sidebar .transactions-menu-label.active {
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .goplai-main .btn-outline-secondary {
  color: #d5e8e1;
  border-color: rgba(213, 232, 225, 0.45);
  background: transparent;
}

html[data-theme="dark"] .goplai-main .btn-outline-secondary:hover {
  color: #062017;
  background: #e8f4f0;
  border-color: #e8f4f0;
}

html[data-theme="dark"] .goplai-main .btn-outline-primary {
  color: #9ec5fe;
  border-color: rgba(158, 197, 254, 0.55);
}

html[data-theme="dark"] .goplai-main .btn-outline-primary:hover {
  color: #062017;
  background: #9ec5fe;
}

html[data-theme="dark"] .goplai-main .text-bg-warning,
html[data-theme="dark"] .goplai-main .badge.text-bg-warning {
  color: #212529 !important;
  background-color: #ffc107 !important;
}

html[data-theme="dark"] .goplai-main .table thead th,
html[data-theme="dark"] .assessment-results-card .table thead th {
  background: #0d1f2b !important;
  color: #9ab0b9 !important;
  border-color: var(--theme-border) !important;
}

html[data-theme="dark"] .goplai-main .table,
html[data-theme="dark"] .goplai-main .table > :not(caption) > * > * {
  --bs-table-bg: transparent;
  --bs-table-color: var(--theme-text);
  --bs-table-border-color: var(--theme-border);
  color: var(--theme-text);
  background-color: transparent;
}

html[data-theme="dark"] .assessment-status-badge.text-bg-secondary,
html[data-theme="dark"] .assessment-status-badge.text-bg-light,
html[data-theme="dark"] .goplai-main .badge.text-bg-secondary {
  background-color: #334155 !important;
  color: #e8f4f0 !important;
  border-color: #475569 !important;
}

html[data-theme="dark"] .assessment-status-badge.text-bg-success,
html[data-theme="dark"] .goplai-main .badge.text-bg-success:not(.org-tryout-status-pill):not(.org-tryout-index-status-pill) {
  background-color: rgba(2, 216, 102, 0.22) !important;
  color: #b8ffd8 !important;
}

html[data-theme="dark"] .assessment-status-badge.text-bg-danger,
html[data-theme="dark"] .goplai-main .badge.text-bg-danger:not(.org-tryout-status-pill):not(.org-tryout-index-status-pill) {
  background-color: rgba(220, 53, 69, 0.28) !important;
  color: #ffc9ce !important;
}

html[data-theme="dark"] .assessment-status-badge.text-bg-primary,
html[data-theme="dark"] .goplai-main .badge.text-bg-primary {
  background-color: rgba(13, 110, 253, 0.28) !important;
  color: #cfe2ff !important;
}

html[data-theme="dark"] .assessment-score-pill {
  background: rgba(2, 216, 102, 0.18);
  color: #b8ffd8;
}

html[data-theme="dark"] .org-tryouts-index .org-dash-tile,
html[data-theme="dark"] .org-tryouts-index .org-tryout-index-card,
html[data-theme="dark"] .org-tryouts-index .card {
  background: var(--theme-card-bg) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}

html[data-theme="dark"] .assessment-results-card,
html[data-theme="dark"] .assessment-search-card--compact,
html[data-theme="dark"] .assessment-condition-card,
html[data-theme="dark"] .assessment-dynamic-panel--compact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: var(--glow-surface-shadow);
}

html[data-theme="dark"] .assessment-results-card::before,
html[data-theme="dark"] .assessment-search-card--compact::before,
html[data-theme="dark"] .assessment-condition-card::before,
html[data-theme="dark"] .assessment-dynamic-panel--compact::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: var(--glow-corner-tl);
  opacity: 0.85;
}

html[data-theme="dark"] .assessment-results-card::after,
html[data-theme="dark"] .assessment-search-card--compact::after,
html[data-theme="dark"] .assessment-condition-card::after,
html[data-theme="dark"] .assessment-dynamic-panel--compact::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: var(--glow-corner-br);
  opacity: 0.7;
}

html[data-theme="dark"] .assessment-results-card > *,
html[data-theme="dark"] .assessment-search-card--compact > *,
html[data-theme="dark"] .assessment-condition-card > *,
html[data-theme="dark"] .assessment-dynamic-panel--compact > * {
  position: relative;
  z-index: 1;
}

html[data-theme="dark"] .org-dash-tile {
  background: var(--theme-surface) !important;
  border-color: rgba(0, 229, 106, 0.18) !important;
  color: var(--theme-text) !important;
  box-shadow: var(--glow-surface-shadow);
}

html[data-theme="dark"] .org-dash-tile:hover {
  border-color: rgba(0, 229, 106, 0.45) !important;
  box-shadow: var(--glow-surface-shadow-hover);
}

html[data-theme="dark"] .org-tryouts-index .card-title,
html[data-theme="dark"] .org-tryouts-index .fw-semibold,
html[data-theme="dark"] .org-tryout-drill-title {
  color: #e8f4f0 !important;
}

html[data-theme="dark"] .org-tryouts-index .badge.text-bg-light,
html[data-theme="dark"] .org-profile .badge.text-bg-light,
html[data-theme="dark"] .goplai-main .badge.rounded-pill.text-bg-light {
  background-color: #1e3342 !important;
  color: #e8f4f0 !important;
  border-color: #3a5566 !important;
}

html[data-theme="dark"] .org-tryout-index-status-pill.text-bg-secondary,
html[data-theme="dark"] .org-tryout-status-pill.text-bg-secondary {
  background-color: #334155 !important;
  color: #e8f4f0 !important;
}

html[data-theme="dark"] .org-tryout-index-status-pill.text-bg-success,
html[data-theme="dark"] .org-tryout-status-pill.text-bg-success {
  background-color: rgba(2, 216, 102, 0.22) !important;
  color: #b8ffd8 !important;
}

html[data-theme="dark"] .org-tryout-index-status-pill.text-bg-dark,
html[data-theme="dark"] .org-tryout-status-pill.text-bg-dark {
  background-color: #1e293b !important;
  color: #e8f4f0 !important;
}

html[data-theme="dark"] .org-tryout-index-status-pill.text-bg-danger,
html[data-theme="dark"] .org-tryout-status-pill.text-bg-danger {
  background-color: rgba(220, 53, 69, 0.28) !important;
  color: #ffc9ce !important;
}

html[data-theme="dark"] .org-sport-manage-hero .btn-outline-secondary,
html[data-theme="dark"] .org-profile .btn-outline-secondary {
  color: #d5e8e1 !important;
  border-color: rgba(213, 232, 225, 0.5) !important;
}

html[data-theme="dark"] .org-sport-manage-hero .text-bg-warning,
html[data-theme="dark"] .org-sport-manage-hero .badge.text-bg-warning {
  color: #212529 !important;
}

html[data-theme="dark"] .org-dash-tile-value {
  color: var(--brand-momentum) !important;
}

html[data-theme="dark"] .org-dash-tile-label {
  color: var(--theme-text-secondary) !important;
}

html[data-theme="dark"] .org-dash-tile-desc {
  color: var(--theme-text-muted) !important;
}

html[data-theme="dark"] .text-body-secondary,
html[data-theme="dark"] .goplai-main .text-body-secondary {
  color: var(--theme-text-muted) !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .goplai-main .bg-white {
  background-color: var(--theme-card-bg) !important;
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .goplai-main .bg-light {
  background-color: var(--theme-surface-elevated) !important;
  color: var(--theme-text) !important;
}

/* Admin + assessment report pages — force readable cards in dark mode */
html[data-theme="dark"] .goplai-main .card,
html[data-theme="dark"] .goplai-main .goplai-card,
html[data-theme="dark"] .assessment-submission-report .card,
html[data-theme="dark"] .assessment-submission-report .goplai-card,
html[data-theme="dark"] .assessment-submission-report .report-feedback-card,
html[data-theme="dark"] .assessment-submission-report .report-skill-card,
html[data-theme="dark"] .assessment-submission-report .report-age-stat,
html[data-theme="dark"] .assessment-submission-report .report-age-bar-panel {
  background-color: var(--theme-card-bg) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}

html[data-theme="dark"] .assessment-submission-report .report-feedback-card__title,
html[data-theme="dark"] .assessment-submission-report .report-skill-card__title,
html[data-theme="dark"] .assessment-submission-report .report-skill-card__score-value,
html[data-theme="dark"] .assessment-submission-report .report-chart-doughnut__value,
html[data-theme="dark"] .assessment-submission-report .report-age-stat__value {
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .assessment-submission-report .report-feedback-point,
html[data-theme="dark"] .assessment-submission-report .report-feedback-point--recommend {
  background-color: var(--theme-surface-elevated) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}

html[data-theme="dark"] .assessment-report-score-inner {
  background: var(--theme-card-bg) !important;
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .assessment-submission-report .report-skill-card__bar {
  background: #1e3342 !important;
}

html[data-theme="dark"] .report-pdf-root,
html[data-theme="dark"] .assessment-submission-report .report-pdf-root {
  background: var(--theme-card-bg) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}

html[data-theme="dark"] .report-pdf-cover__title,
html[data-theme="dark"] .report-pdf-cover__player,
html[data-theme="dark"] .assessment-submission-report h1,
html[data-theme="dark"] .assessment-submission-report h2,
html[data-theme="dark"] .assessment-submission-report h3,
html[data-theme="dark"] .assessment-submission-report .fw-semibold,
html[data-theme="dark"] .assessment-submission-report .fw-bold:not(.badge):not(.btn):not(.text-success) {
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .assessment-submission-report .report-chart-doughnut__value,
html[data-theme="dark"] .assessment-submission-report .report-chart-doughnut__unit {
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .assessment-top-skill-tile {
  background: var(--theme-surface-elevated) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .assessment-report-hero-chip {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

html[data-theme="dark"] .goplai-main .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(255, 255, 255, 0.03);
  color: var(--theme-text);
}

html[data-theme="dark"] .goplai-sidebar .nav-link.bg-transparent {
  color: var(--theme-text) !important;
}

html[data-theme="dark"] .goplai-main .list-group-item {
  background-color: var(--theme-card-bg);
  color: var(--theme-text);
  border-color: var(--theme-border);
}

html[data-theme="dark"] .goplai-main .modal-content {
  background-color: var(--theme-card-bg);
  color: var(--theme-text);
  border-color: var(--theme-border);
}

html[data-theme="dark"] .goplai-main .form-control,
html[data-theme="dark"] .goplai-main .form-select {
  background-color: var(--theme-surface-elevated);
  color: var(--theme-text);
  border-color: var(--theme-border);
}

html[data-theme="dark"] .goplai-main .form-control::placeholder {
  color: var(--theme-text-muted);
}

.goplai-field-error {
  margin-top: 0.25rem;
  color: #dc3545 !important;
  font-weight: 500;
}

.goplai-has-field-error {
  outline: 1px solid var(--bs-danger);
  outline-offset: 2px;
  border-radius: 0.375rem;
}

.goplai-validation-summary,
.validation-summary-errors {
  color: #b02a37 !important;
  background: #f8d7da;
  border: 1px solid #f1aeb5;
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.validation-summary-valid {
  display: none !important;
}

.goplai-validation-summary ul,
.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.goplai-validation-summary li,
.validation-summary-errors li,
.field-validation-error,
.goplai-validation-msg.field-validation-error,
span.field-validation-error,
span[data-valmsg-for] {
  color: #dc3545 !important;
  font-weight: 500;
}

.form-control.is-invalid,
.form-select.is-invalid,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #dc3545 !important;
}