/* Affiliate / commission marketing — KLKBAT site backdrop + numbered sections */

html {
  min-height: 100%;
}

body.affiliate-page {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--text-primary, #fff);
  font-family: "Cairo", "Inter", system-ui, sans-serif;
}

body.affiliate-page[lang="en"] {
  font-family: "Inter", "Cairo", system-ui, sans-serif;
}

.lang-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 18, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary, #fff);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, transform 0.15s;
}

.lang-toggle:hover {
  border-color: rgba(234, 59, 6, 0.55);
  transform: translateY(-1px);
}

.lang-icon-translate {
  display: inline-flex;
  line-height: 0;
  flex-shrink: 0;
}

.lang-icon-translate svg {
  display: block;
  width: 1.85rem;
  height: auto;
}

.affiliate-shell {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 3rem;
}

.affiliate-card {
  background: rgba(14, 12, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(234, 59, 6, 0.06) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.affiliate-card__head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.affiliate-card__title {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  color: #fff;
}

.affiliate-card__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  margin-inline: auto;
}

.affiliate-sections {
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 5vw, 3.25rem);
}

.affiliate-section {
  --num-size: clamp(3.5rem, 14vw, 6.5rem);
}

.affiliate-section__marker {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  min-height: calc(var(--num-size) * 0.85);
}

/* Physical zig-zag: right / left on screen for both RTL and LTR */
.affiliate-section--side-right .affiliate-section__marker {
  justify-content: flex-end;
}

[dir="rtl"] .affiliate-section--side-right .affiliate-section__marker {
  justify-content: flex-start;
}

.affiliate-section--side-left .affiliate-section__marker {
  justify-content: flex-start;
}

[dir="rtl"] .affiliate-section--side-left .affiliate-section__marker {
  justify-content: flex-end;
}

.affiliate-num {
  position: relative;
  font-size: var(--num-size);
  font-weight: 900;
  line-height: 0.85;
  color: #fff;
  letter-spacing: -0.04em;
  user-select: none;
}

.affiliate-num__bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 28%;
  min-height: 1.35rem;
  background: var(--primary, #ea3b06);
  border-radius: 4px;
  z-index: -1;
}

/* Orange bar extends from digit toward outer (screen) edge */
.affiliate-section--side-right .affiliate-num__bar {
  left: 42%;
  right: -55%;
}

[dir="rtl"] .affiliate-section--side-right .affiliate-num__bar {
  left: -55%;
  right: 42%;
}

.affiliate-section--side-left .affiliate-num__bar {
  right: 42%;
  left: -55%;
}

[dir="rtl"] .affiliate-section--side-left .affiliate-num__bar {
  right: -55%;
  left: 42%;
}

.affiliate-section__body {
  text-align: start;
}

.affiliate-section__title {
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 800;
  margin: 0 0 0.85rem;
  color: #fff;
}

.affiliate-section__text {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

.affiliate-section__text:last-child {
  margin-bottom: 0;
}

.affiliate-section__text strong,
.affiliate-section__list strong {
  color: #fff;
  font-weight: 700;
}

.affiliate-section__list {
  margin: 0;
  padding-inline-start: 1.25rem;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

.affiliate-section__list li {
  margin-bottom: 0.45rem;
}

.affiliate-section__list li:last-child {
  margin-bottom: 0;
}

.affiliate-closing {
  margin: 2.5rem 0 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.affiliate-card__foot {
  margin-top: 2rem;
}

.affiliate-card__foot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.affiliate-foot-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.affiliate-foot-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.affiliate-foot-social a:hover {
  color: var(--primary, #ea3b06);
  transform: scale(1.06);
  border-color: rgba(234, 59, 6, 0.35);
}

.affiliate-foot-social a:focus-visible {
  outline: 2px solid var(--primary, #ea3b06);
  outline-offset: 2px;
}

.affiliate-foot-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.affiliate-foot-copy {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 2.25rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--primary, #ea3b06), var(--primary-dark, #c73205));
  box-shadow: 0 8px 32px rgba(234, 59, 6, 0.35);
  border: none;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(234, 59, 6, 0.45);
}

@media (max-width: 520px) {
  .affiliate-shell {
    padding-top: 5rem;
  }

  .lang-toggle {
    top: 0.65rem;
    left: 0.65rem;
    padding-inline: 0.75rem;
    font-size: 0.82rem;
  }
}
