/* ====================================
   AFILIADOS - CSS UNIFICADO
   ==================================== */

:root {
  --primary: #e91e63;
  --primary-dark: #d81b60;
  --primary-light: #ff4d94;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --border: #e5e7eb;
  --bg-light: #f9fafb;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
  --radius: 12px;
}

/* Global: Nunca subrayar textos en hover */
.engagement-page a,
.engagement-page button,
.affiliate-landing a,
.affiliate-landing button,
.calculator-card a,
.calculator-card button,
.dashboard-stats a,
.quick-nav-item,
.stat-card,
.btn-calculate,
.btn-primary,
.btn-secondary,
.btn-copy,
.btn-payout,
.landing-cta-primary,
.landing-cta-secondary,
.social-share-btn,
.network-filter-btn,
.btn-request-payout-main,
.btn-edit-payment,
.btn-secondary-hero,
.btn-logout-hero {
  text-decoration: none !important;
}

.engagement-page a:hover,
.engagement-page button:hover,
.affiliate-landing a:hover,
.affiliate-landing button:hover,
.calculator-card a:hover,
.calculator-card button:hover,
.dashboard-stats a:hover,
.quick-nav-item:hover,
.stat-card:hover,
.btn-calculate:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-copy:hover,
.btn-payout:hover,
.landing-cta-primary:hover,
.landing-cta-secondary:hover,
.social-share-btn:hover,
.network-filter-btn:hover,
.btn-request-payout-main:hover,
.btn-edit-payment:hover,
.btn-secondary-hero:hover,
.btn-logout-hero:hover {
  text-decoration: none !important;
}

/* ====================================
   ESTRUCTURA BASE - LOGIN/REGISTRO
   ==================================== */

.engagement-page {
  min-height: 100vh;
  background: #fff;
}

.engagement-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 20px 60px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.engagement-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.engagement-hero .hero-content {
  text-align: center;
  color: #fff;
}

.landing-hero .hero-content {
  text-align: left;
  color: #fff;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 16px;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 24px;
}

/* Hero Actions (Dashboard & Logout buttons) */
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}

.btn-secondary-hero,
.btn-logout-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary-hero {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-secondary-hero:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-logout-hero {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border-color: transparent;
}

.btn-logout-hero:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary-hero svg,
.btn-logout-hero svg {
  width: 18px;
  height: 18px;
}

/* ====================================
   CARD DEL FORMULARIO
   ==================================== */

.calculator-section {
  padding: 60px 20px;
  background: #f9fafb;
}

.calculator-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 600px;
  margin: -40px auto 0;
  position: relative;
}

.calculator-header {
  text-align: center;
  margin-bottom: 32px;
}

.calculator-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.calculator-header p {
  color: var(--text-gray);
  font-size: 14px;
}

/* ====================================
   FORMULARIOS
   ==================================== */

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}

.form-label svg {
  color: var(--primary);
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233,30,99,0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* ====================================
   BOTONES
   ==================================== */

.btn-calculate {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-top: 8px;
}

.btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(233,30,99,0.3);
}

.btn-calculate:active {
  transform: translateY(0);
}

.btn-calculate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ====================================
   ALERTAS
   ==================================== */

.alert {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border-left: 4px solid var(--success);
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid var(--danger);
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border-left: 4px solid var(--warning);
}

/* ====================================
   ENLACES Y EXTRAS
   ==================================== */

.form-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.form-footer-text {
  font-size: 14px;
  color: var(--text-gray);
}

.form-footer-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.form-footer-link:hover {
  text-decoration: underline;
}

/* ====================================
   FEATURES LIST
   ==================================== */

.features-box {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
}

.features-box h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-gray);
}

.features-list li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
  .engagement-hero {
    padding: 60px 15px 50px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .calculator-section {
    padding: 40px 15px;
  }

  .calculator-card {
    padding: 24px;
    margin-top: -30px;
  }

  .calculator-header h2 {
    font-size: 20px;
  }

  .form-input,
  .form-select {
    font-size: 16px; /* Evita zoom en iOS */
  }
}

@media (max-width: 480px) {
  .calculator-card {
    padding: 20px;
  }

  .btn-calculate {
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* ====================================
   DASHBOARD - ESTADÍSTICAS Y CARDS
   ==================================== */

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card.highlight {
  background: linear-gradient(135deg, #fff5f8 0%, #ffe8f0 100%);
  border: 2px solid var(--primary);
  padding: 20px;
}

.stat-card.highlight::before {
  opacity: 1;
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.stat-label {
  font-size: 12px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.stat-detail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-badge {
  font-size: 11px;
  background: var(--bg-light);
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--text-gray);
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border);
}

.stat-note {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 8px;
  font-weight: 500;
}

/* ====================================
   DASHBOARD - QUICK NAV
   ==================================== */

.quick-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.quick-nav-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  text-decoration: none !important;
  color: var(--text-dark);
  transition: all 0.3s;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}

.quick-nav-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none !important;
}

.quick-nav-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.quick-nav-label {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

/* ====================================
   AFFILIATE PAGES - CALCULATOR CARD OVERRIDE
   ==================================== */

.engagement-page .calculator-card {
  max-width: none;
  margin: 0 0 32px 0;
  padding: 32px;
}

/* ====================================
   DASHBOARD - REFERRAL CARD
   ==================================== */

.referral-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.referral-card h3 {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 700;
}

.referral-subtitle {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 20px;
}

.referral-link-container {
  display: flex;
  gap: 12px;
}

.referral-link-container input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: var(--bg-light);
  font-family: 'Courier New', monospace;
  color: var(--text-dark);
}

.btn-copy {
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
}

/* ====================================
   DASHBOARD - CONVERSIONS TABLE
   ==================================== */

.conversions-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.conversions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.conversions-header h3 {
  font-size: 20px;
  color: var(--text-dark);
  font-weight: 700;
}

.btn-view-all {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-view-all:hover {
  text-decoration: underline;
}

.conversions-table {
  overflow-x: auto;
}

.conversions-table table {
  width: 100%;
  border-collapse: collapse;
}

.conversions-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.conversions-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dark);
}

.commission-value {
  font-weight: 700;
  color: var(--primary);
}

.badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-warning {
  background: #fff3cd;
  color: #856404;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

/* ====================================
   DASHBOARD - EMPTY STATE
   ==================================== */

.empty-state {
  background: #fff;
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 20px;
  display: block;
}

.empty-state h3 {
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.empty-state p {
  color: var(--text-gray);
  margin-bottom: 30px;
  font-size: 16px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
  color: #fff;
  text-decoration: none !important;
}

.btn-payout {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-payout:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: scale(1.05);
  text-decoration: none !important;
}

/* ====================================
   RESPONSIVE - DASHBOARD
   ==================================== */

@media (max-width: 768px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    flex-direction: row;
  }

  .quick-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .referral-link-container {
    flex-direction: column;
  }

  .conversions-table {
    overflow-x: scroll;
  }
}

@media (max-width: 480px) {
  .quick-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .empty-state {
    padding: 40px 20px;
  }

  .empty-icon {
    font-size: 60px;
  }
}

/* ====================================
   LINKS PAGE - NETWORK FILTERS
   ==================================== */

.network-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.network-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.network-filter-btn:hover {
  border-color: var(--primary);
  background: #fff;
}

.network-filter-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: #fff;
}

.network-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ====================================
   LINKS PAGE - SERVICE LINKS GRID (v2.0 - Redesigned)
   ==================================== */

.service-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 0;
}

.service-link-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.service-link-card:hover {
  border-color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  flex-shrink: 0;
  padding: 8px;
}

.service-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.service-card-info h4 {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 4px;
}

.service-card-info p {
  font-size: 12px;
  color: var(--text-gray);
  margin: 0;
}

/* ====================================
   LINKS PAGE - TWO COLUMN GRID
   ==================================== */

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

/* ====================================
   LINKS PAGE - QR GENERATOR
   ==================================== */

.qr-generator-wrapper {
  margin-top: 24px;
  text-align: center;
}

.qr-info-text p {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.qr-preview {
  text-align: center;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}

.qr-preview #qrcode {
  margin-bottom: 16px;
  display: inline-block;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  background: var(--bg-light);
  color: var(--text-dark);
  border: 2px solid var(--border);
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ====================================
   LINKS PAGE - SOCIAL SHARE
   ==================================== */

.social-share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.social-share-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  text-decoration: none !important;
  color: var(--text-dark);
  transition: all 0.3s;
  cursor: pointer;
}

.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
  color: var(--text-dark);
  text-decoration: none !important;
}

.social-share-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-share-btn.facebook .social-share-icon {
  background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
  color: #fff;
}

.social-share-btn.twitter .social-share-icon {
  background: linear-gradient(135deg, #1DA1F2 0%, #0e71c8 100%);
  color: #fff;
}

.social-share-btn.whatsapp .social-share-icon {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
}

.social-share-btn.telegram .social-share-icon {
  background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
  color: #fff;
}

.social-share-btn.linkedin .social-share-icon {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
  color: #fff;
}

.social-share-btn.email .social-share-icon {
  background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
  color: #fff;
}

.social-share-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.social-share-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.social-share-text span {
  font-size: 12px;
  color: var(--text-gray);
}

/* ====================================
   LINKS PAGE - TEXT TEMPLATES
   ==================================== */

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.template-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
}

.template-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.template-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 16px 20px;
}

.template-header h4 {
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  margin: 0;
}

.template-body {
  padding: 20px;
}

.template-body textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dark);
  background: #fff;
  font-family: inherit;
  resize: none;
  margin-bottom: 12px;
}

.template-body textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-copy-template {
  width: 100%;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  font-size: 13px;
}

.btn-copy-template:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ====================================
   LINKS PAGE - QUICK TEMPLATES
   ==================================== */

.quick-templates {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.quick-template-item {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 16px;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.quick-template-item:hover {
  border-color: var(--primary);
  background: #fff;
}

.quick-template-item h4 {
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

.template-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

.template-preview p {
  font-size: 12px;
  color: var(--text-gray);
  line-height: 1.5;
  margin: 0;
}

.btn-copy-mini {
  width: 100%;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  font-size: 12px;
}

.btn-copy-mini:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ====================================
   LINKS PAGE - PROMOTION STRATEGIES
   ==================================== */

.promotion-strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.strategy-item {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
  border: 2px solid transparent;
  transition: all 0.3s;
  text-align: center;
}

.strategy-item:hover {
  border-color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.strategy-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  margin: 0 auto 16px;
}

.strategy-item h4 {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.strategy-item p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

/* ====================================
   LINKS PAGE - RESPONSIVE
   ==================================== */

@media (max-width: 1024px) {
  .service-links-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .two-column-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .service-links-grid {
    grid-template-columns: 1fr;
  }

  .social-share-grid {
    grid-template-columns: 1fr;
  }

  .promotion-strategies-grid {
    grid-template-columns: 1fr;
  }
}

/* ====================================
   MATERIALS PAGE - TEMPLATE CARDS
   ==================================== */

.template-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.template-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.template-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.template-content {
  margin-bottom: 16px;
}

.template-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dark);
  resize: none;
  font-family: inherit;
  background: #fff;
}

.template-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* MATERIALS PAGE - TIPS LIST */

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.tip-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tip-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.tip-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.tip-content p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

/* ====================================
   PAYOUTS PAGE - BALANCE SHOWCASE
   ==================================== */

.balance-showcase {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 32px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.balance-info-main {
  flex: 1;
}

.balance-label-main {
  font-size: 14px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: 600;
}

.balance-amount-main {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1;
}

.balance-note-main {
  font-size: 14px;
  opacity: 0.85;
}

.balance-action-main {
  flex-shrink: 0;
}

.btn-request-payout-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-request-payout-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.balance-insufficient-main {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  font-size: 14px;
  text-align: center;
}

/* PAYOUTS PAGE - PAYMENT METHOD DISPLAY */

.payment-method-display {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.payment-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.payment-detail:last-child {
  border-bottom: none;
}

.payment-detail-label {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 600;
}

.payment-detail-value {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 700;
}

.btn-edit-payment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-edit-payment:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: #fff;
}

/* PAYOUTS PAGE - TABLE */

.payouts-table-container {
  overflow-x: auto;
  margin-top: 24px;
}

.payouts-table-styled {
  width: 100%;
  border-collapse: collapse;
}

.payouts-table-styled thead th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  font-size: 13px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.payouts-table-styled tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--bg-light);
  font-size: 14px;
  color: var(--text-dark);
}

.payout-id {
  font-weight: 700;
  color: var(--text-gray);
}

.payout-amount {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

.payout-status-badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}

.payout-status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.payout-status-badge.processing {
  background: #cfe2ff;
  color: #084298;
}

.payout-status-badge.completed {
  background: #d1e7dd;
  color: #0f5132;
}

.payout-status-badge.failed {
  background: #f8d7da;
  color: #842029;
}

.empty-state-payouts {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 60px;
  margin-bottom: 16px;
}

.empty-state-payouts h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.empty-state-payouts p {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
}

/* PAYOUTS PAGE - FAQ */

.faq-list-payouts {
  margin-top: 24px;
}

.faq-item-payout {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item-payout:last-child {
  border-bottom: none;
}

.faq-item-payout h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.faq-item-payout p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

/* ====================================
   PAYOUTS PAGE - MODAL
   ==================================== */

.payout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.payout-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.payout-modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payout-modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-gray);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  transition: all 0.2s;
}

.btn-close-modal:hover {
  color: var(--text-dark);
}

.payout-modal-body {
  padding: 30px;
}

.payout-form-group {
  margin-bottom: 20px;
}

.payout-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-dark);
}

.required-star {
  color: var(--primary);
}

.input-with-currency-wrapper {
  position: relative;
}

.currency-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--text-gray);
  font-size: 16px;
}

.currency-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s;
}

.currency-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.input-help {
  display: block;
  color: var(--text-gray);
  margin-top: 6px;
  font-size: 12px;
}

.payout-summary-box {
  background: var(--bg-light);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.payout-summary-box p {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-dark);
}

.payout-summary-box p:last-child {
  margin-bottom: 0;
}

.payout-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-cancel-modal {
  padding: 12px 24px;
  background: var(--bg-light);
  color: var(--text-dark);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  font-size: 14px;
}

.btn-cancel-modal:hover {
  background: var(--border);
}

.btn-submit-modal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  font-size: 14px;
}

.btn-submit-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
}

.btn-submit-modal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alert-success-modal {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  background-color: #d1e7dd;
  color: #0f5132;
  border-left: 4px solid #0f5132;
}

.alert-error-modal {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  background-color: #f8d7da;
  color: #842029;
  border-left: 4px solid #842029;
}

/* ====================================
   RESPONSIVE - PAYOUTS & MATERIALS
   ==================================== */

@media (max-width: 768px) {
  .balance-showcase {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .balance-amount-main {
    font-size: 36px;
  }

  .payouts-table-styled {
    font-size: 12px;
  }

  .payouts-table-styled thead th,
  .payouts-table-styled tbody td {
    padding: 10px 8px;
  }

  .tips-list {
    gap: 16px;
  }

  .tip-number {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* ====================================
   LANDING PAGE - ESTILOS PREMIUM
   ==================================== */

.affiliate-landing {
    background: #fff;
    overflow-x: hidden;
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4); }
    50% { box-shadow: 0 0 30px 10px rgba(233, 30, 99, 0.2); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Section */
.landing-hero {
    position: relative;
    padding: 100px 0 140px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.15'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.landing-hero .landing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeInUp 0.6s ease;
}

.badge-icon {
    font-size: 18px;
}

.hero-headline {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-headline .highlight {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.hero-subheadline {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: 480px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.landing-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: #fff;
    color: var(--primary);
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

.landing-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233,30,99,0.1), transparent);
    transition: left 0.5s ease;
}

.landing-cta-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    color: var(--primary-dark);
}

.landing-cta-primary:hover::before {
    left: 100%;
}

.landing-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 18px 28px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.landing-cta-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.trust-item svg {
    color: #4ade80;
}

/* Earnings Preview Card */
.hero-visual {
    animation: scaleIn 0.8s ease 0.3s both;
}

.earnings-preview {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}

.earnings-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

.preview-header {
    margin-bottom: 24px;
}

.preview-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.preview-stat {
    text-align: center;
    padding: 16px 12px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.preview-stat:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.preview-stat .stat-label {
    display: block;
    font-size: 10px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.preview-stat .stat-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.preview-example {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.preview-example::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.example-label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 6px;
}

.example-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

/* Sections */
.landing-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.affiliate-landing .section-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-dark) !important;
    margin: 0 0 12px;
    line-height: 1.2;
}

.affiliate-landing .section-header p {
    font-size: 18px;
    color: var(--text-gray) !important;
    margin: 0;
}

/* Para secciones con fondo de color */
.affiliate-landing .section-header.light h2 {
    color: #fff !important;
}

.affiliate-landing .section-header.light p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* How it Works */
.how-it-works {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.how-it-works .section-header h2 {
    color: #fff !important;
}

.how-it-works .section-header p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    z-index: 0;
}

.step-card {
    text-align: center;
    padding: 48px 32px 40px;
    background: #fff;
    border-radius: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border);
    z-index: 1;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(233, 30, 99, 0.15);
    border-color: var(--primary);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.step-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark) !important;
    margin: 0 0 12px;
}

.step-card p {
    font-size: 15px;
    color: var(--text-gray) !important;
    margin: 0;
    line-height: 1.7;
}

/* Benefits */
.benefits-section {
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(233, 30, 99, 0.2);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(216, 27, 96, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    transform: scale(1.1);
}

.benefit-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark) !important;
    margin: 0 0 10px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-gray) !important;
    margin: 0;
    line-height: 1.7;
}

/* Calculator Section Premium */
.calculator-section-landing {
    background: linear-gradient(180deg, #fff 0%, var(--bg-light) 100%);
    padding: 120px 0;
}

.calculator-premium {
    background: #fff;
    border-radius: 32px;
    padding: 60px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.calculator-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, #ffd700 100%);
}

/* Main Display */
.calc-main-display {
    text-align: center;
    margin-bottom: 40px;
}

.calc-amount-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.calc-currency {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.calc-amount {
    font-size: 80px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    transition: all 0.3s ease;
}

.calc-period {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-gray);
}

.calc-annual-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-radius: 50px;
}

.calc-annual-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.calc-annual-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* Progress Bar */
.calc-progress-container {
    margin-bottom: 48px;
}

.calc-progress-bar {
    height: 12px;
    background: var(--bg-light);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.calc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, #ffd700 100%);
    border-radius: 6px;
    width: 6%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.calc-progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(0); }
}

.calc-milestones {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
}

.calc-milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.calc-milestone.reached {
    opacity: 1;
}

.milestone-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s ease;
}

.calc-milestone.reached .milestone-dot {
    background: var(--primary);
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

.milestone-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
}

/* Sliders */
.calc-sliders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.calc-slider-group {
    position: relative;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.slider-header label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.slider-header label svg {
    color: var(--primary);
}

.slider-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    min-width: 60px;
    text-align: right;
}

.slider-wrapper {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: transparent;
    position: absolute;
    z-index: 2;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    cursor: pointer;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.slider-track-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 4px;
    width: 10%;
    transition: width 0.1s ease;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Stats Grid */
.calc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.calc-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.calc-stat-item:hover {
    background: rgba(233, 30, 99, 0.05);
    transform: translateY(-2px);
}

.stat-icon-mini {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.stat-info-mini {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label-mini {
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value-mini {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Level Indicator */
.calc-level-indicator {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.calc-level-indicator.level-up {
    border-color: var(--primary);
    animation: levelUpPulse 0.5s ease;
}

@keyframes levelUpPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}

.level-icon {
    font-size: 20px;
}

.level-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.level-message {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

/* CTA */
.calc-cta-container {
    text-align: center;
}

.calc-cta-container .landing-cta-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 40px rgba(233, 30, 99, 0.4);
}

.calc-cta-container .landing-cta-primary:hover {
    box-shadow: 0 15px 50px rgba(233, 30, 99, 0.5);
    color: #fff;
}

/* Calculator Responsive */
@media (max-width: 768px) {
    .calculator-premium {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .calc-amount {
        font-size: 56px;
    }

    .calc-currency {
        font-size: 28px;
    }

    .calc-period {
        font-size: 18px;
    }

    .calc-sliders {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .calc-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .calc-milestones {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .calc-amount {
        font-size: 48px;
    }

    .calc-annual-display {
        flex-direction: column;
        gap: 4px;
    }
}

/* FAQ Section */
.faq-section {
    background: var(--bg-light);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(233, 30, 99, 0.2);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.1);
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark) !important;
    text-align: left;
    transition: all 0.3s ease;
    font-family: inherit;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question svg {
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 250px;
}

.faq-answer p {
    padding: 0 28px 24px;
    margin: 0;
    font-size: 15px;
    color: var(--text-gray) !important;
    line-height: 1.8;
}

/* Final CTA Section */
.final-cta-section {
    background: #fff;
    padding-bottom: 120px;
}

.final-cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 28px;
    padding: 70px 50px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(233, 30, 99, 0.3);
}

.final-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.final-cta-card h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 16px;
    position: relative;
}

.final-cta-card > p {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 36px;
    position: relative;
}

.final-cta-buttons {
    margin-bottom: 36px;
    position: relative;
}

.landing-cta-primary.large {
    padding: 20px 48px;
    font-size: 18px;
    border-radius: 14px;
}

.final-trust-badges {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    position: relative;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
}

.trust-badge svg {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
    .landing-hero .landing-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        max-width: 420px;
        margin: 0 auto;
    }

    .steps-grid::before {
        display: none;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-hero {
        padding: 70px 0 100px;
    }

    .hero-headline {
        font-size: 36px;
    }

    .hero-subheadline {
        font-size: 16px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .landing-cta-primary,
    .landing-cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .landing-section {
        padding: 70px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .steps-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .calculator-section-landing .calculator-card {
        padding: 40px 24px;
        border-radius: 20px;
    }

    .calculator-section-landing .calculator-form {
        grid-template-columns: 1fr;
    }

    .final-cta-card {
        padding: 50px 24px;
        border-radius: 20px;
    }

    .final-cta-card h2 {
        font-size: 26px;
    }

    .final-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 28px;
    }

    .preview-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .preview-stat {
        padding: 12px;
    }
}

/* ====================================
   COPY BUTTON ANIMATION
   ==================================== */

.btn-copy,
.btn-copy-mini,
.copy-affiliate-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-copy.copied,
.btn-copy-mini.copied,
.copy-affiliate-link.copied {
    background: var(--success) !important;
    border-color: var(--success) !important;
    transform: scale(1.05);
}

.btn-copy.copied:hover,
.btn-copy-mini.copied:hover,
.copy-affiliate-link.copied:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

@keyframes copySuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.05);
    }
}

.btn-copy.copied,
.copy-affiliate-link.copied {
    animation: copySuccess 0.3s ease;
}

/* ====================================
   QR CODE SECTION - IMPROVED UI
   ==================================== */

.qr-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    padding: 32px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
}

.qr-code-container {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 268px;
    min-height: 268px;
}

.qr-code-container #qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-container #qrcode {
    line-height: 0;
}

.qr-code-container #qrcode img {
    display: none !important;
}

.qr-code-container #qrcode canvas {
    display: block !important;
    margin: 0 auto;
}

.qr-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.qr-actions .btn-primary,
.qr-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.qr-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qr-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
}

.qr-actions .btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qr-actions .btn-secondary:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.qr-info-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qr-info-text p {
    margin: 0;
}

/* Responsive QR */
@media (max-width: 480px) {
    .qr-preview {
        padding: 24px 16px;
    }

    .qr-actions {
        flex-direction: column;
        width: 100%;
    }

    .qr-actions .btn-primary,
    .qr-actions .btn-secondary {
        width: 100%;
    }
}
