/* Partner-programme page shared by the four storefronts. Brand palette comes from a class, never inline styles. */
.aff {
  --a: #8b5cf6;
  --b: #1e293b;
  --deep: #0f172a;
  --ink: #07120d;
  --page: #f3f5f7;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  box-sizing: border-box;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Noto Sans Bengali', sans-serif;
  line-height: 1.5;
  border-radius: 14px;
}

.aff *,
.aff *::before,
.aff *::after {
  box-sizing: border-box;
}

.aff--cricbuz {
  --a: #00e59b;
  --b: #0a4fd5;
  --deep: #06143a;
}

.aff--starsport {
  --a: #10b981;
  --b: #134e3b;
  --deep: #0d1117;
}

.aff--noball {
  --a: #10b981;
  --b: #f59e0b;
  --deep: #052e22;
}

.aff--9wicket {
  --a: #ffb80c;
  --b: #5a4200;
  --deep: #1e1e1e;
}

.aff-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  padding: 22px 18px 6px;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--deep);
  background: linear-gradient(135deg, var(--b) 0%, var(--deep) 62%);
  background: radial-gradient(120% 140% at 85% 0%, color-mix(in srgb, var(--b) 70%, var(--deep)) 0%, var(--deep) 62%);
  color: #fff;
}

.aff-logo {
  display: block;
  max-height: 38px;
  max-width: 160px;
  width: auto;
  height: auto;
  margin: 0 0 10px;
}

.aff-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--a);
  font-weight: 800;
}

.aff-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.12;
  font-weight: 900;
  color: #fff;
}

.aff-subtitle {
  margin: 0 0 14px;
  font-size: 15px;
  color: #e2e8f0;
  max-width: 46ch;
}

.aff-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.aff-chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  background: var(--a);
}

.aff-art {
  width: 100%;
  max-width: 280px;
  height: auto;
  justify-self: center;
}

.aff-ring {
  fill: none;
  stroke: var(--a);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: 120px 100px;
  animation: aff-pulse 3.6s ease-out 3;
}

.aff-ring--1 {
  animation-delay: 1.2s;
}

.aff-ring--2 {
  animation-delay: 2.4s;
}

.aff-core {
  fill: var(--a);
}

.aff-initial {
  fill: var(--ink);
  font: 900 32px -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.aff-orbit {
  transform-origin: 120px 100px;
  animation: aff-spin 9s linear 2;
}

.aff-coin {
  fill: #fff;
  stroke: var(--a);
  stroke-width: 3;
}

.aff-coin--1 {
  fill: var(--a);
  stroke: #fff;
}

.aff-coin--2 {
  fill: #fff;
  stroke: var(--b);
}

.aff-line {
  stroke: var(--a);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: aff-draw 3.6s ease-in-out 1 forwards;
}

@keyframes aff-pulse {
  0% {
    opacity: .65;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

@keyframes aff-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes aff-draw {
  0% {
    stroke-dashoffset: 260;
  }

  55%,
  100% {
    stroke-dashoffset: 0;
  }
}

.aff-cta {
  margin: 14px 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--card);
  border: 2px solid var(--a);
  text-align: center;
}

.aff-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  background: var(--a);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .15s ease;
}

.aff-button:hover {
  transform: translateY(-2px);
}

.aff-button:focus-visible,
.aff-home:focus-visible,
.aff-tracking:focus-visible,
.aff-faq__item summary:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.aff-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 10px 0 0 12px;
  padding: 0 14px;
  font-weight: 800;
  color: var(--text);
  text-decoration: underline;
}

.aff-signin:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.aff-hint,
.aff-unavailable {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.aff-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.aff-card {
  position: relative;
  padding: 16px 14px 14px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08), inset 0 2px 0 var(--a);
  transition: border-color 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aff-card__n {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 13px;
  color: var(--ink);
  background: var(--a);
}

.aff-card__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.aff-card__text {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.aff-steps,
.aff-rules,
.aff-faq {
  margin: 0 0 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .1);
}

.aff-h2 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 900;
  color: var(--text);
}

.aff-steps__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: aff;
}

.aff-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  counter-increment: aff;
}

.aff-step::before {
  content: counter(aff);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 900;
  color: var(--ink);
  background: var(--a);
}

.aff-step strong {
  color: var(--text);
}

.aff-step span {
  color: var(--muted);
  font-size: 14px;
}

.aff-rules__list {
  margin: 0 0 8px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
}

.aff-note {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  background: #e6f4ee;
  background: color-mix(in srgb, var(--a) 18%, #fff);
}

.aff-faq__item {
  border-top: 1px solid #e2e8f0;
  padding: 4px 0;
}

.aff-faq__item summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

.aff-faq__item p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.aff-responsible {
  margin: 6px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.aff-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 4px 0 0;
  font-weight: 800;
  color: var(--text);
  text-decoration: underline;
}

.aff-tracking {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 4px 16px 0 0;
  font-weight: 800;
  color: var(--text);
  text-decoration: underline;
}

/* Friend-referral panel (shared helper affiliateReferralPanel.js). Own variables so it works outside .aff pages.
   Storefront accent: .aff-ref--<brand>; dark surface: .aff-ref--dark. Classes only, never inline styles. */
.aff-ref {
  --ra: #10b981;
  --rtext: #0f172a;
  --rmuted: #475569;
  --rcard: #ffffff;
  --rnote: #f1f5f9;
  --rfield: #f8fafc;
  --rline: #cbd5e1;
  box-sizing: border-box;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 12px;
  background: var(--rcard);
  color: var(--rtext);
  border: 1px solid var(--rline);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .1), inset 0 2px 0 var(--ra);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Noto Sans Bengali', sans-serif;
  line-height: 1.5;
}

.aff-ref--cricbuz {
  --ra: #00e59b;
}

.aff-ref--starsport {
  --ra: #17e7a8;
}

.aff-ref--noball {
  --ra: #10b981;
}

.aff-ref--9wicket {
  --ra: #ffb80c;
}

.aff-ref--dark {
  --rtext: #e2e8f0;
  --rmuted: #a3b1c2;
  --rcard: #111827;
  --rnote: #1e293b;
  --rfield: #0b1220;
  --rline: #334155;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}

.aff-ref *,
.aff-ref *::before,
.aff-ref *::after {
  box-sizing: border-box;
}

.aff-ref__title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 900;
}

.aff-ref__text {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--rmuted);
  overflow-wrap: anywhere;
}

.aff-ref__note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: var(--rnote);
  color: var(--rtext);
  overflow-wrap: anywhere;
}

.aff-ref__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.aff-ref__label {
  flex: 0 0 100%;
  font-size: 12px;
  font-weight: 800;
  color: var(--rmuted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.aff-ref__value {
  flex: 1 1 180px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--rline);
  background: var(--rfield);
  color: var(--rtext);
  font: 700 14px/1.3 ui-monospace, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.aff-ref__button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  color: #07120d;
  background: var(--ra);
}

.aff-ref__button--share {
  color: var(--rtext);
  background: transparent;
  border: 2px solid var(--ra);
}

.aff-ref__button:focus-visible {
  outline: 3px solid var(--rtext);
  outline-offset: 3px;
}

.aff-ref__count {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.aff-ref__status {
  min-height: 1.4em;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--rmuted);
}

@media (min-width: 760px) {
  .aff {
    padding: 18px;
  }

  .aff-hero {
    grid-template-columns: 1.2fr .8fr;
    padding: 30px 28px 24px;
  }

  .aff-hero .noball-affiliate-language {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .aff-steps__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .aff-step {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .aff-step::before {
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {

  .aff-ring,
  .aff-orbit,
  .aff-line {
    animation: none;
  }

  .aff-ring {
    opacity: .35;
  }

  .aff-line {
    stroke-dashoffset: 0;
  }

  .aff-button {
    transition: none;
  }
}

@media (forced-colors: active) {

  .aff-chip,
  .aff-button,
  .aff-card__n,
  .aff-step::before,
  .aff-ref__button {
    border: 1px solid CanvasText;
  }
}