/* Affiliates Page Styling */
.affiliates-page {
  padding-top: 100px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 80px;
}

/* Hero Section */
.affiliates-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 80px;
}

.affiliates-hero-copy h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 16px 0 24px;
  color: #ffffff;
}

.affiliates-hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.affiliates-hero-copy p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #a0a5a0;
  max-width: 520px;
  margin-bottom: 32px;
}

.affiliates-hero-copy p strong {
  color: #ffffff;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.outline-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 215, 0, 0.5);
  color: #ffd700;
  transform: translateY(-2px);
}

.outline-btn.compact {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 8px;
}

/* Hero Card Mockup */
.affiliates-hero-card {
  position: relative;
  background: rgba(18, 22, 19, 0.85);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.08);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.launcher-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.window-dots i:nth-child(1) { background: #ff5f56; }
.window-dots i:nth-child(2) { background: #ffbd2e; }
.window-dots i:nth-child(3) { background: #27c93f; }

.launcher-preview-header span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #707570;
  letter-spacing: 0.05em;
}

.launcher-preview-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.launcher-preview-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  color: #ffffff;
  margin: 0;
}

.launcher-preview-body p {
  font-size: 0.9rem;
  color: #8a908a;
  margin: 0;
}

.preview-input-field {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
}

.field-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: #606560;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.field-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.code-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.05em;
  flex: 1;
}

.verified-tag {
  background: rgba(39, 201, 63, 0.15);
  color: #27c93f;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.preview-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  border-radius: 12px;
  margin-top: 4px;
}

.preview-stats small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: #707570;
  margin-bottom: 4px;
}

.preview-stats strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  color: #ffffff;
}

.preview-stats strong.highlight {
  color: #ffd700;
}

/* Steps Section */
.steps-section {
  padding: 80px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.section-head span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: #ffd700;
  letter-spacing: 0.1em;
}

.section-head h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-top: 6px;
}

.section-head h2 i {
  font-style: normal;
  color: #808580;
}

.section-head p {
  font-size: 1.05rem;
  color: #909590;
  max-width: 400px;
}

.affiliate-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  background: rgba(20, 25, 21, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(25, 30, 26, 0.8);
}

.step-card.highlight-card {
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(30, 35, 28, 0.85);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.06);
}

.step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffd700;
  margin-bottom: 20px;
}

.step-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  margin-bottom: 20px;
}

.step-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #909590;
}

.step-card p strong {
  color: #ffffff;
}

/* Download Launcher Section */
.download-launcher-section {
  padding: 40px 0 80px;
}

.launcher-banner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, rgba(20, 24, 21, 0.9) 0%, rgba(12, 15, 13, 0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.banner-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 12px 0 16px;
  line-height: 1.1;
}

.banner-content h2 em {
  font-style: normal;
  color: #ffd700;
}

.banner-content p {
  font-size: 1.05rem;
  color: #a0a5a0;
  max-width: 540px;
  margin-bottom: 24px;
}

.launcher-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.spec-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #c0c5c0;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.launcher-download-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.code-gate-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}

.gate-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #ffd700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.gate-input-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.gate-input-wrapper input {
  flex: 1;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.25s ease;
}

.gate-input-wrapper input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.gate-quick-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #707570;
  margin-bottom: 14px;
}

.gate-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d0d5d0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gate-chip:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffd700;
}

.gate-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.gate-status.active-valid {
  background: rgba(39, 201, 63, 0.1);
  color: #27c93f;
  border: 1px solid rgba(39, 201, 63, 0.2);
}

.gate-status.active-invalid {
  background: rgba(255, 95, 86, 0.1);
  color: #ff5f56;
  border: 1px solid rgba(255, 95, 86, 0.2);
}

.launcher-download-btn.disabled-btn {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(1);
}

.launcher-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.05rem;
  padding: 16px 36px;
}

.download-subtext {
  font-size: 0.85rem !important;
  color: #707570 !important;
  margin: 0 !important;
}

.banner-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-circle {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.25);
  animation: pulse-expand 3s infinite ease-out;
}

.pulse-ring.delay {
  animation-delay: 1.5s;
}

@keyframes pulse-expand {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.badge-overlay {
  position: absolute;
  bottom: -10px;
  background: #ffd700;
  color: #111111;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.1em;
}

/* Code Tester Section */
.code-tester-section {
  padding: 60px 0;
}

.tester-card {
  background: rgba(18, 22, 19, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px;
}

.tester-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.tester-header p {
  font-size: 0.95rem;
  color: #909590;
  margin-bottom: 24px;
}

.code-input-group {
  margin-bottom: 28px;
}

.input-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.input-wrapper input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.25s ease;
}

.input-wrapper input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

.inline-btn {
  padding: 14px 28px;
  border-radius: 12px;
  white-space: nowrap;
}

.quick-codes {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #707570;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d0d5d0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffd700;
}

.result-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease;
}

.result-box.active-valid {
  border-color: rgba(39, 201, 63, 0.4);
  background: rgba(39, 201, 63, 0.04);
}

.result-box.active-invalid {
  border-color: rgba(255, 95, 86, 0.4);
  background: rgba(255, 95, 86, 0.04);
}

.result-status {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.status-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(39, 201, 63, 0.15);
  color: #27c93f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.active-invalid .status-icon {
  background: rgba(255, 95, 86, 0.15);
  color: #ff5f56;
}

.result-status strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.result-status p {
  font-size: 0.9rem;
  color: #909590;
  margin: 0;
}

.referral-link-box {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.referral-link-box span {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: #707570;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.link-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: 10px;
}

.link-field code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  color: #ffd700;
}

/* Calculator Section */
.calculator-section {
  padding: 60px 0 80px;
}

.calculator-card {
  background: rgba(18, 22, 19, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  padding: 40px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.calc-controls label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calc-controls label span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: #ffffff;
}

.calc-controls label b {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.2rem;
  color: #ffd700;
}

.calc-controls input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  margin-bottom: 12px;
}

.calc-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffd700;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  transition: transform 0.15s ease;
}

.calc-controls input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #606560;
}

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.res-item small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: #707570;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.res-item strong {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  color: #ffffff;
}

.res-item strong small {
  display: inline;
  font-size: 1rem;
  color: #808580;
}

.res-item .tier-gold {
  color: #ffd700;
}

.res-item span {
  font-size: 0.95rem;
  color: #c0c5c0;
}

/* Affiliate FAQ */
.affiliate-faq {
  padding: 60px 0 80px;
}

.affiliate-cta {
  text-align: center;
  padding: 60px 20px 80px;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
}

.affiliate-cta h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 16px 0 32px;
  line-height: 1.1;
}

.affiliate-cta h2 em {
  font-style: normal;
  color: #ffd700;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .affiliates-hero,
  .launcher-banner,
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .affiliate-steps-grid {
    grid-template-columns: 1fr;
  }

  .affiliates-hero-copy h1 {
    font-size: 3rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .launcher-banner {
    padding: 32px 24px;
  }
}
