/* ==========================================================================
   Lula Sites — Affiliate Partner Program Page Styles
   Strictly Zero Emojis
   ========================================================================== */

:root {
  --aff-bg: #09090b;
  --aff-card: #141417;
  --aff-card-hover: #1a1a20;
  --aff-border: rgba(255, 255, 255, 0.08);
  --aff-border-hover: rgba(255, 255, 255, 0.18);
  --aff-text-primary: #ffffff;
  --aff-text-muted: #a1a1aa;
  --aff-text-subtle: #71717a;
  --aff-accent-purple: #3b82f6;
  --aff-accent-pink: #60a5fa;
  --aff-accent-orange: #93c5fd;
  --aff-gradient-text: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #3b82f6 100%);
  --aff-btn-bg: linear-gradient(to top, #cfdef6 20%, #fafafa 80%);
}

/* Page wrapper */
.affiliate-page {
  min-height: 100vh;
  background-color: var(--aff-bg);
  color: var(--aff-text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* Gradient text utility */
.aff-gradient-text {
  background-image: var(--aff-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  background-size: 200% 200%;
}

.aff-gradient-glow {
  position: relative;
  display: inline-block;
}

.aff-gradient-glow .aff-glow-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--aff-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(12px);
  mix-blend-mode: screen;
  opacity: 0.85;
  z-index: 2;
}

/* Gradient badge pill */
.aff-pill-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(147, 197, 253, 0.35);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
  margin-bottom: 16px;
}

.aff-pill-badge span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-image: var(--aff-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Main CTA Button */
.aff-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 32px;
  border-radius: 9999px;
  background-image: var(--aff-btn-bg);
  color: #09090b;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-top: 2px solid #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(207, 222, 246, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.aff-btn-cta:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(207, 222, 246, 0.35);
}

.aff-btn-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.aff-btn-cta:hover svg {
  transform: translateX(3px);
}

/* Hero Section */
.aff-hero-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.aff-hero-card {
  position: relative;
  width: 100%;
  min-height: clamp(560px, 70vh, 700px);
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--aff-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px 60px;
  background: #09090b;
  box-shadow: none;
}

.aff-hero-banner-img,
.aff-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 1;
}

.aff-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center 48%, rgba(9, 9, 11, 0.42) 0%, rgba(9, 9, 11, 0.76) 100%),
              linear-gradient(to bottom, rgba(9, 9, 11, 0.35) 0%, transparent 22%, transparent 78%, #09090b 100%);
  z-index: 2;
  pointer-events: none;
}

.aff-hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
}

.aff-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.015em;
  color: var(--aff-text-primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.gradient-glow-text {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.35);
  display: inline-block;
}

.aff-hero-tagline {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 580px;
  margin-bottom: 32px;
  font-weight: 500;
}

.aff-hero-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--aff-text-muted);
}

.aff-hero-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.aff-hero-badge-item svg {
  width: 15px;
  height: 15px;
  color: #60a5fa;
}

.aff-hero-badge-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--aff-text-subtle);
}

/* Inner content container */
.aff-content-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

/* Metrics Grid (4 cards) */
.aff-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.aff-metric-card {
  background: var(--aff-card);
  border: 1px solid var(--aff-border);
  border-radius: 20px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.aff-metric-card:hover {
  border-color: var(--aff-border-hover);
  transform: translateY(-2px);
}

.aff-metric-value {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.aff-metric-label {
  margin: 12px 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aff-text-muted);
}

.aff-metric-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

/* Section Header Shared */
.aff-section {
  padding-top: 100px;
}

.aff-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

#affDashboardSection .aff-section-header {
  max-width: 860px;
}

.aff-section-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.36;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.aff-section-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--aff-text-muted);
  font-weight: 500;
}

/* Steps Grid (How it works) */
.aff-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.aff-step-card {
  background: var(--aff-card);
  border: 1px solid var(--aff-border);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.2s ease;
}

.aff-step-card:hover {
  border-color: var(--aff-border-hover);
}

.aff-step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--aff-border);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 22px;
  color: #ffffff;
}

.aff-step-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.aff-step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--aff-text-muted);
}

/* Dashboard Mockup Section */
.aff-dashboard-window {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid var(--aff-border);
  background: var(--aff-card);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.aff-dash-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--aff-border);
  font-size: 12px;
  color: var(--aff-text-subtle);
  background: rgba(0, 0, 0, 0.2);
}

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

.aff-dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.aff-dash-url {
  font-family: var(--font-mono);
  color: var(--aff-text-muted);
}

.aff-dash-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aff-dash-link-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--aff-border);
  background: #09090b;
}

.aff-dash-link-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--aff-text-subtle);
  white-space: nowrap;
}

.aff-dash-link-code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aff-btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--aff-border);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.aff-btn-copy:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.aff-btn-copy svg {
  width: 14px;
  height: 14px;
}

/* Dashboard Stats Grid */
.aff-dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.aff-dash-stat-box {
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--aff-border);
  background: #09090b;
}

.aff-dash-stat-val {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 6px;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.aff-dash-stat-lbl {
  font-size: 12px;
  color: var(--aff-text-muted);
}

/* Dashboard Payout Callout */
.aff-dash-payout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(147, 197, 253, 0.08));
}

.aff-payout-info small {
  display: block;
  font-size: 12px;
  color: var(--aff-text-muted);
  margin-bottom: 4px;
}

.aff-payout-info b {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.aff-btn-request-payout {
  padding: 10px 22px;
  border-radius: 10px;
  background: #ffffff;
  color: #09090b;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.aff-btn-request-payout:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.aff-dash-caption {
  text-align: center;
  font-size: 13px;
  color: var(--aff-text-subtle);
  margin-top: 18px;
}

/* Who it's for 4-Card Grid */
.aff-who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.aff-who-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--aff-border);
  background: var(--aff-card);
  transition: border-color 0.2s ease;
}

.aff-who-card:hover {
  border-color: var(--aff-border-hover);
}

.aff-who-number {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  width: 44px;
  flex-shrink: 0;
  background-image: var(--aff-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aff-who-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.aff-who-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--aff-text-muted);
}

/* FAQ Accordion */
.aff-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aff-faq-item {
  border-radius: 16px;
  border: 1px solid var(--aff-border);
  background: var(--aff-card);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.aff-faq-item[open] {
  border-color: rgba(59, 130, 246, 0.35);
}

.aff-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

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

.aff-faq-icon {
  width: 20px;
  height: 20px;
  color: var(--aff-text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.aff-faq-item[open] .aff-faq-icon {
  transform: rotate(45deg);
  color: #60a5fa;
}

.aff-faq-body {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}

/* Bottom CTA Banner */
.aff-bottom-cta {
  position: relative;
  margin-top: 100px;
  border-radius: 28px;
  border: 1px solid var(--aff-border);
  background: var(--aff-card);
  padding: 80px 24px;
  text-align: center;
  overflow: hidden;
}

.aff-bottom-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(50% 80% at 50% 100%, rgba(59, 130, 246, 0.18), transparent 70%);
}

.aff-bottom-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
}

.aff-bottom-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 16px 0 16px;
}

.aff-bottom-subtitle {
  font-size: 16px;
  color: var(--aff-text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .aff-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .aff-steps-grid {
    grid-template-columns: 1fr;
  }
  .aff-dash-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .aff-hero-card {
    min-height: 520px;
    padding: 60px 16px 44px;
  }
  .aff-hero-title {
    font-size: clamp(1.25rem, 6.4vw, 1.6rem);
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
  }
  .aff-hero-tagline {
    font-size: 15px;
  }
  .aff-hero-badges-row {
    flex-direction: column;
    gap: 8px;
  }
  .aff-hero-badge-divider {
    display: none;
  }
  .aff-metrics-grid {
    grid-template-columns: 1fr;
  }
  .aff-section-title {
    font-size: 28px;
    line-height: 1.36;
    letter-spacing: -0.01em;
  }
  #affDashboardSection .aff-section-title {
    font-size: clamp(17px, 4.8vw, 24px);
    line-height: 1.35;
  }
  .aff-dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .aff-dash-payout-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .aff-who-grid {
    grid-template-columns: 1fr;
  }
  .aff-bottom-title {
    font-size: 28px;
    line-height: 1.35;
    letter-spacing: -0.01em;
  }
  .aff-dash-link-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .aff-dash-link-code {
    width: 100%;
  }
}

/* Highlight / Pulse animation when directed to Register button */
@keyframes affBtnPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(96, 165, 250, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5), 0 0 0 14px rgba(96, 165, 250, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(96, 165, 250, 0);
  }
}

.aff-btn-pulse {
  animation: affBtnPulse 0.9s ease-in-out 3 !important;
}

/* Apple-style Pending / Status Banner */
.aff-status-banner {
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.aff-status-banner-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aff-status-banner-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #facc15;
  letter-spacing: -0.01em;
}

.aff-status-banner-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.aff-status-banner-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #fef08a;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* Disabled Copy Link Button State */
.aff-btn-copy.disabled {
  opacity: 0.65;
  cursor: pointer;
}

/* Trang thai dang xet duyet cho cac nut CTA */
.aff-btn-cta.is-pending,
.btn-aff-apply.is-pending {
  background: rgba(234, 179, 8, 0.12) !important;
  color: #fde047 !important;
  border: 1px solid rgba(234, 179, 8, 0.32) !important;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.15) !important;
  cursor: not-allowed !important;
}

.aff-btn-cta.is-pending:hover,
.btn-aff-apply.is-pending:hover {
  transform: none !important;
  opacity: 1 !important;
  box-shadow: 0 0 24px rgba(234, 179, 8, 0.22) !important;
}

.aff-btn-cta.is-active,
.btn-aff-apply.is-active {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15) !important;
}

.aff-btn-cta.is-active:hover,
.btn-aff-apply.is-active:hover {
  transform: translateY(-2px) !important;
  background: rgba(59, 130, 246, 0.22) !important;
  color: #ffffff !important;
}

.aff-btn-pending-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 8px #facc15;
  margin-right: 6px;
  animation: affPulse 1.8s infinite ease-in-out;
}

@keyframes affPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Banner Chao Mung Doi Tac (Da Duyet) */
.aff-status-banner.is-approved {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.aff-status-banner.is-approved .aff-status-banner-title {
  color: #34d399;
}
.aff-status-banner.is-approved .aff-status-banner-badge {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

/* Dong han muc Credit trong Dashboard */
.aff-dash-credit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  flex-wrap: wrap;
}

.aff-credit-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aff-credit-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.aff-credit-title-group small {
  font-size: 12px;
  color: var(--aff-text-subtle);
  font-weight: 500;
}

.aff-credit-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  font-weight: 600;
}

.aff-credit-value-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.aff-credit-value-group b {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.aff-credit-sub {
  font-size: 12px;
  color: var(--aff-text-muted);
}

.aff-btn-request-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 9px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aff-btn-request-credit:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-1px);
}
