:root {
  --navy: #06111f;
  --ink: #0d1826;
  --charcoal: #171b20;
  --steel: #586271;
  --line: #d9dee7;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --accent: #d9862c;
  --accent-dark: #9f5717;
  --success: #247a4d;
  --danger: #b83f34;
  --warning: #b7791f;
  --blue: #2d5f9a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.container-xxl-custom {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 2200px) {
  .container-xxl-custom {
    max-width: 1560px;
  }
}

@media (min-width: 3200px) {
  .container-xxl-custom {
    max-width: 1680px;
  }
}

a {
  color: var(--accent-dark);
}

.site-nav,
.dashboard-nav {
  background: rgba(6, 17, 31, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-logo {
  width: 88px;
  height: auto;
}

.navbar-brand span {
  font-weight: 700;
  white-space: normal;
}

.hero {
  min-height: 92vh;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.hero-content {
  padding-top: clamp(90px, 13vh, 150px);
  padding-bottom: 92px;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: 0;
  margin-bottom: .75rem;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: .95;
  margin-bottom: 1.25rem;
  font-weight: 850;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, .86);
  font-size: 1.18rem;
  margin: 1.5rem 0 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-meta span {
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  padding: .48rem .82rem;
  background: rgba(255, 255, 255, .08);
}

.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--accent-dark);
  --bs-btn-hover-border-color: var(--accent-dark);
  --bs-btn-focus-shadow-rgb: 217, 134, 44;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--accent-dark);
  --bs-btn-active-border-color: var(--accent-dark);
  --bs-btn-disabled-color: #fff;
  font-weight: 800;
}

.section-band {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--paper);
}

.section-dark {
  background: var(--charcoal);
  color: #fff;
}

.section-muted {
  background: var(--soft);
}

.section-band h2,
.section-band h1 {
  font-weight: 820;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.stat-grid div {
  min-height: 132px;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.stat-grid strong {
  display: block;
  color: var(--accent-dark);
  font-size: 2rem;
}

.stat-grid span,
.callout span,
.metric-card span {
  display: block;
  color: var(--steel);
}

.feature-card,
.form-panel,
.auth-card,
.detail-panel,
.approval-wait,
.metric-card {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
}

.feature-card {
  height: 100%;
  padding: 1.5rem;
  background: rgba(255, 255, 255, .06);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: .9rem;
}

.feature-card p {
  color: rgba(255, 255, 255, .78);
  margin-bottom: 0;
}

.form-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #111b29;
  color: #fff;
}

.form-panel.light {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

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

.check-grid label {
  min-height: 42px;
  display: flex;
  gap: .5rem;
  align-items: center;
  padding: .65rem .75rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.callout {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.1rem;
  background: var(--soft);
}

.faq-list .accordion-button {
  font-weight: 750;
}

.site-footer {
  padding: 28px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, .74);
}

.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #06111f, #1b2028 68%, #4a2d10);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(100%, 440px);
  padding: 2rem;
  background: #fff;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .25);
}

.auth-logo {
  width: 120px;
  margin-bottom: 1rem;
}

.auth-card h1 {
  font-size: 1.75rem;
  font-weight: 820;
  margin-bottom: 1.5rem;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: .95rem;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.admin-page {
  background: #f3f5f8;
}

.admin-main {
  min-height: calc(100vh - 74px);
  padding: 52px 0 72px;
  background:
    linear-gradient(180deg, rgba(6, 17, 31, .04), rgba(6, 17, 31, 0) 260px),
    #f3f5f8;
}

.admin-container {
  max-width: 1500px;
}

.admin-hero,
.admin-page-head,
.admin-toolbar,
.admin-table-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .06);
}

.admin-hero {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
  background:
    linear-gradient(135deg, rgba(6, 17, 31, .96), rgba(25, 35, 50, .94)),
    #06111f;
  color: #fff;
}

.admin-hero p:last-child {
  max-width: 680px;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 0;
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
}

.admin-page-head h1 {
  margin-bottom: 0;
}

.teams-page .admin-page-head {
  align-items: flex-start;
}

.toolbar-actions,
.bulk-bar,
.bulk-group {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.teams-page .toolbar-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-inline-start: auto;
  white-space: nowrap;
}

html[dir="rtl"] .teams-page .toolbar-actions {
  justify-content: flex-start;
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.teams-page .toolbar-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.admin-toolbar {
  padding: 1rem;
  margin-bottom: 1rem;
}

.participants-filter-form {
  margin: 0;
}

.participants-filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(200px, 1fr) minmax(200px, 1fr) auto;
  gap: .85rem;
  align-items: end;
}

.filter-field {
  display: grid;
  gap: .35rem;
  margin: 0;
}

.filter-field > span {
  color: var(--steel);
  font-size: .75rem;
  font-weight: 800;
}

.participants-filter-grid .form-control,
.participants-filter-grid .form-select,
.participants-filter-grid .btn {
  min-height: 42px;
}

.participants-filter-grid .filter-search {
  grid-column: span 1;
}

.participants-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .45rem;
  white-space: nowrap;
  grid-column: 1 / -1;
  padding-top: .15rem;
  align-self: end;
}

.participants-filter-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}

.participants-page .admin-toolbar {
  padding: 1.15rem;
}

.admin-table-card {
  overflow: hidden;
}

.bulk-bar {
  display: flex;
  align-items: end;
  gap: 1rem;
  padding: .95rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.bulk-selected-count {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--navy);
  font-weight: 800;
  white-space: nowrap;
}

.bulk-selected-count i {
  color: var(--accent);
  font-size: 1.05rem;
}

.bulk-group {
  display: grid;
  grid-template-columns: minmax(170px, 220px) auto;
  align-items: end;
  gap: .45rem;
}

.bulk-group label {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--steel);
  font-size: .74rem;
  font-weight: 800;
}

.bulk-group .form-select {
  min-width: 190px;
}

.admin-table {
  margin-bottom: 0;
  border: 0;
}

.admin-table > :not(caption) > * > * {
  padding: .95rem 1rem;
}

.admin-table tbody tr:hover {
  background: #fbfcfd;
}

.select-col {
  width: 44px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .4rem .7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .82rem;
  color: #fff;
  background: var(--steel);
}

.status-approved {
  background: var(--success);
}

.status-rejected {
  background: var(--danger);
}

.status-deactivated,
.status-archived,
.status-deleted {
  background: #64748b;
}

.status-pending,
.status-pending_admin_approval,
.status-pending_email_verification {
  background: var(--accent-dark);
}

.team-name-cell {
  display: grid;
  gap: .35rem;
}

.team-name-cell strong {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

.team-name-cell span {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.2;
  white-space: nowrap;
}

.team-name-cell i {
  color: var(--accent);
  font-size: .95rem;
}

.team-contact-cell {
  display: grid;
  gap: .3rem;
  min-width: 185px;
}

.team-contact-cell strong {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

.team-contact-cell span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.team-contact-cell i {
  color: var(--accent);
  font-size: .92rem;
  line-height: 1;
}

.teams-page .admin-table th:nth-child(5),
.teams-page .admin-table td:nth-child(5) {
  width: 112px;
  text-align: center;
}

.teams-page .team-status-pill {
  min-width: 0;
  min-height: 28px;
  max-width: 104px;
  padding: .28rem .58rem;
  justify-content: center;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.08;
  white-space: normal;
  text-align: center;
  box-shadow: none;
}

.teams-page .team-status-pill.status-pending_email_verification,
.teams-page .team-status-pill.status-pending_admin_approval {
  color: #9a5406;
  background: #fff4e7;
  border: 1px solid #efbd83;
}

.status-visa_pending {
  background: var(--warning);
}

.status-visa_ready {
  background: var(--blue);
}

.status-visa_rejected {
  background: var(--danger);
}

.data-table {
  background: #fff;
  border: 1px solid var(--line);
}

.data-table th {
  color: var(--steel);
  font-size: .82rem;
  text-transform: uppercase;
}

.approval-wait,
.metric-card,
.detail-panel {
  background: #fff;
  border-color: var(--line);
  padding: 1.25rem;
}

a.metric-card {
  display: block;
  min-height: 132px;
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

a.metric-card.linked:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 134, 44, .55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .11);
}

.metric-card strong {
  display: block;
  font-size: 2.35rem;
  color: var(--accent-dark);
}

.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.metric-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: none;
}

.metric-icon i::before {
  vertical-align: 0;
}

.file-actions {
  display: grid;
  gap: .35rem;
  min-width: 0;
}

.file-actions span {
  max-width: 210px;
  color: var(--ink);
  font-size: .9rem;
}

.file-actions > span:first-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-actions a {
  width: fit-content;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
}

.file-action-buttons {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.file-action-btn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: color .16s ease, transform .16s ease, opacity .16s ease;
}

.file-action-view {
  color: #1f5792;
}

.file-action-download {
  color: #9f5717;
}

.file-action-btn:hover,
.file-action-btn:focus-visible {
  opacity: .82;
  transform: translateY(-1px);
  outline: 0;
}

.file-action-view:hover,
.file-action-view:focus-visible {
  color: #154a80;
}

.file-action-download:hover,
.file-action-download:focus-visible {
  color: var(--accent-dark);
}

.status-select {
  min-width: 132px;
  border-radius: 999px;
  font-weight: 700;
}

.status-select-pending,
.status-select-visa_pending {
  color: #a15c09;
  background-color: #fff6e8;
  border-color: #f2c98f;
}

.status-select-approved,
.status-select-visa_ready {
  color: #087243;
  background-color: #eaf8f0;
  border-color: #b9e4ca;
}

.status-select-rejected,
.status-select-visa_rejected {
  color: #ba2d25;
  background-color: #fff0ef;
  border-color: #f0b8b2;
}

.participant-rich-cell {
  align-items: flex-start;
}

.participant-rich-cell > span,
.participant-team-cell,
.passport-details-cell,
.documents-cell {
  display: grid;
  gap: .28rem;
}

.participant-rich-cell small,
.participant-team-cell small,
.passport-details-cell small {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.2;
}

.participant-nationality .country-cell,
.participant-team-cell .country-cell {
  gap: .35rem;
  white-space: nowrap;
}

.participant-nationality .country-cell span,
.participant-team-cell .country-cell span {
  display: inline;
  white-space: nowrap;
}

.participants-page .participant-rich-cell .participant-nationality {
  width: max-content;
  max-width: 100%;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.participants-page .participant-rich-cell .participant-nationality .country-cell {
  width: max-content;
  min-width: max-content;
  display: inline-flex !important;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}

.participants-page .participant-rich-cell .participant-nationality .country-flag {
  flex: 0 0 auto;
}

.participants-page .participant-rich-cell .participant-nationality .country-cell > span {
  display: inline-block !important;
  white-space: nowrap;
}

.passport-details-cell strong {
  color: var(--navy);
}

.documents-cell {
  min-width: 150px;
  gap: .5rem;
}

.document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
}

.document-row strong {
  color: var(--navy);
  font-size: .8rem;
}

.document-file-meta {
  display: grid;
  min-width: 0;
  gap: .12rem;
}

.document-file-meta small {
  max-width: 115px;
  overflow: hidden;
  color: var(--steel);
  font-size: .7rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-row .text-muted {
  font-size: .78rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  margin: 0;
}

.detail-grid dt {
  color: var(--steel);
}

.detail-grid dd {
  margin: 0;
}

.danger-zone {
  padding: 1.25rem;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fffafa;
}

.danger-zone h2,
.danger-zone h3 {
  color: #991b1b;
}

.danger-zone h2 {
  font-size: 1.35rem;
}

.danger-zone h3 {
  font-size: 1rem;
}

.danger-zone-card {
  height: 100%;
  padding: 1rem;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  background: #fff;
}

.narrow {
  max-width: 880px;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.team-app-page,
.team-auth-page {
  background:
    radial-gradient(circle at top left, rgba(217, 134, 44, .08), transparent 360px),
    #f5f7fb;
}

.team-topbar {
  min-height: 76px;
  background: linear-gradient(135deg, #071526, #06111f 62%, #0b2340);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.team-topbar-inner {
  max-width: 1600px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.team-brand {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  color: #fff;
  text-decoration: none;
}

.team-brand:hover {
  color: #fff;
}

.team-brand img {
  width: 154px;
  max-width: 42vw;
  height: auto;
}

.team-brand span {
  font-size: 1.25rem;
  font-weight: 850;
}

.team-userbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
}

.team-lang {
  min-width: 58px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .75rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.team-lang:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .08);
}

.team-userbar span {
  display: grid;
  min-width: 128px;
  line-height: 1.1;
}

.team-userbar strong {
  font-size: .92rem;
}

.team-userbar small {
  color: rgba(255, 255, 255, .72);
}

.team-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .28);
  background: #eef3f8;
}

.team-main {
  min-height: calc(100vh - 76px);
  padding: clamp(2rem, 4vw, 3rem) 0 72px;
}

.dashboard-page .team-main .container-xxl-custom {
  max-width: 1600px;
}

.team-summary-card,
.team-panel,
.team-form-card,
.team-login-card {
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.team-summary-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 154px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.team-summary-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #1d4f86, #0f9b63);
}

.team-emblem {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  background: linear-gradient(145deg, #0c1c37, #1b2f66);
  border: 3px solid #fff;
  border-radius: 24px 24px 28px 28px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .24), 0 12px 24px rgba(10, 23, 48, .18);
}

.team-summary-main {
  flex: 1;
}

.team-summary-main h1 {
  margin-bottom: .45rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.team-summary-main p:last-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 0;
  color: #2f3e52;
  font-weight: 650;
}

.team-status-block {
  display: grid;
  justify-items: center;
  gap: .45rem;
  min-width: 138px;
}

.team-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.team-stat-card {
  display: flex;
  align-items: center;
  gap: .95rem;
  min-height: 96px;
  padding: 1.05rem 1.15rem;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.team-stat-card strong {
  display: block;
  color: #08162b;
  font-size: 1.9rem;
  line-height: 1;
}

.team-stat-card small {
  display: block;
  margin-top: .35rem;
  color: var(--steel);
  font-weight: 750;
}

.team-stat-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.35rem;
}

.team-stat-icon.stat-blue {
  color: #1262d6;
  background: #eaf2ff;
}

.team-stat-icon.stat-green {
  color: #087243;
  background: #e7f7ee;
}

.team-stat-icon.stat-orange {
  color: #b35a00;
  background: #fff3e3;
}

.team-stat-icon.stat-cyan {
  color: #096b8f;
  background: #e8f7fb;
}

.team-resources-panel {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.team-resources-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.team-resources-head h2 {
  margin-bottom: .2rem;
  color: #08162b;
  font-size: 1.45rem;
}

.team-resources-head p {
  margin: 0;
  color: var(--steel);
}

.team-resource-count {
  flex: 0 0 auto;
  padding: .35rem .75rem;
  border-radius: 999px;
  color: #46556b;
  background: #eef2f7;
  font-size: .8rem;
  font-weight: 800;
}

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

.team-resource-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 1.25rem;
  min-width: 0;
  min-height: 182px;
  padding: 1rem;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fff;
}

.team-resource-file-icon {
  width: 94px;
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
  border: 1px solid #fed7aa;
  border-radius: 9px;
  color: #ef5b16;
  background: linear-gradient(145deg, #fff7ed, #fff2df);
}

.team-resource-file-icon i {
  font-size: 3.25rem;
  line-height: 1;
}

.team-resource-file-icon span {
  padding: .18rem .42rem;
  border-radius: 3px;
  color: #fff;
  background: #e84d0e;
  font-size: .7rem;
  font-weight: 900;
  line-height: 1;
}

.team-resource-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.team-resource-copy {
  min-width: 0;
}

.team-resource-copy h3 {
  margin: .15rem 0 .35rem;
  color: #08162b;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.team-resource-copy p {
  margin: 0 0 .35rem;
  color: var(--steel);
  font-size: .92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.team-resource-copy small {
  color: #718096;
  font-weight: 700;
}

.team-resource-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.team-resource-actions .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  white-space: nowrap;
}

.btn-outline-accent {
  --bs-btn-color: var(--accent-dark);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-border-color: var(--accent);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--accent-dark);
  --bs-btn-active-border-color: var(--accent-dark);
  font-weight: 800;
}

.team-status-block small,
.team-page-subtitle,
.team-panel-head p {
  color: var(--steel);
}

.team-panel {
  overflow: hidden;
}

.team-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.team-panel-head h2 {
  margin-bottom: .2rem;
  font-size: 1.45rem;
}

.team-panel-head p {
  margin-bottom: 0;
}

.team-table-wrap .data-table {
  margin-bottom: 0;
  border: 0;
  table-layout: fixed;
}

.team-table-wrap .data-table th {
  padding: .95rem 1rem;
  background: #f5f7fa;
  color: #46556b;
  border-bottom: 1px solid #dbe3ee;
  font-size: .78rem;
  white-space: nowrap;
}

.team-table-wrap .data-table th:nth-child(1),
.team-table-wrap .data-table td:nth-child(1) {
  width: 17%;
}

.team-table-wrap .data-table th:nth-child(2),
.team-table-wrap .data-table td:nth-child(2) {
  width: 10%;
}

.team-table-wrap .data-table th:nth-child(3),
.team-table-wrap .data-table td:nth-child(3) {
  width: 12%;
}

.team-table-wrap .data-table th:nth-child(4),
.team-table-wrap .data-table td:nth-child(4) {
  width: 10%;
}

.team-table-wrap .data-table th:nth-child(5),
.team-table-wrap .data-table td:nth-child(5),
.team-table-wrap .data-table th:nth-child(6),
.team-table-wrap .data-table td:nth-child(6) {
  width: 9%;
}

.team-table-wrap .data-table th:nth-child(7),
.team-table-wrap .data-table td:nth-child(7) {
  width: 12%;
}

.team-table-wrap .data-table th:nth-child(8),
.team-table-wrap .data-table td:nth-child(8) {
  width: 10%;
}

.team-table-wrap .data-table th:nth-child(9),
.team-table-wrap .data-table td:nth-child(9) {
  width: 11%;
}

.team-table-wrap .data-table td {
  padding: 1rem;
  vertical-align: middle;
  color: #0f172a;
  border-color: #e3e9f2;
}

.team-table-wrap .data-table tbody tr {
  transition: background .16s ease;
}

.team-table-wrap .data-table tbody tr:hover {
  background: #fbfcff;
}

.participant-cell,
.country-cell {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}

.participant-cell span {
  display: grid;
  gap: .15rem;
}

.participant-cell small {
  color: var(--steel);
}

.participant-avatar {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  background: #eef3f8;
  box-shadow: 0 0 0 1px #dce5ef;
}

.passport-number {
  display: block;
  font-weight: 800;
}

.passport-cell {
  display: grid;
  min-width: 0;
  gap: .2rem;
}

.passport-expiry {
  display: block;
  margin-top: .2rem;
  color: var(--steel);
  white-space: nowrap;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .32rem .65rem;
  border-radius: 999px;
  background: #f2f5f9;
  color: #2f3e52;
  font-weight: 750;
  font-size: .84rem;
}

.country-flag {
  width: 23px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08);
}

.team-table-wrap .status-pill,
.team-status-block .status-pill {
  gap: .38rem;
  min-height: 32px;
  justify-content: center;
  min-width: 112px;
  color: #0d4f30;
  background: #e9f8ef;
  border: 1px solid #bce7cd;
  line-height: 1.15;
  text-align: center;
}

.team-table-wrap .status-pending,
.team-table-wrap .status-visa_pending {
  color: #b35a00;
  background: #fff5e8;
  border: 1px solid #f3be7b;
}

.team-table-wrap .status-approved,
.team-status-block .status-approved {
  color: #087243;
  background: #e7f7ee;
}

.team-table-wrap .status-rejected,
.team-table-wrap .status-visa_rejected {
  color: #c02f25;
  background: #fff0ef;
  border: 1px solid #f2b5af;
}

.team-table-wrap .status-visa_ready {
  color: #1f5792;
  background: #edf6ff;
  border: 1px solid #bbd8f7;
}

.team-table-wrap .file-actions span {
  display: flex;
  align-items: center;
  gap: .35rem;
  max-width: 170px;
}

.team-table-wrap .file-actions div {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.team-table-wrap .file-actions a {
  color: var(--accent-dark);
}

.team-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
}

[dir="rtl"] .team-row-actions {
  justify-content: flex-start;
}

.team-row-actions form {
  margin: 0;
}

.team-row-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}

.team-form-wrap {
  max-width: 1320px;
  padding-top: 18px;
}

.team-form-wrap h1 {
  margin-bottom: .4rem;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
}

.team-form-card {
  margin-top: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.team-form-card .form-label {
  color: #172234;
  font-size: .86rem;
  font-weight: 800;
}

.team-form-card .form-label span {
  color: #dc3545;
}

.team-form-card .form-control,
.team-form-card .form-select,
.team-login-form .form-control {
  min-height: 44px;
  border-color: #dbe2ec;
  border-radius: 6px;
}

.team-form-card .input-group-text {
  border-color: #dbe2ec;
  background: #f7f9fc;
  font-weight: 750;
}

.upload-control {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem .9rem;
  border: 1px solid #dbe2ec;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.upload-control input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-control i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #3f5773;
  font-size: 1.35rem;
  border-radius: 50%;
  background: #eef3f8;
}

.upload-control span {
  padding: .4rem .7rem;
  border-radius: 5px;
  background: #eef4fb;
  color: #1d4f86;
  font-weight: 800;
  font-size: .9rem;
}

.upload-control em {
  min-width: 0;
  color: #586271;
  font-style: normal;
  overflow-wrap: anywhere;
}

.team-login-main {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4rem) 24px;
}

.team-login-card {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 420px);
  overflow: hidden;
}

.team-login-copy {
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 17, 31, .96), rgba(12, 35, 64, .92)),
    #06111f;
}

.team-login-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.team-login-copy p:last-child {
  max-width: 420px;
  color: rgba(255, 255, 255, .74);
  margin-bottom: 0;
}

.team-login-form {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: #fff;
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 64px;
  }

  .check-grid,
  .stat-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-head,
  .auth-links,
  .admin-page-head,
  .bulk-bar,
  .team-summary-card,
  .team-panel-head,
  .team-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-logo {
    width: 72px;
  }

  .team-topbar-inner {
    padding-block: .85rem;
  }

  .team-brand {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }

  .team-brand img {
    width: 132px;
  }

  .team-userbar {
    width: 100%;
    justify-content: space-between;
  }

  .team-userbar span {
    min-width: 0;
    flex: 1;
  }

  .team-summary-card {
    align-items: flex-start;
  }

  .team-status-block {
    justify-items: flex-start;
  }

  .team-panel-head .btn {
    width: 100%;
  }

  .team-login-card {
    grid-template-columns: 1fr;
  }

  .team-login-copy {
    padding-bottom: 2rem;
  }

  .upload-control {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 1199px) {
  .participants-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .participants-filter-actions {
    justify-content: flex-start;
  }

  [dir="rtl"] .participants-filter-actions {
    justify-content: flex-end;
  }

  .team-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-table-wrap {
    padding: 1rem;
    background: #f8fafc;
  }

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

  .team-table-wrap .data-table {
    table-layout: auto;
    background: transparent;
  }

  .team-table-wrap .data-table thead {
    display: none;
  }

  .team-table-wrap .data-table tbody tr {
    padding: 1rem;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
  }

  .team-table-wrap .data-table tbody tr + tr {
    margin-top: 1rem;
  }

  .team-table-wrap .data-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
    border: 0;
  }

  .team-table-wrap .data-table td + td {
    border-top: 1px solid #eef2f6;
  }

  .team-table-wrap .data-table td::before {
    content: attr(data-label);
    flex: 0 0 38%;
    color: #637083;
    font-size: .8rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .team-table-wrap .data-table td:first-child::before {
    display: none;
  }

  .team-table-wrap .data-table td:first-child {
    padding-top: 0;
  }

  .team-row-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  [dir="rtl"] .team-row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 575px) {
  .participants-filter-grid {
    grid-template-columns: 1fr;
  }

  .participants-filter-actions {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .participants-filter-actions .btn {
    width: 100%;
  }

  .team-stat-grid {
    grid-template-columns: 1fr;
  }

  .team-table-wrap .data-table td {
    align-items: flex-start;
    flex-direction: column;
    gap: .45rem;
  }

  .team-table-wrap .data-table td::before {
    flex-basis: auto;
  }

  .team-row-actions,
  .team-row-actions .btn,
  .team-row-actions form {
    width: 100%;
  }

  .team-row-actions {
    align-items: stretch;
  }

  .team-row-actions .btn {
    justify-content: center;
  }
}

.landing-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 94vh;
  padding-top: 106px;
  color: #fff;
}

.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; display: block; background-position: center; background-size: cover; opacity: 0; transform: scale(1.015); transition: opacity .65s ease, transform 1.1s ease; pointer-events: none; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,8,15,.96), rgba(2,8,15,.66) 42%, rgba(2,8,15,.08)); }
.hero-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.landing-nav, .landing-hero-body, .hero-arrow, .hero-dots { position: relative; z-index: 2; }
.hero-arrow { position: absolute; top: 52%; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; background: rgba(2,10,18,.55); font-size: 1.4rem; opacity: 0; transition: opacity .2s ease, background-color .2s ease, transform .2s ease; }
.hero-arrow-prev { left: 22px; }
.hero-arrow-next { right: 22px; }
.landing-hero:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
.hero-arrow:hover { background: rgba(255,121,0,.9); transform: scale(1.06); }
.hero-dots { position: absolute; left: 50%; bottom: 7px; display: flex; gap: 0; transform: translateX(-50%); }
.hero-dot { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.hero-dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border: 1px solid #fff; border-radius: 50%; background: rgba(255,255,255,.35); transform: translate(-50%, -50%); transition: width .2s ease, background-color .2s ease; }
.hero-dot.is-active::before { width: 28px; border-radius: 999px; background: #ff7900; }
@media (hover: none) { .hero-arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; transform: none; } }

.landing-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1030;
  padding: 26px 0;
  background: rgba(2, 10, 18, .58);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  transition: padding .22s ease, background-color .22s ease, box-shadow .22s ease, backdrop-filter .22s ease;
}

.landing-nav.is-scrolled {
  padding: 14px 0;
  background: rgba(2, 10, 18, .94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
}

.landing-nav .container-xxl-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-brand img {
  width: 180px;
  max-width: 45vw;
}

.show-desktop {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2vw, 32px);
  flex: 1;
}

.landing-menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.1vw, 34px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-menu a {
  position: relative;
  display: inline-flex;
  padding: 10px 0;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  font-size: .82rem;
  min-height: 44px;
  align-items: center;
}

.landing-menu a.active,
.landing-menu a:hover {
  color: var(--accent);
}

.landing-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .18s ease;
}

.landing-menu a.active::after,
.landing-menu a:hover::after,
.landing-menu a:focus-visible::after {
  transform: scaleX(1);
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.landing-actions .btn,
.landing-actions .lang-toggle {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-actions .btn {
  padding: .55rem .9rem;
}

.landing-hero .btn,
.landing-register .btn {
  transition: color .22s ease, background-color .22s ease, border-color .22s ease,
    box-shadow .22s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
}

.landing-hero .btn:hover,
.landing-hero .btn:focus-visible,
.landing-register .btn:hover,
.landing-register .btn:focus-visible {
  transform: translateY(-3px);
}

.landing-hero .btn-accent:hover,
.landing-hero .btn-accent:focus-visible,
.landing-register .btn-accent:hover,
.landing-register .btn-accent:focus-visible {
  box-shadow: 0 12px 26px rgba(255, 121, 0, .3);
}

.landing-hero .btn-outline-light:hover,
.landing-hero .btn-outline-light:focus-visible {
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}

.landing-hero .btn i,
.landing-register .btn i {
  display: inline-block;
  transition: transform .22s ease;
}

.landing-hero .btn:hover i,
.landing-hero .btn:focus-visible i,
.landing-register .btn:hover i,
.landing-register .btn:focus-visible i {
  transform: translateX(4px);
}

html[dir="rtl"] .landing-hero .btn:hover i,
html[dir="rtl"] .landing-hero .btn:focus-visible i,
html[dir="rtl"] .landing-register .btn:hover i,
html[dir="rtl"] .landing-register .btn:focus-visible i {
  transform: translateX(-4px);
}

.landing-menu-toggle {
  width: 48px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  font-size: 1.55rem;
}

.lang-toggle {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  padding: .55rem .7rem;
  text-decoration: none;
  font-weight: 900;
  gap: .42rem;
}

.lang-toggle i {
  font-size: 1rem;
  line-height: 1;
}

.landing-hero-body {
  padding-top: clamp(54px, 8vw, 110px);
  padding-bottom: 72px;
}

.landing-hero h1 {
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  font-size: clamp(2.65rem, 4.1vw, 3.75rem);
  line-height: .96;
  text-transform: uppercase;
  max-width: 680px;
}

.landing-hero h1 span {
  display: block;
  color: #ff7900;
}

.hero-mark {
  width: 76px;
  height: 4px;
  background: #ff7900;
  margin: 20px 0;
}

.landing-tagline {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  max-width: 520px;
}

.landing-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 18px;
  max-width: 920px;
  margin-top: 28px;
}

.landing-meta div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.landing-meta .landing-meta-hosted {
  grid-column: span 2;
  max-width: 440px;
}

.landing-meta i {
  color: #ff7900;
  font-size: 1.7rem;
}

/* Smooth, staggered entrance for the landing-page UI. */
@keyframes landing-fade-down {
  from {
    opacity: 0;
    transform: translate3d(0, -18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes landing-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes landing-mark-in {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.landing-nav {
  animation: landing-fade-down .7s cubic-bezier(.22, 1, .36, 1) both;
}

.landing-hero-body h1,
.landing-hero-body .hero-mark,
.landing-hero-body .landing-tagline,
.landing-hero-body .landing-meta,
.landing-hero-body .d-flex.flex-wrap {
  animation: landing-fade-up .75s cubic-bezier(.22, 1, .36, 1) both;
}

.landing-hero-body h1 {
  animation-delay: .12s;
}

.landing-hero-body .hero-mark {
  transform-origin: left center;
  animation-name: landing-mark-in;
  animation-delay: .28s;
}

.landing-hero-body .landing-tagline {
  animation-delay: .34s;
}

.landing-hero-body .landing-meta {
  animation-delay: .46s;
}

.landing-hero-body .d-flex.flex-wrap {
  animation-delay: .58s;
}

html[dir="rtl"] .landing-hero-body .hero-mark {
  transform-origin: right center;
}

@media (prefers-reduced-motion: reduce) {
  .landing-nav,
  .landing-hero-body h1,
  .landing-hero-body .hero-mark,
  .landing-hero-body .landing-tagline,
  .landing-hero-body .landing-meta,
  .landing-hero-body .d-flex.flex-wrap {
    animation: none;
  }
}

.landing-overview {
  padding: clamp(72px, 8vw, 126px) 0;
  color: #fff;
  background: radial-gradient(circle at 70% 20%, rgba(255, 121, 0, .12), transparent 30%), #041b31;
}

.landing-overview h2 {
  font-weight: 900;
  margin-bottom: 18px;
}

.landing-overview p {
  color: rgba(255, 255, 255, .82);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.activity-grid div {
  min-height: 170px;
  padding: 22px 14px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
}

.activity-grid.is-reveal-ready div {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(.98);
  transition: opacity .7s ease,
    transform .7s cubic-bezier(.22, 1, .36, 1),
    border-color .22s ease,
    background-color .22s ease,
    box-shadow .22s ease;
  transition-delay: var(--activity-delay, 0ms);
}

.activity-grid.is-reveal-ready.is-visible div {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.activity-grid.is-reveal-complete div {
  transition-delay: 0ms;
}

.activity-grid.is-reveal-ready.is-visible div:hover {
  border-color: rgba(255, 121, 0, .62);
  background: rgba(255, 121, 0, .08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
  transform: translate3d(0, -6px, 0) scale(1);
}

.activity-grid i {
  color: #ff7900;
  font-size: 2.6rem;
}

.activity-grid span {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 800;
}

.activity-grid > div {
  min-width: 0;
}

.landing-register {
  padding: clamp(76px, 8vw, 132px) 0;
  background: #fff;
}

.public-form {
  padding-right: 28px;
  border-right: 1px solid #dfe6ef;
}

.registration-alert {
  margin: 0 28px 18px 0;
  border-radius: 8px;
}

.registration-login-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: -4px 28px 18px 0;
  color: #5b6880;
  font-weight: 700;
}

.registration-login-note a {
  color: #ff7900;
  text-decoration: none;
  font-weight: 900;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.registration-login-note a:hover,
.registration-login-note a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.registration-verification-modal .modal-dialog {
  max-width: 610px;
}

.registration-verification-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(2, 18, 35, .28);
}

.registration-verification-modal .modal-body {
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.verification-modal-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 30px rgba(255, 121, 0, .28);
  font-size: 2rem;
}

.registration-verification-modal .modal-title {
  color: var(--navy);
  font-weight: 900;
}

.verification-modal-lead,
.verification-modal-instructions {
  color: #5b6880;
}

.verification-modal-lead {
  margin: 12px 0 20px;
  font-size: 1.05rem;
  font-weight: 700;
}

.verification-email-box {
  display: grid;
  gap: 4px;
  margin: 0 0 20px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 121, 0, .3);
  border-radius: 10px;
  background: #fff7ef;
}

.verification-email-box span {
  color: #6c7587;
  font-size: .82rem;
  font-weight: 700;
}

.verification-email-box strong {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 1.08rem;
}

.verification-modal-instructions {
  line-height: 1.7;
}

.verification-modal-status {
  margin: 20px 0;
  text-align: start;
}

.verification-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.verification-modal-actions form {
  margin: 0;
}

.verification-modal-actions .btn {
  min-height: 46px;
}

html[dir="rtl"] .verification-modal-actions .bi {
  margin-right: 0;
  margin-left: 5px;
}

.public-form .form-label {
  font-weight: 800;
  color: #17233d;
}

.public-form .form-label span {
  color: #ff7900;
}

.public-form .form-control,
.public-form .form-select,
.faq-stack details {
  min-height: 48px;
  border-color: #d8e0ea;
  border-radius: 6px;
}

.intl-phone-field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(132px, 170px) minmax(0, 1fr);
  gap: 8px;
}

.participant-phone-field {
  grid-template-columns: minmax(138px, 180px) minmax(180px, 1fr);
}

.participant-phone-field > .form-control {
  min-width: 0;
  direction: ltr;
  text-align: start;
}

[dir="rtl"] .participant-phone-field,
[dir="rtl"] .participant-phone-field input,
[dir="rtl"] .participant-phone-field [data-selected-code],
[dir="rtl"] .participant-phone-field .dial-code-option strong {
  direction: ltr;
}

.dial-code-dropdown {
  position: relative;
  min-width: 0;
}

.dial-code-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  background: #fff;
  color: #17233d;
  font-weight: 700;
}

.dial-code-toggle img,
.dial-code-option img {
  width: 23px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .12);
}

.dial-code-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  display: none;
  width: min(360px, 88vw);
  padding: 10px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.dial-code-menu.is-open {
  display: block;
}

.dial-code-search {
  margin-bottom: 8px;
}

.dial-code-options {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 4px;
}

.dial-code-option {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #17233d;
  text-align: inherit;
  min-height: 44px;
}

.dial-code-option:hover,
.dial-code-option:focus-visible {
  background: #f3f7fb;
}

.dial-code-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dial-code-option strong {
  color: #de7f24;
  font-weight: 800;
}

.landing-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 10px 18px;
}

.landing-checks label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
}

.landing-checks input {
  margin-top: 2px;
}

.secure-note {
  margin: 12px 0 0;
  color: #5b6880;
  text-align: center;
  font-size: .9rem;
}

.faq-stack {
  display: grid;
  gap: 12px;
}

.faq-stack details {
  padding: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 24, 48, .08);
}

.faq-stack summary {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-weight: 900;
}

.faq-stack summary::-webkit-details-marker {
  display: none;
}

.faq-stack summary i {
  color: #ff7900;
}

.faq-stack p {
  margin: 12px 0 0 34px;
  color: #46546b;
}

html[dir="ltr"] .section-kicker {
  font-weight: 700;
}

html[dir="ltr"] .landing-overview h2 {
  font-weight: 800;
}

html[dir="ltr"] .landing-meta div,
html[dir="ltr"] .activity-grid span,
html[dir="ltr"] .public-form .form-label,
html[dir="ltr"] .faq-stack summary {
  font-weight: 700;
}

html[dir="ltr"] .landing-checks label,
html[dir="ltr"] .registration-login-note {
  font-weight: 600;
}

html[dir="ltr"] .registration-login-note a {
  font-weight: 700;
}

.landing-footer {
  padding: clamp(56px, 6vw, 96px) 0 0;
  color: rgba(255, 255, 255, .82);
  background: #041b31;
}

.footer-logo {
  width: 210px;
  margin-bottom: 18px;
}

.landing-footer h3 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.landing-footer a,
.landing-footer p {
  display: block;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  margin-bottom: 9px;
}

.landing-footer a {
  width: fit-content;
  transition: color .2s ease, transform .2s cubic-bezier(.22, 1, .36, 1);
}

.landing-footer .footer-email {
  display: flex;
  align-items: baseline;
  gap: .4em;
}

.landing-footer .footer-email > i {
  flex-shrink: 0;
}

.landing-footer .footer-email > a {
  min-width: 0;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.landing-footer a:hover,
.landing-footer a:focus-visible {
  color: #ff7900;
  transform: translateX(5px);
}

html[dir="rtl"] .landing-footer a:hover,
html[dir="rtl"] .landing-footer a:focus-visible {
  transform: translateX(-5px);
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0;
  color: inherit;
}

.socials i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease,
    transform .2s cubic-bezier(.22, 1, .36, 1);
}

.socials a:hover,
.socials a:focus-visible {
  transform: none;
}

.socials a:hover i,
.socials a:focus-visible i {
  color: #fff;
  background: #ff7900;
  box-shadow: 0 8px 20px rgba(255, 121, 0, .28);
  transform: translateY(-3px) scale(1.06);
}

.footer-bottom {
  margin-top: 32px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .9rem;
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero .btn,
  .landing-register .btn,
  .landing-hero .btn i,
  .landing-register .btn i,
  .registration-login-note a,
  .landing-footer a,
  .socials i {
    transition: none;
  }

  .landing-hero .btn:hover,
  .landing-hero .btn:focus-visible,
  .landing-register .btn:hover,
  .landing-register .btn:focus-visible,
  .landing-hero .btn:hover i,
  .landing-hero .btn:focus-visible i,
  .landing-register .btn:hover i,
  .landing-register .btn:focus-visible i,
  .landing-footer a:hover,
  .landing-footer a:focus-visible,
  .socials a:hover i,
  .socials a:focus-visible i {
    transform: none;
  }

  .activity-grid.is-reveal-ready div,
  .activity-grid.is-reveal-ready.is-visible div,
  .activity-grid.is-reveal-ready.is-visible div:hover {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 991px) {
  .landing-hero {
    padding-top: 91px;
  }

  .landing-nav {
    padding: 18px 0;
  }

  .landing-nav.is-scrolled {
    padding: 12px 0;
  }

  .show-desktop,
  .landing-menu,
  .landing-meta,
  .activity-grid,
  .landing-checks {
    grid-template-columns: 1fr;
  }

  .landing-meta .landing-meta-hosted {
    grid-column: auto;
    max-width: none;
  }

  .show-desktop,
  .landing-menu {
    display: grid !important;
    width: 100%;
    gap: 14px;
  }

  .show-desktop.collapse:not(.show) {
    display: none !important;
  }

  .show-desktop.collapse.show,
  .show-desktop.collapsing {
    display: grid !important;
  }

  .show-desktop {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(2, 10, 18, .96);
  }

  .landing-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-actions .btn,
  .landing-actions .lang-toggle {
    width: 100%;
  }

  .landing-nav .container-xxl-custom {
    flex-wrap: wrap;
  }

  .public-form {
    padding-right: 0;
    border-right: 0;
  }

  .registration-alert,
  .registration-login-note {
    margin-right: 0;
  }

  .intl-phone-field {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .landing-actions {
    grid-template-columns: 1fr;
  }

  .participant-phone-field {
    grid-template-columns: minmax(125px, 42%) minmax(0, 1fr);
  }

  .registration-verification-modal .modal-dialog {
    margin: 14px;
  }

  .verification-modal-actions,
  .verification-modal-actions form,
  .verification-modal-actions .btn {
    width: 100%;
  }

  .verification-modal-actions {
    flex-direction: column;
  }
}
.password-field { position: relative; }
.password-field .form-control { padding-inline-end: 3rem; }
.password-toggle { position: absolute; inset-inline-end: .15rem; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: .45rem; background: transparent; color: #475569; }
.password-toggle:hover { background: rgba(15, 23, 42, .08); }
.password-toggle:focus-visible { outline: 3px solid rgba(217, 148, 36, .45); outline-offset: 1px; }
.photo-picker-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.photo-picker-actions input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.photo-picker-status { display: block; margin-top: .5rem; color: #64748b; overflow-wrap: anywhere; }

/* Responsive foundation shared by public, team, and admin screens. */
img,
video,
canvas,
iframe,
object,
embed {
  max-width: 100%;
}

.table-responsive {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.min-w-0 {
  min-width: 0 !important;
}

.form-control,
.form-select,
.input-group,
.alert,
.card,
.team-panel,
.team-form-card,
.admin-table-card,
.chart-card,
.quick-card {
  min-width: 0;
}

.alert,
.form-text,
.auth-card,
.team-summary-main,
.team-panel-head,
.participant-cell,
.file-actions,
.detail-grid dd {
  overflow-wrap: anywhere;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(217, 134, 44, .45);
  outline-offset: 2px;
}

.modal-dialog {
  max-width: min(var(--bs-modal-width, 500px), calc(100vw - 2rem));
}

.modal-content {
  max-height: calc(100dvh - 2rem);
}

.modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-footer {
  flex-wrap: wrap;
}

/* The desktop percentage columns must not survive the mobile-card conversion. */
@media (max-width: 1199px) {
  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-table-wrap .data-table tbody tr > td,
  .team-table-wrap .data-table tbody tr > td:nth-child(n) {
    width: 100%;
    max-width: none;
  }

  .team-table-wrap .data-table td > :not(.participant-cell) {
    min-width: 0;
  }

  .team-table-wrap .participant-cell,
  .team-table-wrap .participant-cell > span,
  .team-table-wrap .file-actions {
    width: 100%;
    max-width: none;
  }

  .team-table-wrap .participant-cell > span {
    min-width: 0;
  }

  .team-table-wrap .participant-cell strong,
  .team-table-wrap .participant-cell small {
    overflow-wrap: anywhere;
  }

  .team-table-wrap .passport-expiry {
    white-space: nowrap;
  }

  .team-table-wrap .file-actions > span:first-child,
  .team-table-wrap .file-actions span {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .team-table-wrap .file-action-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #d8e1ec;
    border-radius: 8px;
    background: #fff;
  }

  .team-table-wrap .status-pill,
  .team-table-wrap .role-chip {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }

  .team-row-actions .btn {
    min-height: 44px;
  }
}

@media (max-width: 991px) {
  .activity-grid {
    grid-template-columns: 1fr;
  }

  .modal-footer > .btn,
  .modal-footer > form,
  .modal-footer > form > .btn {
    min-height: 44px;
  }

  .team-userbar .btn,
  .team-userbar .team-lang,
  .photo-picker-actions .btn {
    min-height: 44px;
  }

  .team-resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .container-xxl-custom {
    padding-inline: 16px;
  }

  .team-main {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
  }

  .team-summary-card,
  .team-panel-head,
  .team-form-card,
  .team-resources-panel {
    padding: 1rem;
  }

  .team-resources-head {
    align-items: flex-start;
  }

  .team-emblem {
    width: 64px;
    height: 64px;
    font-size: 1.55rem;
  }

  .team-summary-main,
  .team-status-block {
    width: 100%;
  }

  .team-userbar {
    flex-wrap: wrap;
  }

  .team-userbar form {
    margin-inline-start: auto;
  }

  .team-table-wrap {
    padding: .75rem;
  }

  .team-table-wrap .data-table tbody tr {
    padding: 1rem;
  }

  .team-table-wrap .data-table td {
    display: grid;
    grid-template-columns: minmax(92px, 32%) minmax(0, 1fr);
    align-items: start;
    justify-content: stretch;
    gap: .75rem;
  }

  .team-table-wrap .data-table td:first-child {
    grid-template-columns: 1fr;
  }

  .team-table-wrap .data-table td::before {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .team-table-wrap .participant-cell {
    align-items: flex-start;
  }

  .team-table-wrap .file-action-buttons {
    flex-wrap: wrap;
  }

  .team-row-actions,
  .team-row-actions form {
    width: 100%;
  }

  .team-row-actions .btn,
  .photo-picker-actions .btn,
  .auth-card .btn,
  .team-login-form .btn,
  .team-userbar .btn,
  .team-userbar .team-lang {
    min-height: 44px;
  }

  .photo-picker-actions .btn {
    flex: 1 1 180px;
  }

  .upload-control i {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
  }

  .modal-dialog {
    margin: .75rem auto;
    max-width: calc(100vw - 1.5rem);
  }

  .modal-content {
    max-height: calc(100dvh - 1.5rem);
  }

  .modal-footer > .btn,
  .modal-footer > form,
  .modal-footer > form > .btn {
    min-height: 44px;
  }
}

@media (max-width: 575px) {
  .container-xxl-custom > .row {
    --bs-gutter-x: 2rem;
  }

  .auth-shell {
    padding: 16px;
  }

  .auth-card {
    padding: 1.25rem;
  }

  .auth-links {
    width: 100%;
    gap: .75rem;
  }

  .auth-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .team-login-main {
    padding: 1rem;
  }

  .team-login-copy,
  .team-login-form {
    padding: 1.25rem;
  }

  .team-brand {
    align-items: flex-start;
  }

  .team-brand span {
    font-size: 1rem;
    text-align: end;
  }

  .team-user-avatar {
    display: none;
  }

  .team-userbar span {
    flex-basis: calc(100% - 130px);
  }

  .team-stat-grid {
    gap: .75rem;
  }

  .team-stat-card {
    min-height: 84px;
    padding: .9rem 1rem;
  }

  .team-resources-head {
    flex-direction: column;
    gap: .6rem;
  }

  .team-resource-card {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: .85rem;
    min-height: 0;
    padding: .85rem;
  }

  .team-resource-file-icon {
    width: 64px;
    min-height: 88px;
  }

  .team-resource-file-icon i {
    font-size: 2.35rem;
  }

  .team-resource-actions {
    grid-template-columns: 1fr;
  }

  .team-table-wrap .data-table td {
    align-items: start;
    flex-direction: initial;
  }

  .team-table-wrap .participant-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .participant-phone-field {
    grid-template-columns: 1fr;
  }

  .dial-code-menu {
    width: min(360px, calc(100vw - 32px));
  }

  .upload-control {
    width: 100%;
  }

  .upload-control span,
  .upload-control em {
    max-width: 100%;
  }

  .photo-picker-actions,
  .photo-picker-actions .btn {
    width: 100%;
  }

  .modal-footer > .btn,
  .modal-footer > form,
  .modal-footer > form > .btn {
    width: 100%;
  }
}

/* A distinct, accessible reminder beside registration/verification feedback. */
.verification-spam-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 20px 0;
  padding: 20px;
  color: #482b08;
  background: #fff3cd;
  border: 2px solid #be771b;
  border-inline-start-width: 6px;
  border-radius: 12px;
  text-align: start;
}
.verification-spam-notice > i { font-size: 26px; flex-shrink: 0; }
.verification-spam-notice strong { display: block; font-size: 20px; line-height: 1.4; font-weight: 800; }
.verification-spam-notice p { margin: 8px 0 0; color: inherit; font-size: 16px; line-height: 1.6; }
@media (max-width: 575px) {
  .verification-spam-notice { padding: 14px; gap: 10px; }
  .verification-spam-notice strong { font-size: 18px; }
}

/* Registration verification confirmation, shared by English and Arabic. */
.registration-email-notice { display: flex; align-items: center; gap: 20px; padding: 24px; background: #d8eee5; color: #103d2b; border: 1px solid #80bea3; border-radius: 12px; text-align: start; }
.registration-email-notice > i { display: flex; align-items: center; justify-content: center; flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; background: #008b50; color: white; font-size: 32px; }
.registration-email-notice strong { display: block; font-size: 20px; font-weight: 800; line-height: 1.4; }
.registration-email-notice p { margin: 10px 0 0; font-size: 18px; line-height: 1.6; }
@media (max-width: 575px) { .registration-email-notice { padding: 16px; gap: 12px; align-items: flex-start; } .registration-email-notice > i { flex-basis: 44px; width: 44px; height: 44px; font-size: 24px; } .registration-email-notice strong { font-size: 18px; } .registration-email-notice p { font-size: 16px; } }

/* Keep the fixed header above registration controls. */
.site-home > .landing-hero { z-index: 1; }
.site-home > main { position: relative; z-index: 0; }
