:root {
  --affiliate-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --affiliate-bg: radial-gradient(1200px 460px at -14% -16%, rgba(104, 122, 255, 0.24), transparent 60%),
    radial-gradient(900px 320px at 112% 6%, rgba(56, 156, 255, 0.18), transparent 64%),
    radial-gradient(760px 280px at 124% 118%, rgba(58, 110, 255, 0.16), transparent 70%),
    #020619;
  --affiliate-surface: rgba(13, 17, 34, 0.82);
  --affiliate-surface-soft: rgba(21, 25, 46, 0.62);
  --affiliate-surface-alt: rgba(34, 40, 73, 0.46);
  --affiliate-border: rgba(140, 146, 198, 0.28);
  --affiliate-border-strong: rgba(140, 146, 198, 0.44);
  --affiliate-text: #f5f7ff;
  --affiliate-muted: #9aa4c3;
  --affiliate-accent: #8b5cf6;
  --affiliate-accent-strong: #6c63ff;
  --affiliate-accent-glow: 0 18px 42px rgba(45, 73, 196, 0.54);
  --affiliate-radius-lg: 24px;
  --affiliate-radius-md: 16px;
  --affiliate-radius-sm: 10px;
  --affiliate-shadow: 0 28px 60px rgba(4, 7, 20, 0.55);
  --affiliate-grid-color: rgba(114, 126, 188, 0.12);
  color-scheme: dark;
}

body.affiliate-theme {
  margin: 0;
  min-height: 100vh;
  font-family: var(--affiliate-font);
  color: var(--affiliate-text);
  background: var(--affiliate-bg);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  overflow-x: hidden;
}

body.affiliate-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(38, 47, 110, 0.48), transparent 55%),
    radial-gradient(420px 260px at 85% 8%, rgba(94, 141, 255, 0.22), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.affiliate-page {
  flex: 1;
  position: relative;
  z-index: 1;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 36px) 0 clamp(64px, 7vw, 96px);
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 56px);
}

.affiliate-max-width {
  width: min(1120px, 94vw);
  margin: 0 auto;
}

.affiliate-page--centered {
  justify-content: center;
  align-items: center;
}

.affiliate-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  width: 100%;
  padding: clamp(12px, 2.4vw, 20px) 0 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.affiliate-nav__inner {
  width: min(1000px, 92vw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 6px clamp(14px, 3vw, 20px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 7, 20, 0.45);
  box-shadow: 0 16px 28px rgba(4, 7, 20, 0.4);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.affiliate-nav__inner--compact {
  width: min(960px, 90vw);
}

.affiliate-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.affiliate-nav__brand img {
  height: 36px;
  width: auto;
}

.affiliate-nav__tag {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(226, 228, 255, 0.82);
}

.affiliate-nav__actions {
  display: flex;
  gap: clamp(10px, 1.6vw, 18px);
  align-items: center;
}

.affiliate-nav__actions--compact {
  gap: 0.75rem;
}

.affiliate-nav__actions--compact .affiliate-button {
  padding: 0.65rem 1.4rem;
  font-size: 0.85rem;
}

.affiliate-nav__link {
  color: var(--affiliate-muted);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.affiliate-nav__link:hover,
.affiliate-nav__link:focus-visible {
  color: var(--affiliate-text);
}

.affiliate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: clamp(0.8rem, 2vw, 1.2rem);
  margin-top: clamp(0.4rem, 1.4vw, 0.9rem);
}

a.affiliate-button,
button.affiliate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem clamp(1.6rem, 4vw, 2.2rem);
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--affiliate-accent-strong), var(--affiliate-accent));
  color: #05060c;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: var(--affiliate-accent-glow);
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.2s ease;
  cursor: pointer;
}

a.affiliate-button:hover,
button.affiliate-button:hover,
a.affiliate-button:focus-visible,
button.affiliate-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

a.affiliate-button.secondary,
button.affiliate-button.secondary {
  background: rgba(20, 24, 46, 0.55);
  border-color: rgba(130, 136, 190, 0.32);
  color: var(--affiliate-text);
  box-shadow: none;
}

.affiliate-button.tertiary {
  background: rgba(12, 16, 36, 0.75);
  border: 1px solid rgba(136, 146, 220, 0.35);
  color: rgba(215, 222, 255, 0.85);
  box-shadow: none;
}

.affiliate-button--tiny {
  padding: 0.55rem 1.05rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.affiliate-button.is-loading {
  position: relative;
  color: rgba(220, 224, 255, 0.7);
  pointer-events: none;
}

.affiliate-button.is-loading::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(218, 221, 255, 0.6);
  border-top-color: transparent;
  animation: buttonSpin 0.75s linear infinite;
}

@keyframes buttonSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.affiliate-hero {
  position: relative;
  display: grid;
  padding: clamp(64px, 9vw, 110px) clamp(2.6rem, 5vw, 4.4rem) clamp(56px, 8vw, 90px);
  justify-items: center;
  text-align: left;
  margin-top: -107px;
}

.affiliate-hero::before {
  content: none;
}

.affiliate-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
}

.hero-shell {
  position: relative;
  display: grid;
  gap: clamp(28px, 4vw, 42px);
  grid-template-columns: minmax(360px, 1fr) minmax(280px, 340px);
  align-items: stretch;
  justify-content: center;
}

.hero-panel {
  position: relative;
  padding: clamp(2rem, 3.6vw, 2.6rem);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(18, 21, 44, 0.88), rgba(8, 9, 22, 0.78));
  border: 1px solid rgba(112, 120, 198, 0.28);
  box-shadow: 0 42px 72px rgba(4, 8, 20, 0.5);
  display: grid;
  gap: clamp(18px, 2.6vw, 26px);
}

.hero-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 156, 255, 0.4);
  background: rgba(15, 18, 36, 0.65);
  color: rgba(214, 220, 255, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero-panel p {
  margin: 0;
  color: rgba(204, 212, 255, 0.82);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.7;
}

.hero-points {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: grid;
  gap: 0.15rem;
}

.hero-points strong {
  font-size: 0.95rem;
  color: #f5f7ff;
  letter-spacing: 0.04em;
}

.hero-points span {
  color: rgba(190, 198, 244, 0.78);
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-side {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero-side__card {
  width: min(340px, 100%);
  position: relative;
  padding: clamp(1.6rem, 3.6vw, 2.2rem);
  border-radius: 26px;
  background: linear-gradient(170deg, rgba(25, 28, 58, 0.9), rgba(10, 12, 28, 0.88));
  border: 1px solid rgba(130, 138, 210, 0.28);
  box-shadow: 0 38px 58px rgba(3, 4, 18, 0.55);
  display: grid;
  gap: 1rem;
}

.hero-earnings {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1rem 0 0.3rem;
}

.hero-earnings__glow {
  position: absolute;
  inset: 10% 12% auto 12%;
  height: 140px;
  background: radial-gradient(circle, rgba(132, 118, 255, 0.35), transparent 70%);
  filter: blur(40px);
  opacity: 0.8;
  pointer-events: none;
}

.hero-earnings__inner {
  position: relative;
  width: clamp(200px, 16vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(12, 15, 30, 0.9), rgba(5, 6, 16, 0.95)),
    conic-gradient(from 220deg, rgba(119, 128, 220, 0.28), rgba(119, 128, 220, 0));
  border: 1px solid rgba(126, 132, 190, 0.38);
  box-shadow: inset 0 0 0 1px rgba(120, 128, 210, 0.15);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2.1rem 1.6rem;
  --calc-rotation: 120deg;
}

.hero-earnings__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(143, 151, 226, 0.85);
  border-right-color: rgba(88, 116, 255, 0.85);
  transform: rotate(var(--calc-rotation, 120deg));
  transition: transform 0.3s ease;
}

.hero-earnings__inner::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px dashed rgba(150, 158, 238, 0.26);
}

.dashboard-hero {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  grid-template-columns: minmax(280px, 360px) minmax(320px, 1fr);
  align-items: start;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(145deg, rgba(18, 22, 44, 0.8), rgba(8, 10, 24, 0.72));
  border-radius: 24px;
  border: 1px solid rgba(114, 122, 196, 0.22);
  box-shadow: 0 30px 60px rgba(5, 8, 20, 0.45);
  margin-bottom: clamp(32px, 6vw, 48px);
}

.dashboard-hero-card {
  display: grid;
  gap: clamp(14px, 2.4vw, 22px);
  padding: clamp(1.8rem, 3.6vw, 2.4rem);
  background: linear-gradient(145deg, rgba(18, 22, 44, 0.82), rgba(8, 10, 24, 0.72));
  border: 1px solid rgba(118, 126, 198, 0.28);
  box-shadow: 0 30px 56px rgba(6, 10, 28, 0.4);
}

.dashboard-hero-card h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.dashboard-hero-card p {
  margin: 0;
  color: rgba(204, 212, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.7;
}

.dashboard-intro {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.6vw, 26px);
}

.dashboard-intro h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.dashboard-intro p {
  margin: 0;
  color: rgba(204, 212, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.7;
}

.dashboard-link-block {
  display: grid;
  gap: 0.6rem;
}

.dashboard-link-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(200, 206, 246, 0.78);
  text-transform: uppercase;
}

.dashboard-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(14, 18, 38, 0.72);
  border-radius: 14px;
  border: 1px solid rgba(112, 120, 188, 0.28);
}

.dashboard-link-card input {
  border: none;
  background: transparent;
  color: #f4f7ff;
  font-size: 0.95rem;
  outline: none;
}

.dashboard-link-actions {
  display: flex;
  gap: 0.55rem;
}

.dashboard-link-actions .affiliate-button {
  white-space: nowrap;
}

.affiliate-benefits {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.calculator-header {
  display: grid;
  gap: 0.5rem;
}

.calculator-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.calculator-header p {
  margin: 0;
  color: rgba(184, 194, 240, 0.82);
}

.calculator-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(119, 125, 220, 0.45);
  background: rgba(119, 125, 220, 0.16);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d6dcff;
}

.calculator-body {
  display: grid;
  gap: 1.1rem;
}

.calculator-control {
  display: grid;
  gap: 0.55rem;
}

.calculator-control label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(206, 211, 248, 0.86);
}

.calculator-plan-switch {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.calculator-plan {
  flex: 1 1 130px;
  min-width: 135px;
  border-radius: 14px;
  border: 1px solid rgba(110, 118, 210, 0.35);
  background: rgba(19, 23, 46, 0.76);
  color: #f2f4ff;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.calculator-plan:hover,
.calculator-plan:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(144, 153, 255, 0.8);
}

.calculator-plan.is-active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(88, 146, 255, 0.85));
  border-color: transparent;
  color: #0a0d1b;
  box-shadow: 0 14px 28px rgba(88, 116, 255, 0.32);
}

.calculator-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.85) 0%, rgba(139, 92, 246, 0.4) 100%);
  outline: none;
  transition: background 0.2s ease;
}

.calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f4f7ff;
  border: 2px solid rgba(99, 109, 255, 0.7);
  box-shadow: 0 8px 18px rgba(20, 26, 64, 0.45);
  cursor: pointer;
}

.calculator-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f4f7ff;
  border: 2px solid rgba(99, 109, 255, 0.7);
  box-shadow: 0 8px 18px rgba(20, 26, 64, 0.45);
  cursor: pointer;
}

.calculator-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(158, 168, 222, 0.72);
}

.calculator-count {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(206, 211, 248, 0.82);
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.calculator-count strong {
  font-size: 1.25rem;
  color: #f8f9ff;
}


.wheel-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(191, 197, 244, 0.78);
}

.wheel-value {
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  color: #fdfdff;
}

.wheel-footnote {
  font-size: 0.75rem;
  color: rgba(168, 175, 228, 0.76);
}

.calculator-footer {
  margin-top: 0.3rem;
  border-top: 1px solid rgba(118, 128, 202, 0.24);
  padding: 1rem 0 0;
  font-size: 0.95rem;
  color: rgba(198, 205, 244, 0.85);
  line-height: 1.6;
  text-align: center;
}

.calculator-footer strong {
  color: #fdfdff;
}

@media (max-width: 1024px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero-panel {
    align-items: center;
  }

  .hero-points {
    text-align: left;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-side__card {
    width: min(380px, 100%);
  }

  .hero-actions {
    justify-content: center;
  }

  .dashboard-link-card {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .dashboard-link-actions {
    justify-content: center;
  }
}

.benefit-card {
  padding: clamp(1.6rem, 4vw, 2.1rem);
  background: var(--affiliate-surface);
  border-radius: var(--affiliate-radius-md);
  border: 1px solid var(--affiliate-border);
  box-shadow: var(--affiliate-shadow);
  display: grid;
  gap: 0.6rem;
  text-align: left;
}

.benefit-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.benefit-card p {
  margin: 0;
  color: var(--affiliate-muted);
  line-height: 1.7;
}

.affiliate-panel {
  background: var(--affiliate-surface);
  border-radius: var(--affiliate-radius-lg);
  border: 1px solid var(--affiliate-border);
  padding: clamp(1.8rem, 4vw, 2.4rem);
  box-shadow: var(--affiliate-shadow);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 1.2rem;
}

.affiliate-panel--center {
  text-align: center;
  justify-items: center;
}

.affiliate-panel--narrow {
  max-width: 620px;
}

.affiliate-panel ol,
.affiliate-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--affiliate-muted);
  line-height: 1.8;
}

.affiliate-panel h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
}

.affiliate-panel h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

.affiliate-panel .helper {
  color: var(--affiliate-muted);
  font-size: 0.9rem;
}

.affiliate-auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(60px, 10vw, 120px) clamp(16px, 5vw, 48px);
}

.affiliate-auth-card {
  width: min(480px, 100%);
  background: var(--affiliate-surface);
  border-radius: var(--affiliate-radius-lg);
  padding: clamp(2.2rem, 5vw, 3rem);
  border: 1px solid var(--affiliate-border);
  box-shadow: var(--affiliate-shadow);
  display: grid;
  gap: 1.4rem;
}

.affiliate-auth-card h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.3rem);
}

.affiliate-auth-card p {
  margin: 0;
  color: var(--affiliate-muted);
}

.affiliate-form-group {
  display: grid;
  gap: 0.45rem;
}

.affiliate-form-group label {
  font-weight: 600;
  font-size: 0.95rem;
}

.affiliate-input,
.link-card input {
  border-radius: 999px;
  border: 1px solid rgba(120, 128, 192, 0.3);
  background: rgba(5, 7, 16, 0.45);
  color: var(--affiliate-text);
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.affiliate-input:focus-visible,
.link-card input:focus-visible {
  outline: none;
  border-color: rgba(139, 92, 246, 0.8);
  background: rgba(17, 20, 42, 0.72);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.45);
}

.affiliate-help {
  font-size: 0.85rem;
  color: var(--affiliate-muted);
}

.affiliate-error,
.affiliate-success {
  border-radius: var(--affiliate-radius-sm);
  padding: 0.85rem 1.1rem;
  margin: 0;
  border: 1px solid transparent;
}

.affiliate-error {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.32);
  color: #fecaca;
}

.affiliate-success {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.32);
  color: #bbf7d0;
}

.dashboard-frame {
  position: relative;
  z-index: 1;
  width: min(1120px, 94vw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(12px, 4vw, 24px) clamp(100px, 11vw, 130px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 28px);
}

.dashboard-tabs {
  display: inline-flex;
  align-self: center;
  gap: 0.6rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(132, 140, 204, 0.32);
  background: rgba(14, 18, 38, 0.62);
  box-shadow: 0 18px 36px rgba(4, 6, 18, 0.4);
}

.dashboard-tab {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  background: transparent;
  color: rgba(208, 214, 248, 0.72);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.dashboard-tab.is-active {
  background: linear-gradient(135deg, rgba(119, 128, 220, 0.25), rgba(139, 92, 246, 0.35));
  color: #f4f6ff;
  box-shadow: inset 0 0 0 1px rgba(158, 166, 240, 0.3);
}

.dashboard-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 26px);
}

[data-tab-panel] {
  display: none;
}

[data-tab-panel].is-active {
  display: block;
}

.dashboard-shell.is-active {
  display: flex;
}

.dashboard-shell--assets {
  gap: clamp(1.6rem, 3.2vw, 2.4rem);
}

.dashboard-shell--assets.is-active {
  display: flex;
}

.affiliate-card {
  background: var(--affiliate-surface);
  border-radius: var(--affiliate-radius-lg);
  border: 1px solid var(--affiliate-border);
  padding: clamp(1.6rem, 3.2vw, 2.2rem);
  box-shadow: var(--affiliate-shadow);
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
}

.affiliate-card h1,
.affiliate-card h2 {
  margin: 0;
}

.affiliate-card h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.affiliate-card h2 {
  font-size: 1.05rem;
}

.affiliate-card p {
  margin: 0;
  color: var(--affiliate-muted);
}

.affiliate-card a {
  color: rgba(173, 180, 255, 0.92);
  text-decoration: none;
}

.affiliate-card a:hover,
.affiliate-card a:focus-visible {
  text-decoration: underline;
}

.affiliate-subheading {
  margin: 0;
  font-size: 1.1rem;
  color: var(--affiliate-muted);
}

.chart-header--spaced {
  margin-bottom: 0.8rem;
}

.affiliate-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.affiliate-help--spaced {
  margin-top: 0.8rem;
}

.affiliate-help--center {
  text-align: center;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.link-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.link-card input {
  flex: 1 1 260px;
  min-width: 220px;
}

.stat-grid {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-grid--hero {
  gap: clamp(1rem, 2vw, 1.4rem);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: clamp(22px, 3.2vw, 34px);
}

.stat-card {
  padding: clamp(1.1rem, 2vw, 1.4rem);
  border-radius: var(--affiliate-radius-md);
  background: linear-gradient(160deg, rgba(34, 40, 73, 0.78), rgba(22, 26, 52, 0.6));
  border: 1px solid rgba(126, 132, 190, 0.32);
  display: grid;
  gap: 0.4rem;
  box-shadow: 0 24px 40px rgba(6, 10, 28, 0.45);
}

.stat-card--hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.3rem, 2.4vw, 1.65rem);
  min-height: 170px;
}

.stat-card__visual {
  position: absolute;
  inset: -10% -20% auto -10%;
  height: 140px;
  border-radius: 24px;
  opacity: 0.55;
  filter: blur(0px);
  pointer-events: none;
}

[data-visual="clicks"] .stat-card__visual {
  background: radial-gradient(circle at 20% 20%, rgba(120, 154, 255, 0.5), rgba(36, 46, 110, 0));
}

[data-visual="leads"] .stat-card__visual {
  background: radial-gradient(circle at 80% 10%, rgba(99, 250, 196, 0.45), rgba(18, 28, 54, 0));
}

[data-visual="purchases"] .stat-card__visual {
  background: radial-gradient(circle at 40% 20%, rgba(255, 182, 122, 0.4), rgba(28, 24, 52, 0));
}

[data-visual="earnings"] .stat-card__visual {
  background: radial-gradient(circle at 60% 20%, rgba(139, 92, 246, 0.48), rgba(28, 22, 66, 0));
}

[data-visual="paid"] .stat-card__visual {
  background: radial-gradient(circle at 30% 10%, rgba(88, 205, 255, 0.45), rgba(18, 26, 60, 0));
}

.stat-card__content {
  position: relative;
  display: grid;
  gap: 0.5rem;
}

.stat-card .label {
  color: rgba(199, 204, 245, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-card .value {
  font-size: clamp(2rem, 3.8vw, 2.6rem);
  font-weight: 700;
  color: #f5f7ff;
}

.stat-card .hint {
  font-size: 0.9rem;
  color: rgba(162, 173, 230, 0.78);
}

.affiliate-assets {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}


.assets-column {
  display: grid;
  gap: 1rem;
}

.assets-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.assets-header p {
  margin: 0;
  color: rgba(190, 198, 244, 0.78);
  font-size: 0.9rem;
}

.asset-grid {
  display: grid;
  gap: 0.85rem;
}

.asset-card {
  display: grid;
  gap: 0.7rem;
  background: rgba(12, 16, 32, 0.72);
  border-radius: 16px;
  border: 1px solid rgba(116, 124, 198, 0.26);
  padding: 1rem;
  box-shadow: inset 0 0 0 1px rgba(120, 128, 210, 0.12);
}

.asset-preview {
  border-radius: 12px;
  height: 140px;
  background: linear-gradient(135deg, rgba(84, 109, 255, 0.55), rgba(22, 30, 72, 0.8));
  border: 1px solid rgba(132, 141, 226, 0.32);
  box-shadow: inset 0 0 0 1px rgba(194, 200, 255, 0.12);
}

.asset-preview--gradient {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(39, 27, 80, 0.8));
}

.asset-preview--gradient2 {
  background: linear-gradient(135deg, rgba(83, 237, 177, 0.55), rgba(24, 38, 63, 0.8));
}

.asset-preview--gradient3 {
  background: linear-gradient(135deg, rgba(255, 182, 122, 0.55), rgba(40, 30, 58, 0.85));
}

.asset-preview--video {
  background: linear-gradient(135deg, rgba(76, 126, 255, 0.55), rgba(17, 24, 54, 0.9));
}

.asset-preview--video2 {
  background: linear-gradient(135deg, rgba(220, 99, 255, 0.45), rgba(23, 18, 64, 0.85));
}

.asset-preview--video3 {
  background: linear-gradient(135deg, rgba(255, 99, 132, 0.45), rgba(30, 20, 50, 0.85));
}

.asset-meta {
  display: grid;
  gap: 0.2rem;
}

.asset-meta h3 {
  margin: 0;
  font-size: 1rem;
}

.asset-meta p {
  margin: 0;
  color: rgba(184, 194, 244, 0.72);
  font-size: 0.85rem;
}

.affiliate-copy {
  display: grid;
  gap: 1rem;
}

.copy-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.copy-header p {
  margin: 0;
  color: rgba(190, 198, 244, 0.78);
  font-size: 0.92rem;
}

.copy-list {
  display: grid;
  gap: 0.8rem;
}

.copy-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(12, 16, 34, 0.72);
  border-radius: 16px;
  border: 1px solid rgba(124, 132, 210, 0.2);
  padding: 0.9rem 1.1rem;
  flex-wrap: wrap;
}

.copy-card p {
  margin: 0;
  color: rgba(210, 216, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.6;
}

.copy-card .affiliate-button {
  flex-shrink: 0;
}

.affiliate-insights {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.6rem);
  background: linear-gradient(180deg, rgba(21, 26, 52, 0.9), rgba(13, 16, 36, 0.7));
  border: 1px solid rgba(118, 128, 202, 0.32);
}

.insights-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.insights-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.insights-grid {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.2rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.insight-card {
  background: rgba(14, 19, 40, 0.78);
  border-radius: var(--affiliate-radius-md);
  border: 1px solid rgba(102, 112, 198, 0.28);
  padding: 1.2rem 1.4rem;
  display: grid;
  gap: 0.45rem;
  box-shadow: inset 0 0 0 1px rgba(104, 112, 210, 0.08);
}

.insight-label {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(178, 186, 235, 0.8);
}

.insight-value {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fdfcff;
}

.insight-hint {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(164, 173, 222, 0.76);
}

.referrals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.referrals-table thead {
  color: rgba(202, 208, 244, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(12, 16, 32, 0.52);
}

.referrals-table th,
.referrals-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(88, 96, 152, 0.24);
}

.referrals-table tbody tr:last-of-type td {
  border-bottom: none;
}

.referrals-empty {
  padding: 1.2rem;
  color: var(--affiliate-muted);
  text-align: center;
}

.admin-flash {
  margin: 0;
  border-radius: var(--affiliate-radius-sm);
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(126, 132, 190, 0.32);
  background: rgba(11, 14, 28, 0.65);
}

.admin-error {
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(248, 113, 113, 0.34);
  color: #fecaca;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.admin-toolbar--right {
  justify-content: flex-end;
}

.admin-toolbar--between {
  justify-content: space-between;
}

.admin-toolbar__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.admin-label {
  color: var(--affiliate-muted);
  font-size: 0.9rem;
}

.admin-select {
  width: auto;
  min-width: 160px;
}

.admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-input {
  flex: 1 1 200px;
}

.admin-input--amount {
  flex: 1 1 140px;
}

.admin-input--note {
  flex: 2 1 240px;
}

.admin-helper {
  margin: 0;
  color: var(--affiliate-muted);
  font-size: 0.85rem;
}

.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table-empty {
  text-align: center;
  padding: 1.2rem;
  color: var(--affiliate-muted);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--affiliate-radius-md);
  overflow: hidden;
}

.admin-table thead {
  background: rgba(13, 18, 36, 0.74);
  color: rgba(210, 214, 246, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(94, 104, 168, 0.28);
  text-align: left;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
}

.admin-header__content h1 {
  margin-bottom: 0.35rem;
}

.admin-header__content p {
  margin: 0;
  color: var(--affiliate-muted);
  max-width: 48ch;
}

.admin-header__actions {
  display: flex;
  gap: 0.75rem;
}

.admin-summary-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 1.6rem;
}

.admin-summary-card {
  border-radius: var(--affiliate-radius-md);
  border: 1px solid rgba(112, 124, 184, 0.28);
  padding: 1.1rem 1.25rem;
  background: linear-gradient(
      135deg,
      rgba(105, 123, 255, 0.18),
      rgba(42, 50, 102, 0)
    ),
    rgba(11, 15, 30, 0.68);
  box-shadow: 0 18px 40px rgba(8, 12, 34, 0.42);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-summary-label {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(206, 211, 250, 0.72);
}

.admin-summary-value {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: #eef1ff;
}

.admin-summary-hint {
  font-size: 0.85rem;
  color: var(--affiliate-muted);
}

.admin-metric {
  font-weight: 600;
  color: #f4f6ff;
  font-size: 1rem;
}

.admin-subtext {
  color: var(--affiliate-muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.34);
  color: rgba(226, 222, 255, 0.94);
}

.admin-badge.pending {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.46);
  color: #fcd34d;
}

.admin-badge.approved {
  background: rgba(74, 222, 128, 0.16);
  border-color: rgba(74, 222, 128, 0.34);
  color: #bbf7d0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-actions .affiliate-button {
  font-size: 0.72rem;
  padding: 0.4rem 0.85rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: rgba(30, 36, 68, 0.64);
  border: 1px solid rgba(120, 128, 188, 0.34);
  color: rgba(224, 229, 255, 0.94);
}

.admin-actions .affiliate-button:hover,
.admin-actions .affiliate-button:focus-visible {
  background: rgba(45, 56, 102, 0.82);
  border-color: rgba(136, 144, 204, 0.48);
}

.admin-form-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-form-grid .affiliate-input {
  margin: 0;
}

.affiliate-footer {
  text-align: center;
  color: var(--affiliate-muted);
  font-size: 0.85rem;
  padding: clamp(32px, 6vw, 60px) 0 clamp(40px, 8vw, 80px);
}

@media (max-width: 720px) {
  .admin-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-header__actions {
    justify-content: flex-start;
  }

  .admin-summary-card {
    padding: 1rem 1.05rem;
  }

  .admin-summary-value {
    font-size: 1.6rem;
  }
}

.affiliate-footer a {
  color: rgba(173, 180, 255, 0.92);
  text-decoration: none;
}

.affiliate-footer a:hover,
.affiliate-footer a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .affiliate-nav__inner {
    flex-wrap: wrap;
    border-radius: 24px;
    gap: 14px 18px;
  }

  .affiliate-nav__links {
    width: 100%;
    justify-content: center;
  }

  .affiliate-nav__actions {
    width: 100%;
    justify-content: center;
  }

  .affiliate-hero::after {
    inset: clamp(18px, 4vw, 28px);
  }
}

@media (max-width: 720px) {
  .affiliate-auth-card {
    padding: clamp(2rem, 7vw, 2.4rem);
  }

  .link-card {
    flex-direction: column;
    align-items: stretch;
  }

  .chart-canvas {
    height: 240px;
  }

  .affiliate-hero__copy {
    text-align: center;
    align-items: center;
  }

  .affiliate-calculator {
    padding: 1.8rem 1.4rem;
  }

  .calculator-plan-switch {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .affiliate-nav__inner {
    padding: 12px 18px;
  }

  .hero-panel h1 {
    font-size: clamp(2.2rem, 9vw, 2.6rem);
  }

  a.affiliate-button,
  button.affiliate-button {
    width: 100%;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.affiliate-button.is-copied,
.affiliate-button.is-copied:hover,
.affiliate-button.is-copied:focus-visible {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.55);
  color: #bbf7d0;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.25);
}
