@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: #F5F4F0;
  color: #111827;
  min-height: 100vh;
  line-height: 1.5;
}

/* LANDING SPLASH */
body.landing-body {
  background: #181818;
  color: #141414;
  overflow-x: hidden;
}

.landing-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fffef8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.landing-intro {
  flex: 0 0 auto;
  background: #fffef8;
  padding: 24px 24px 17px;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 24px;
}

.landing-menu {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #161616;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px;
  -webkit-tap-highlight-color: transparent;
}

.landing-menu span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
}

.landing-copy {
  text-align: center;
}

.landing-logo {
  color: #a729ff;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  margin: 19px 0 13px;
}

.landing-kicker {
  color: #151515;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 27px;
}

.landing-desc {
  color: #0f0f0f;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.65;
  max-width: 330px;
  margin: 0 auto;
}

.landing-actions {
  width: min(100%, 320px);
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-btn {
  min-height: 38px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .15s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}

.landing-btn:hover {
  transform: translateY(-1px);
}

.landing-btn:active {
  transform: translateY(0);
}

.landing-btn-primary {
  background: #ae5bf5;
  color: #ffffff;
}

.landing-btn-secondary {
  background: #fffddf;
  color: #a28b17;
}

.landing-photo-wrap {
  flex: 1 1 auto;
  min-height: 300px;
  background: #121212;
  overflow: hidden;
}

.landing-photo {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* PAGE WRAPPER */
.page {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  min-height: 100vh;
}

/* BACK BUTTON */
.back-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #6B7280;
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}

.back-btn:hover {
  color: #111827;
}

.back-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* PAGE TITLE */
.page-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: #111827;
  text-align: right;
  line-height: 1.15;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.page-sub {
  font-size: 0.875rem;
  color: #9CA3AF;
  text-align: right;
  font-weight: 400;
  margin-bottom: 36px;
}

/* WHITE CARD */
.wcard {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  padding: 24px 20px;
  margin-bottom: 16px;
}

/* LANDING — Welcome card */
.welcome-card {
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 32px);
  text-align: center;
  margin-bottom: 16px;
}

.welcome-icon-wrap {
  width: 64px;
  height: 64px;
  background: #EDE9FE;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-icon-wrap svg {
  color: #6D28D9;
  width: 30px;
  height: 30px;
  display: block;
}

.welcome-title {
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}

.welcome-desc {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.75;
  max-width: 340px;
  margin: 0 auto;
}

/* LANDING — Role cards */
.role-card {
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .15s, border-color .2s;
  border: 1.5px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.role-card:hover {
  box-shadow: 0 4px 20px rgba(109, 40, 217, .12);
  border-color: #DDD6FE;
  transform: translateY(-1px);
}

.role-card:active {
  transform: translateY(0);
}

.role-card-body {
  text-align: right;
  flex: 1;
}

.role-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 3px;
}

.role-card-desc {
  font-size: 0.82rem;
  color: #6B7280;
}

.role-icon {
  width: 46px;
  height: 46px;
  background: #F5F0FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-icon svg {
  width: 22px;
  height: 22px;
  color: #7C3AED;
  display: block;
}

/* JOIN ROLE PAGE */
body.join-body {
  background: #fffefb;
  overflow-x: hidden;
}

.join-page {
  max-width: 1120px;
  background: #fffefb;
  padding: clamp(20px, 4vw, 36px) clamp(16px, 5vw, 48px) 80px;
  min-height: 100svh;
}

.join-page .back-row {
  margin-bottom: 0;
}

.join-stack {
  width: min(100%, 440px);
  margin: clamp(48px, 10vh, 96px) auto 0;
}

.join-page .welcome-card,
.join-page .role-card {
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(17, 24, 39, .09);
}

.join-page .welcome-card {
  padding: clamp(24px, 5vw, 34px) clamp(18px, 5vw, 28px);
  margin-bottom: 18px;
}

.join-page .welcome-icon-wrap {
  width: clamp(34px, 7vw, 44px);
  height: clamp(34px, 7vw, 44px);
  margin-bottom: 13px;
}

.join-page .welcome-icon-wrap svg {
  width: 19px;
  height: 19px;
}

.join-page .welcome-title {
  font-size: clamp(.98rem, 3vw, 1.15rem);
  margin-bottom: 6px;
}

.join-page .welcome-desc {
  font-size: clamp(.72rem, 2vw, .86rem);
  line-height: 1.75;
  max-width: 310px;
}

.join-page .role-card {
  min-height: clamp(78px, 13vw, 92px);
  padding: clamp(16px, 4vw, 20px);
  justify-content: flex-start;
  gap: clamp(12px, 3vw, 16px);
}

.join-page .role-card-body {
  min-width: 0;
}

.join-page .role-icon {
  width: clamp(34px, 7vw, 42px);
  height: clamp(34px, 7vw, 42px);
}

.join-page .role-icon svg {
  width: 18px;
  height: 18px;
}

.join-page .role-card-title {
  font-size: clamp(.9rem, 2.5vw, 1.05rem);
}

.join-page .role-card-desc {
  font-size: clamp(.7rem, 2vw, .82rem);
  line-height: 1.6;
}

/* CLUB SELECT */
.club-select-title {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
  text-align: right;
  color: #111827;
  margin-bottom: 4px;
}

.club-select-sub {
  font-size: 0.875rem;
  color: #9CA3AF;
  text-align: right;
  margin-bottom: 24px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 11px 16px;
  margin-bottom: 24px;
  transition: border-color .2s;
}

.search-bar:focus-within {
  border-color: #8B5CF6;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  color: #374151;
  background: transparent;
  direction: rtl;
  min-width: 0;
}

.search-bar input::placeholder {
  color: #9CA3AF;
}

.search-bar svg {
  color: #9CA3AF;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.clubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.club-tile {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
  padding: 18px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .15s, border-color .2s;
  border: 1.5px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.club-tile:hover {
  box-shadow: 0 4px 16px rgba(109, 40, 217, .10);
  border-color: #DDD6FE;
  transform: translateY(-2px);
}

.club-tile:active {
  transform: translateY(0);
}

.club-tile-info {
  text-align: right;
  min-width: 0;
  flex: 1;
}

.club-tile-name {
  font-size: clamp(0.78rem, 2vw, 0.92rem);
  font-weight: 800;
  color: #111827;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.club-tile-city {
  font-size: 0.72rem;
  color: #9CA3AF;
}

.clogo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clogo img,
.clogo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* CLUB LOGIN header */
.club-hdr {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 28px 0 32px;
  gap: 8px;
}

.club-hdr-logo {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.club-hdr-logo img,
.club-hdr-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.club-hdr-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1D4ED8;
}

.club-hdr-city {
  font-size: 0.82rem;
  color: #6B7280;
}

.login-form-wrap {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.note-text {
  font-size: 0.82rem;
  color: #6B7280;
  text-align: center;
  line-height: 1.75;
  margin-bottom: 24px;
  padding: 0 4px;
}

/* FORM */
.form-group {
  margin-bottom: 18px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  text-align: right;
  margin-bottom: 7px;
  direction: rtl;
}

.field-label::after {
  content: "*";
  color: #8B5CF6;
  font-weight: 800;
}

.field-label .req {
  display: none;
}

.req {
  color: #8B5CF6;
}

.field-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  color: #374151;
  background: #FFFFFF;
  outline: none;
  direction: rtl;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}

.field-input::placeholder {
  color: #D1D5DB;
}

.field-input:focus {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .10);
}

.field-input[type=number]::-webkit-inner-spin-button,
.field-input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.field-input[type=number] {
  -moz-appearance: textfield;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.82rem;
  color: #6B7280;
  text-decoration: none;
  margin-top: 8px;
}

.forgot-link:hover {
  color: #8B5CF6;
}

.ferr {
  font-size: 0.74rem;
  color: #EF4444;
  text-align: right;
  display: block;
  margin-top: 5px;
}

/* BUTTONS */
.btn-primary {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: #8B5CF6;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .2s, transform .15s;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.btn-primary:hover {
  background: #7C3AED;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #C4B5FD;
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

/* STEPPER */
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  direction: rtl;
  margin-bottom: 36px;
  gap: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid #D1D5DB;
  background: #FFFFFF;
  color: #9CA3AF;
  flex-shrink: 0;
  transition: background .25s, border-color .25s, color .25s;
}

.step-item.s-done .step-circle {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

.step-item.s-active .step-circle {
  border-color: #8B5CF6;
  color: #8B5CF6;
  background: #FFFFFF;
  font-weight: 800;
}

.step-label {
  font-size: 0.74rem;
  color: #9CA3AF;
  font-weight: 500;
  white-space: nowrap;
}

.step-item.s-active .step-label {
  color: #111827;
  font-weight: 700;
}

.step-item.s-done .step-label {
  color: #10B981;
}

.s-line {
  height: 2px;
  flex: 1;
  min-width: 24px;
  max-width: 140px;
  background: #D1D5DB;
  margin-top: 17px;
  flex-shrink: 1;
}

.s-line.done {
  background: #10B981;
}

/* PLAYER REGISTRATION PROGRESS */
.register-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  direction: rtl;
  gap: 0;
  padding: 2px 24px 8px;
  margin: 2px auto 24px;
}

.register-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #9CA3AF;
}

.register-progress-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  background: #FFFFFF;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  font-weight: 800;
  transition: border-color .2s, color .2s, background .2s;
}

.register-progress-label {
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s;
}

.register-progress-line {
  height: 2px;
  width: min(26vw, 150px);
  min-width: 56px;
  background: #CBD5E1;
  margin-top: 19px;
  transition: background .2s;
}

/* Step state classes — driven by JS in showStep() so we don't rely on
   data-attribute cascades that Tailwind's CDN preflight can outrank.
   `.is-active` = current step. `.is-done` = any step already completed. */
.register-progress-step.is-active .register-progress-circle {
  border-color: #8B5CF6 !important;
  color: #8B5CF6 !important;
}
.register-progress-step.is-active .register-progress-label {
  color: #111827 !important;
}
.register-progress-step.is-done .register-progress-circle {
  border-color: #8B5CF6 !important;
  background: #8B5CF6 !important;
  color: #FFFFFF !important;
}
.register-progress-step.is-done .register-progress-label {
  color: #8B5CF6 !important;
}
.register-progress-line.is-done {
  background: #8B5CF6 !important;
}

/* INFO ROW */
.info-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: #FAFAFA;
  border: 1px solid #F0F0F0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 22px;
}

.info-row-text {
  font-size: 0.83rem;
  font-weight: 600;
  color: #374151;
  text-align: right;
  flex: 1;
}

.i-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #6B7280;
  flex-shrink: 0;
  font-family: Georgia, serif;
  font-style: italic;
}

/* UPLOAD */
.upload-label {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
  color: #111827;
  margin-bottom: 10px;
}

.upload-zone {
  border: 2px dashed #C4B5FD;
  border-radius: 14px;
  background: #FAFAFA;
  padding: clamp(22px, 5vw, 38px) 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}

.upload-zone:hover {
  border-color: #8B5CF6;
  background: #F5F0FF;
}

.upload-icon {
  color: #8B5CF6;
  margin-bottom: 10px;
}

.upload-icon svg {
  width: 26px;
  height: 26px;
  display: block;
  margin: 0 auto;
}

.upload-main {
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}

.upload-hint {
  font-size: 0.77rem;
  color: #9CA3AF;
}

/* CUSTOM SELECT */
.sel-wrap {
  position: relative;
}

.sel-btn {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  background: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  transition: border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
}

.sel-btn .sel-text {
  color: #D1D5DB;
  flex: 1;
  text-align: right;
}

.sel-btn.has-val .sel-text {
  color: #374151;
}

.sel-btn.open,
.sel-btn:focus {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .10);
  outline: none;
}

.sel-chevron {
  width: 16px;
  height: 16px;
  color: #6B7280;
  transition: transform .2s;
  flex-shrink: 0;
  display: block;
}

.sel-btn.open .sel-chevron {
  transform: rotate(180deg);
}

.sel-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
  z-index: 400;
  overflow: hidden;
  animation: dd-in .15s ease;
}

@keyframes dd-in {
  from {
    opacity: 0;
    transform: translateY(-5px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.sel-option {
  padding: 12px 16px;
  font-size: 0.88rem;
  font-family: 'Cairo', sans-serif;
  color: #374151;
  text-align: right;
  cursor: pointer;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}

.sel-option:hover {
  background: #F5F0FF;
  color: #7C3AED;
}

.sel-option.picked {
  color: #7C3AED;
  font-weight: 700;
}

/* CHECKBOX */
.check-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 22px;
}

.check-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #8B5CF6;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-row label {
  font-size: 0.83rem;
  color: #6B7280;
  cursor: pointer;
  text-align: right;
  line-height: 1.6;
}

.check-row label a {
  color: #8B5CF6;
  text-decoration: none;
}

/* PASSWORD STRENGTH */
.pass-hint {
  font-size: 0.76rem;
  color: #9CA3AF;
  text-align: right;
  margin-top: 5px;
  display: block;
}

.s-bar {
  height: 3px;
  border-radius: 4px;
  background: #E5E7EB;
  margin-top: 6px;
  overflow: hidden;
}

.s-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .35s ease, background .35s ease;
  width: 0;
}

/* NAFATH */
.nafath-card {
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  padding: clamp(22px, 5vw, 32px) clamp(16px, 4vw, 24px);
  text-align: center;
  margin-bottom: 24px;
}

.nafath-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.nafath-card p {
  font-size: 0.82rem;
  color: #6B7280;
  margin-bottom: 18px;
  line-height: 1.75;
}

.nafath-word {
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 900;
  color: #0D9488;
  margin-bottom: 18px;
  letter-spacing: -1px;
  display: block;
}

.btn-nafath {
  background: #0D9488;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.btn-nafath:hover {
  background: #0F766E;
  transform: translateY(-1px);
}

.btn-nafath:active {
  transform: translateY(0);
}

/* NAFATH AUTH */
body.nafath-auth-body {
  background: #070914;
  color: #F8FAFC;
  min-height: 100vh;
}



.nafath-auth-header {
  min-height: 58px;
  padding: 10px clamp(16px, 4vw, 34px);
  background: #1B2837;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
}

.nafath-auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nafath-auth-brand {
  direction: rtl;
  color: #FFFFFF;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 900;
  line-height: 1;
}

.nafath-auth-back {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
}

.nafath-auth-back:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, .08);
}

.nafath-auth-back svg {
  width: 22px;
  height: 22px;
}

.nafath-theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, border-color .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
}

.nafath-theme-toggle:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .28);
  color: #FFFFFF;
}

.nafath-theme-toggle .theme-icon {
  width: 20px;
  height: 20px;
}

.nafath-theme-toggle .theme-icon-moon {
  display: none;
}

.nafath-auth-card {
  width: min(calc(100% - 32px), 760px);
  margin: clamp(40px, 8vh, 68px) auto 0;
  padding: clamp(34px, 5vw, 48px) clamp(22px, 5vw, 64px) clamp(30px, 5vw, 44px);
  background: #101824;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .38);
  text-align: center;
}

.nafath-auth-card h1 {
  color: #FFFFFF;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.nafath-auth-welcome {
  color: #CBD5E1;
  font-size: .96rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.nafath-auth-form {
  display: grid;
  gap: 28px;
}

.nafath-auth-group {
  text-align: right;
}

.nafath-auth-group label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: #E2E8F0;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 8px;
  direction: rtl;
}

.nafath-auth-group label::after {
  content: "*";
  color: #FB7185;
  font-weight: 900;
}

.nafath-auth-group label span {
  display: none;
}

.nafath-auth-input {
  width: 100%;
  min-height: 48px;
  background: #151F2B;
  color: #F8FAFC;
  border: 1.5px solid #475569;
  border-radius: 3px;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .68);
  outline: none;
  padding: 10px 16px;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  direction: rtl;
  text-align: right;
  transition: border-color .18s, box-shadow .18s;
}

.nafath-auth-input::placeholder {
  color: #64748B;
}

.nafath-auth-input:focus {
  border-color: #94A3B8;
  box-shadow: inset 0 -2px 0 #FFFFFF, 0 0 0 3px rgba(148, 163, 184, .13);
}

.nafath-auth-submit,
.nafath-auth-method {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 4px;
  font-family: 'Cairo', sans-serif;
  font-size: .98rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s, transform .14s, opacity .18s;
  -webkit-tap-highlight-color: transparent;
}

.nafath-auth-submit {
  background: #14A394;
  color: #FFFFFF;
}

.nafath-auth-submit:hover:not(:disabled),
.nafath-auth-method:hover {
  transform: translateY(-1px);
}

.nafath-auth-submit:disabled {
  background: #3B4656;
  color: #94A3B8;
  cursor: not-allowed;
  transform: none;
}

.nafath-auth-divider {
  position: relative;
  margin: 24px 0;
  color: #E2E8F0;
  font-size: .95rem;
  font-weight: 700;
}

.nafath-auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(148, 163, 184, .22);
}

.nafath-auth-divider span {
  position: relative;
  z-index: 1;
  background: #101824;
  padding: 0 16px;
}

.nafath-auth-method {
  background: #1C2A38;
  color: #F8FAFC;
  margin-bottom: 26px;
}

.nafath-auth-footer {
  border-top: 1px solid rgba(148, 163, 184, .22);
  padding-top: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: #CBD5E1;
  font-size: .94rem;
  font-weight: 700;
  flex-wrap: wrap;
}

.nafath-auth-footer a {
  color: #14A394;
  text-decoration: none;
  font-weight: 900;
}

.nafath-auth-footer a:hover {
  text-decoration: underline;
}

body.nafath-auth-light {
  background: #F5F4F0;
  color: #111827;
}

body.nafath-auth-light .nafath-auth-shell {
  background: #F5F4F0;
}

body.nafath-auth-light .nafath-auth-header {
  background: #FFFFFF;
  border-bottom-color: #E5E7EB;
  box-shadow: 0 1px 10px rgba(17, 24, 39, .06);
}

body.nafath-auth-light .nafath-auth-brand {
  color: #111827;
}

body.nafath-auth-light .nafath-auth-back,
body.nafath-auth-light .nafath-theme-toggle {
  color: #374151;
}

body.nafath-auth-light .nafath-auth-back:hover,
body.nafath-auth-light .nafath-theme-toggle:hover {
  background: #F3F4F6;
  color: #111827;
}

body.nafath-auth-light .nafath-theme-toggle {
  background: #FFFFFF;
  border-color: #E5E7EB;
}

body.nafath-auth-light .nafath-theme-toggle .theme-icon-sun {
  display: none;
}

body.nafath-auth-light .nafath-theme-toggle .theme-icon-moon {
  display: block;
}

body.nafath-auth-light .nafath-auth-card {
  background: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(17, 24, 39, .08);
}

body.nafath-auth-light .nafath-auth-card h1 {
  color: #111827;
}

body.nafath-auth-light .nafath-auth-welcome,
body.nafath-auth-light .nafath-auth-footer {
  color: #6B7280;
}

body.nafath-auth-light .nafath-auth-group label,
body.nafath-auth-light .nafath-auth-divider {
  color: #111827;
}

body.nafath-auth-light .nafath-auth-input {
  background: #FFFFFF;
  color: #111827;
  border-color: #DDE3EA;
  box-shadow: inset 0 -2px 0 #E5E7EB;
}

body.nafath-auth-light .nafath-auth-input::placeholder {
  color: #C7CDD6;
}

body.nafath-auth-light .nafath-auth-input:focus {
  border-color: #9CA3AF;
  box-shadow: inset 0 -2px 0 #9CA3AF, 0 0 0 3px rgba(17, 24, 39, .07);
}

body.nafath-auth-light .nafath-auth-submit {
  background: #0D9488;
  color: #FFFFFF;
}

body.nafath-auth-light .nafath-auth-submit:disabled {
  background: #E5E7EB;
  color: #9CA3AF;
}

body.nafath-auth-light .nafath-auth-method {
  background: #111827;
  color: #FFFFFF;
}

body.nafath-auth-light .nafath-auth-divider::before,
body.nafath-auth-light .nafath-auth-footer {
  border-color: #E5E7EB;
}

body.nafath-auth-light .nafath-auth-divider::before {
  background: #E5E7EB;
}

body.nafath-auth-light .nafath-auth-divider span {
  background: #FFFFFF;
}

/* MICROSOFT */
.ms-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: clamp(22px, 5vw, 36px) clamp(16px, 4vw, 28px) clamp(18px, 4vw, 28px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
  margin-bottom: 16px;
}

.ms-brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 6px;
}

.ms-squares {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 20px;
  height: 20px;
}

.ms-squares span {
  display: block;
  border-radius: 1px;
}

.ms-squares span:nth-child(1) {
  background: #F25022;
}

.ms-squares span:nth-child(2) {
  background: #7FBA00;
}

.ms-squares span:nth-child(3) {
  background: #00A4EF;
}

.ms-squares span:nth-child(4) {
  background: #FFB900;
}

.ms-brand-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.ms-title {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 800;
  text-align: right;
  color: #111827;
  margin-bottom: 20px;
}

.ms-field-hint {
  font-size: 0.79rem;
  color: #9CA3AF;
  text-align: right;
  margin-bottom: 4px;
}

.ms-line-input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #C8C8C8;
  padding: 8px 0;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  color: #374151;
  background: transparent;
  outline: none;
  direction: rtl;
  margin-bottom: 18px;
  transition: border-color .2s;
  -webkit-appearance: none;
}

.ms-line-input:focus {
  border-bottom-color: #0078D4;
}

.ms-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 22px;
}

.ms-link {
  font-size: 0.79rem;
  color: #0078D4;
  text-decoration: none;
}

.ms-link:hover {
  text-decoration: underline;
}

.ms-link strong {
  font-weight: 700;
}

.btn-ms {
  background: #0078D4;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 9px 24px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-ms:hover {
  background: #106EBE;
}

/* TOAST */
#tc {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.toast {
  background: #1F2937;
  color: #fff;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .22);
  animation: tin .22s ease;
  text-align: center;
}

.toast.s {
  background: #10B981;
}

.toast.e {
  background: #EF4444;
}

@keyframes tin {
  from {
    opacity: 0;
    transform: translateY(-10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* COMPLETE HOME PAGE */
body.home-body {
  background: #fffef8;
  color: #111827;
  overflow-x: hidden;
}

.home-shell {
  width: 100%;
  min-height: 100vh;
  background: #fffef8;
}

.home-hero {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 28px;
}

.home-menu {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #151515;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px;
  -webkit-tap-highlight-color: transparent;
}

.home-menu span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
}

.home-hero-copy {
  max-width: 480px;
  margin: 18px auto 0;
  text-align: center;
}

.home-hero-copy h1 {
  color: #a627ff;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 19px;
}

.home-kicker {
  color: #0f172a;
  font-size: .86rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.home-lead {
  color: #111827;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.65;
  margin: 0 auto;
}

.home-actions {
  width: min(100%, 330px);
  margin: 22px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-btn {
  min-height: 38px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .15s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}

.home-btn:hover {
  transform: translateY(-1px);
  filter: brightness(.98);
}

.home-btn:active {
  transform: translateY(0);
}

.home-btn-primary {
  background: #ad5cf4;
  color: #fff;
}

.home-btn-soft {
  background: #fffddd;
  color: #9a8514;
}

.home-hero-photo {
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 4 / 5;
  margin: 34px auto 0;
  overflow: hidden;
  background: #121212;
}

.home-hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.home-signing-card {
  position: absolute;
  right: clamp(14px, 12%, 96px);
  bottom: 42px;
  width: min(74%, 330px);
  min-height: 88px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .2);
  padding: 18px 18px 18px 52px;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-signing-card strong {
  color: #111827;
  font-size: .95rem;
  line-height: 1.5;
}

.home-signing-card small {
  color: #6b7280;
  font-size: .75rem;
}

.home-sparkle {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  color: #9d4dff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-sparkle svg {
  width: 26px;
  height: 26px;
}

.home-stats {
  width: min(100%, 720px);
  margin: 46px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.home-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.home-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px;
}

.home-stat-icon svg {
  width: 22px;
  height: 22px;
}

.home-stat-icon.blue {
  color: #0b69c7;
  background: #64b7ff;
}

.home-stat-icon.purple {
  color: #6d28d9;
  background: #f4e8ff;
}

.home-stat-icon.green {
  color: #1f4a2d;
  background: #dff5e4;
}

.home-stat-icon.cream {
  color: #7d6400;
  background: #fffddd;
}

.home-stat strong {
  font-size: .92rem;
  line-height: 1.2;
  margin-bottom: 5px;
}

.home-stat small {
  color: #1f2937;
  font-size: .78rem;
  line-height: 1.4;
}

.home-section {
  width: min(100% - 40px, 980px);
  margin: 54px auto 0;
}

.home-section h2 {
  color: #111827;
  font-size: 1.55rem;
  font-weight: 900;
  text-align: center;
  line-height: 1.25;
  margin-bottom: 22px;
  letter-spacing: 0;
}

.home-section-sub {
  color: #6b7280;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.7;
  margin: -6px 0 28px;
}

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

.home-feature {
  position: relative;
  min-height: 150px;
  background: #fff;
  border: 1px solid #f2eef6;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(17, 24, 39, .09);
  padding: 24px 68px 22px 20px;
}

.home-feature-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fbecff;
  color: #5b1a8d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-feature-icon svg {
  width: 20px;
  height: 20px;
}

.home-feature h3 {
  font-size: 1rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 8px;
}

.home-feature p {
  color: #374151;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.75;
}

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

.home-story {
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee9f4;
  border-radius: 9px;
  box-shadow: 0 5px 16px rgba(17, 24, 39, .11);
}

.home-story-img {
  position: relative;
  aspect-ratio: 1.72 / 1;
  overflow: hidden;
  background: #101827;
}

.home-story-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.home-story-img::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
}

.home-story-name {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-story-name strong {
  font-size: .9rem;
  line-height: 1.25;
}

.home-story-name span {
  font-size: .72rem;
  line-height: 1.35;
}

.home-story-body {
  position: relative;
  padding: 18px 18px 14px;
  text-align: right;
}

.home-quote {
  display: block;
  color: #9c27ff;
  font-family: Georgia, serif;
  font-size: 2.25rem;
  line-height: .8;
  margin-bottom: 5px;
}

.home-story-body p {
  color: #111827;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.75;
  margin-bottom: 14px;
}

.home-story-line {
  height: 2px;
  border-radius: 999px;
  background: #b031ff;
  margin-bottom: 8px;
}

.home-story-body small {
  color: #374151;
  font-size: .7rem;
  font-weight: 700;
}

.home-faq {
  width: min(100% - 40px, 760px);
  padding-bottom: 70px;
}

.home-faq-list {
  border-top: 1px solid #e5e7eb;
}

.home-faq-list details {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.home-faq-list summary {
  min-height: 40px;
  cursor: pointer;
  list-style: none;
  color: #111827;
  font-size: .82rem;
  font-weight: 700;
  padding: 11px 30px 11px 8px;
  position: relative;
}

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

.home-faq-list summary::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid #6b7280;
  border-bottom: 1.6px solid #6b7280;
  transform: rotate(45deg);
  transition: transform .18s;
}

.home-faq-list details[open] summary::before {
  transform: rotate(225deg);
  top: 20px;
}

.home-faq-list p {
  color: #4b5563;
  font-size: .78rem;
  line-height: 1.75;
  padding: 0 30px 14px 8px;
}

.home-register-link {
  display: block;
  color: #1d7bd8;
  text-align: center;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  margin: 18px auto 0;
}

@media (min-width: 900px) {
  .home-hero {
    padding-top: 32px;
  }

  .home-hero-copy {
    max-width: 560px;
    margin-top: 26px;
  }

  .home-hero-copy h1 {
    font-size: 2.15rem;
  }

  .home-kicker {
    font-size: .95rem;
  }

  .home-lead {
    font-size: 1rem;
  }

  .home-actions {
    flex-direction: row;
    width: min(100%, 460px);
  }

  .home-btn {
    flex: 1;
  }

  .home-hero-photo {
    width: min(100%, 860px);
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }
}

@media (max-width: 780px) {
  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 420px);
    gap: 32px 26px;
  }

  .home-feature-grid,
  .home-story-grid {
    grid-template-columns: 1fr;
  }

  .home-story-grid {
    width: min(100%, 390px);
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .home-hero {
    padding: 24px 0 0;
  }

  .home-nav,
  .home-hero-copy {
    padding-inline: 22px;
  }

  .home-hero-copy {
    margin-top: 18px;
  }

  .home-hero-copy h1 {
    font-size: 1.55rem;
    margin-bottom: 18px;
  }

  .home-kicker {
    font-size: .78rem;
    margin-bottom: 28px;
  }

  .home-lead {
    font-size: .78rem;
  }

  .home-actions {
    width: calc(100% - 44px);
    max-width: 330px;
  }

  .home-btn {
    min-height: 37px;
    font-size: .76rem;
  }

  .home-hero-photo {
    width: 100%;
    aspect-ratio: 397 / 488;
    margin-top: 32px;
  }

  .home-signing-card {
    right: 8px;
    bottom: 44px;
    width: 72%;
    min-height: 84px;
    padding: 16px 16px 16px 48px;
  }

  .home-signing-card strong {
    font-size: .83rem;
  }

  .home-stats {
    margin-top: 44px;
    padding: 0 30px;
  }

  .home-section {
    width: calc(100% - 32px);
    margin-top: 48px;
  }

  .home-section h2 {
    font-size: 1.35rem;
  }

  .home-feature {
    min-height: 138px;
    padding: 22px 64px 20px 16px;
  }

  .home-faq {
    width: calc(100% - 32px);
  }
}

@media (max-width: 360px) {

  .home-nav,
  .home-hero-copy {
    padding-inline: 18px;
  }

  .home-actions {
    width: calc(100% - 36px);
  }

  .home-signing-card {
    right: 8px;
    width: 76%;
  }

  .home-stats {
    padding: 0 20px;
  }

  .home-feature p,
  .home-story-body p {
    font-size: .78rem;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .clubs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .s-line {
    max-width: 80px;
  }
}

@media (max-width: 480px) {
  .landing-shell {
    max-width: none;
  }

  .landing-intro {
    padding: 22px 24px 16px;
  }

  .landing-logo {
    font-size: 1.5rem;
    margin-top: 18px;
  }

  .landing-kicker {
    font-size: .78rem;
    margin-bottom: 27px;
  }

  .landing-desc {
    font-size: .8rem;
    max-width: 300px;
  }

  .landing-actions {
    width: calc(100% - 24px);
    max-width: 320px;
  }

  .landing-btn {
    min-height: 36px;
    font-size: .78rem;
  }

  .landing-photo-wrap,
  .landing-photo {
    min-height: 282px;
  }

  .join-page {
    max-width: none;
    padding: 22px 20px 72px;
  }

  .join-stack {
    width: 100%;
    max-width: 330px;
    margin-top: 64px;
  }

  .page {
    padding: 16px 12px 72px;
  }

  .join-page {
    padding: 22px 20px 72px;
  }

  .wcard {
    padding: 18px 16px;
  }

  .welcome-card {
    padding: 26px 16px;
  }

  .join-page .welcome-card {
    padding: 24px 18px;
  }

  .nafath-card {
    padding: 20px 14px;
  }

  .ms-card {
    padding: 20px 14px 18px;
  }

  .club-hdr {
    margin: 18px 0 22px;
  }

  .login-form-wrap {
    padding: 16px 14px;
  }

  .role-card {
    padding: 16px 14px;
  }

  .join-page .role-card {
    padding: 16px 18px;
  }

  .page-sub {
    margin-bottom: 22px;
  }

  .stepper {
    margin-bottom: 26px;
  }

  .register-progress {
    padding-inline: 8px;
    margin-bottom: 18px;
  }

  .register-progress-circle {
    width: 34px;
    height: 34px;
    font-size: .78rem;
  }

  .register-progress-line {
    min-width: 48px;
    margin-top: 16px;
  }

  .register-progress-label {
    font-size: .72rem;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .s-line {
    margin-top: 15px;
    min-width: 16px;
    max-width: 56px;
  }

  .step-label {
    font-size: 0.66rem;
  }

  .info-row {
    padding: 10px 12px;
  }

  .info-row-text {
    font-size: 0.76rem;
  }

  .club-tile-name {
    font-size: 0.76rem;
  }

  .role-card-title {
    font-size: 1rem;
  }

  .clubs-grid {
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .landing-intro {
    padding: 20px 18px 15px;
  }

  .landing-logo {
    font-size: 1.42rem;
    margin-bottom: 12px;
  }

  .landing-kicker {
    font-size: .74rem;
    margin-bottom: 24px;
  }

  .landing-desc {
    font-size: .75rem;
    line-height: 1.6;
  }

  .landing-actions {
    gap: 10px;
    margin-top: 18px;
  }

  .landing-btn {
    min-height: 34px;
  }

  .landing-photo-wrap,
  .landing-photo {
    min-height: 260px;
  }

  .join-page {
    padding: 20px 16px 64px;
  }

  .join-stack {
    margin-top: 52px;
  }

  .clubs-grid {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 12px 10px 64px;
  }

  .clogo {
    width: 38px;
    height: 38px;
  }

  .club-tile {
    padding: 14px 12px;
  }
}

@media (hover: none) {

  .role-card:hover,
  .club-tile:hover,
  .btn-primary:hover,
  .btn-nafath:hover,
  .landing-btn:hover {
    transform: none;
  }
}

/* HIDE DATALIST/AUTOCOMPLETE DROPDOWN ARROW */
input::-webkit-calendar-picker-indicator {
  display: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.notif-sections {
  display: grid;
  gap: 24px;
}

.notif-group {
  display: grid;
  gap: 14px;
}

.notif-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.notif-group-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notif-group-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tj-text, #0f0f10);
}

.notif-group-count {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f6ebff;
  color: #6b21a8;
  font-size: 0.9rem;
  font-weight: 700;
}

.notif-group-count-read {
  background: #fff0f0;
  color: #eb3333;
}

.notif-mark-all-btn {
  border: 1px solid #ece9e3;
  background: #fff;
  color: #eb3333;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.notif-mark-all-btn:hover {
  background: #fff0f0;
  border-color: #eb3333;
}

.notif-mark-all-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notif-body-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.is-new-card {
  border-inline-start: 4px solid #b670ff;
}

.is-read-card {
  border-inline-start: 4px solid #eb3333;
  background: #fffafa;
}

.notif-icon-new {
  color: #b670ff;
}

.notif-icon-read {
  color: #eb3333;
}

.notif-new-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #b670ff;
  flex: 0 0 auto;
}

.notif-read-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff0f0;
  color: #eb3333;
  font-size: 0.8rem;
  font-weight: 700;
}

#readGroup .notif-card {
  opacity: 0.92;
}

@media (max-width: 640px) {

  .notif-group-head,
  .notif-body-top {
    align-items: flex-start;
  }

  .notif-mark-all-btn {
    width: 100%;
    justify-content: center;
  }
}
/* Master Structural Containers */
.nafath-auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #fafbfe;
  box-sizing: border-box;
}

.auth-split-wrapper {
  display: flex;
  flex: 1 1 auto; /* Forces the split containers to take up 100% of the available view height */
  width: 100%;
}
/* 1. VISUAL SIDE PANEL (Desktop Layout Spec) */
.auth-visual-side {
  display: none;
  position: relative;
  flex: 1.1;
  background: linear-gradient(135deg, #160033 0%, #31105e 50%, #6826b8 100%);
  padding: 60px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Modern graphic blur accents in the background */
.auth-visual-side::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: #f2de00;
  opacity: 0.15;
  filter: blur(100px);
  top: -50px;
  right: -50px;
  border-radius: 50%;
}

@media (min-width: 1024px) {
  .auth-visual-side {
    display: flex;
  }
}

.visual-badge-overlay {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.visual-content-box {
  color: #ffffff;
  z-index: 2;
  max-width: 520px;
}

.visual-content-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
  color: #ffffff;
}

.visual-content-box p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* 2. FORM ACTION AREA PANEL */
.auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Clean Card Wrapper */
.nafath-auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid #eef1f6;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(27, 20, 52, 0.03);
}

/* Nafath Shield Indicator Top Box */
.nafath-badge-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e7fbf3;
  color: #128957; /* Trusted Nafath Green Theme Accent */
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.nafath-badge-logo svg {
  width: 14px;
  height: 14px;
}

/* Heading Tags Typography Specs */
#nafath-auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #11142d;
  margin-bottom: 6px;
}

.nafath-auth-welcome {
  color: #6c727f;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.brand-name-highlight {
  color: var(--tj-primary, #b670ff);
  font-weight: 700;
}

/* Input Fields Containers Styling */
.nafath-auth-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.nafath-auth-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #384252;
}

.required-star {
  color: #e03131;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.nafath-auth-input {
  width: 100%;
  height: 52px;
  border: 1.5px solid #e3e7f0;
  border-radius: 14px;
  padding: 0 46px 0 16px; /* Space on the right for the prefix token indicator */
  font-size: 1.05rem;
  color: #11142d;
  background-color: #fafbfe;
  transition: all 0.2s ease;
}

.nafath-auth-input:focus {
  outline: none;
  border-color: var(--tj-primary, #b670ff);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(182, 112, 255, 0.12);
}

.field-icon {
  position: absolute;
  right: 18px;
  color: #a0aec0;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Dynamic State Buttons Spec Layouts */
.nafath-auth-submit {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: #128957; /* Standard Secure Nafath Action green */
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(18, 137, 87, 0.25);
  transition: all 0.2s ease;
}

.nafath-auth-submit:hover:not(:disabled) {
  background: #0f7349;
  transform: translateY(-1px);
}

.nafath-auth-submit:disabled {
  background: #e3e7f0;
  color: #a0aec0;
  cursor: not-allowed;
  box-shadow: none;
}

/* Separation Rules Decorator Row */
.nafath-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #a0aec0;
  font-size: 0.85rem;
  margin: 28px 0;
}

.nafath-auth-divider::before,
.nafath-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px dashed #e3e7f0;
}

.nafath-auth-divider:not(:empty)::before { margin-left: .5em; }
.nafath-auth-divider:not(:empty)::after { margin-right: .5em; }

/* Secondary Authentication Alternative Route Button styling */
.nafath-auth-method {
  width: 100%;
  height: 50px;
  background: #ffffff;
  border: 1.5px solid #e3e7f0;
  border-radius: 14px;
  color: #4a5568;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nafath-auth-method:hover {
  background: #fafbfe;
  border-color: #cbd5e0;
  color: #1a202c;
}

.btn-inner-icon {
  width: 16px;
  height: 16px;
  color: #718096;
}

/* Footer Bottom Link Wraps */
.nafath-auth-footer {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  font-size: 0.9rem;
  color: #718096;
}

.create-account-link {
  color: var(--tj-primary, #b670ff);
  font-weight: 700;
  text-decoration: none;
}

.create-account-link:hover {
  text-decoration: underline;
}
.bg-tj-surface-card {
  /* 1. REMOVE THE TOP MARGIN: This kills the empty gap causing the leak */
  margin-top: 0 !important; 
  
  /* 2. ADD TOP PADDING INSTEAD: Creates the same internal breathing room safely */
  padding-top: var(--sp-12, 3rem); 
  
  /* 3. ENSURE BACKGROUND MATCHES: Blends seamlessly with your specific surface system token */
  background-color: #fafbfe;
  
  /* 4. SOLIDIFY BORDERS: Guarantees your borders render sharply without shifting pixels */
  border-top: 1.5px solid var(--tj-border) !important;
  box-sizing: border-box;
}

/* 1. BACKDROP OVERLAY OVER MASK LAYER */
.nf-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.45); /* Soft, premium background dimming */
  backdrop-filter: blur(6px);                 /* Frosted glass effect */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;                               /* Keeps it above headers and layouts */
  padding: 20px;
}

/* 2. CONFIRMATION CARD (Official White Theme) */
.nf-modal-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-align: center;
  box-sizing: border-box;
}

/* 3. TYPOGRAPHY CODES */
.nf-modal-title {
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 12px 0;
}

.nf-modal-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 24px 0;
}

.nf-modal-desc {
  color: #475569;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 28px 0;
}

/* 4. VISUAL RE-DIRECTION FLOW TRACK selectors */
.nf-route-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.nf-node-box {
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 12px 20px;
  border-radius: 14px;
  min-width: 110px;
}

/* Highlights the target node using the official Nafath green theme */
.nf-node-box.nf-node-active {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #128957;
}

.nf-node-text {
  font-size: 0.9rem;
  font-weight: 600;
}
#nafathRedirectModal .nf-node-box .nf-node-text {
  color: #0f172a !important; /* Dark Slate Grey text override */
  display: inline-block;
}

#nafathRedirectModal .nf-node-box.nf-node-active .nf-node-text {
  color: #128957 !important; /* Authentic Nafath Green text override */
}


.nf-flow-arrow {
  color: #94a3b8;
  width: 20px;
  height: 20px;
  transform: rotate(90deg); /* Flips arrow icon cleanly into RTL layout stream orientation */
}

/* 5. INTERACTIVE BUTTON INTERFACE GROUP CODES */
.nf-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Official Secure Green Nafath Action Selector Button Style */
.nf-btn-primary {
  width: 100%;
  height: 48px;
  background-color: #128957;
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(18, 137, 87, 0.15);
  transition: all 0.2s ease;
}

.nf-btn-primary:hover {
  background-color: #0f7349;
  transform: translateY(-1px);
}

/* Clean Slate Interface Cancel Secondary Selection Button Style */
.nf-btn-secondary {
  width: 100%;
  height: 48px;
  background-color: #ffffff;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nf-btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}
