/* =========================================
   AFFILIATE PAGE (FINAL FIXED)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&display=swap');

:root {
    --bg-body: #ffffff;
    --primary: #4f46e5;
    --secondary: #0f172a;
    --accent: #10b981; /* Yeşil */
    --text-main: #334155;
    --text-muted: #64748b;
    --card-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg-body);
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- ANIMASYONLAR --- */
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s ease-out; }
.active { opacity: 1; transform: translate(0) scale(1); }

/* 1. HERO SECTION */
.aff-hero {
    padding: 180px 0 120px;
    background: radial-gradient(circle at top right, #ecfdf5 0%, #ffffff 60%);
    text-align: center; position: relative; overflow: hidden;
}
.hero-badge {
    display: inline-block; padding: 8px 25px; border-radius: 50px;
    background: #d1fae5; color: #059669; font-weight: 700; font-size: 0.9rem;
    margin-bottom: 30px; letter-spacing: 1px; border: 1px solid #a7f3d0;
}
.hero-title {
    font-size: 4.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 25px;
    color: var(--secondary); letter-spacing: -2px;
}
.hero-title span { color: var(--accent); }
.hero-desc {
    font-size: 1.3rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 40px;
}
.btn-aff {
    background: var(--secondary); color: white; padding: 18px 40px; border-radius: 12px;
    font-size: 1.1rem; font-weight: 700; display: inline-flex; align-items: center; gap: 10px;
    transition: 0.3s; text-decoration: none; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}
.btn-aff:hover { background: var(--primary); transform: translateY(-3px); color: white; }

/* 2. NASIL ÇALIŞIR (STEPS - DÜZELTİLDİ) */
.steps-section { padding: 100px 0; }

.steps-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    
    /* --- DÜZELTME BURADA --- */
    /* Kutuların üzerine binen yuvarlaklar için üstten boşluk açıyoruz */
    margin-top: 60px; 
}

.step-card {
    background: white; padding: 50px 30px 40px; /* Üst padding artırıldı */
    border-radius: 24px; text-align: center;
    box-shadow: var(--card-shadow); border: 1px solid #f1f5f9; 
    position: relative; /* Yuvarlak buna göre hizalanacak */
    transition: 0.3s;
    margin-top: 20px; /* Ekstra güvenlik boşluğu */
}
.step-card:hover { transform: translateY(-10px); border-color: var(--primary); }

.step-number {
    position: absolute; 
    top: -25px; /* Kutunun tepesinden yarısı dışarı çıkacak */
    left: 50%; transform: translateX(-50%);
    width: 50px; height: 50px; /* Biraz büyüttük */
    background: var(--accent); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.4rem; 
    border: 5px solid white; /* Beyaz çerçeve ile ayrım */
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    z-index: 2;
}

.step-icon { font-size: 3rem; color: var(--secondary); margin: 20px 0 20px; }
.step-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; color: var(--secondary); }
.step-card p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }

/* 3. CALCULATOR */
.calc-section { padding: 100px 0; background: var(--secondary); color: white; position: relative; overflow: hidden; }
.calc-bg {
    position: absolute; inset: 0; opacity: 0.1;
    background-image: linear-gradient(#334155 1px, transparent 1px), linear-gradient(90deg, #334155 1px, transparent 1px);
    background-size: 40px 40px;
}
.calc-container {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); padding: 60px; border-radius: 30px;
    max-width: 900px; margin: 0 auto; position: relative; z-index: 2;
    display: flex; gap: 60px; align-items: center;
}
.calc-input { flex: 1; }
.calc-result { 
    flex: 1; background: white; color: var(--secondary); padding: 40px; 
    border-radius: 20px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Slider */
input[type=range] { width: 100%; -webkit-appearance: none; background: transparent; margin: 20px 0; }
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; height: 25px; width: 25px; border-radius: 50%;
    background: var(--accent); cursor: pointer; margin-top: -10px;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.3);
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 6px; cursor: pointer; background: #475569; border-radius: 10px;
}
.result-amount { font-size: 3.5rem; font-weight: 900; color: var(--accent); display: block; margin: 10px 0; }
.result-label { font-size: 1.1rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }

/* 4. FEATURES */
.feat-section { padding: 120px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.feat-box { 
    display: flex; gap: 20px; align-items: flex-start; 
    padding: 30px; background: #f8fafc; border-radius: 20px; transition: 0.3s;
}
.feat-box:hover { background: white; box-shadow: var(--card-shadow); transform: translateX(10px); }
.feat-icon { 
    width: 60px; height: 60px; background: #eef2ff; color: var(--primary); 
    border-radius: 15px; display: flex; align-items: center; justify-content: center; 
    font-size: 1.5rem; flex-shrink: 0;
}
.feat-content h4 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; color: var(--secondary); }
.feat-content p { color: var(--text-muted); line-height: 1.6; font-size: 1rem; }

/* 5. FAQ */
.faq-section { padding: 100px 0; background: #fff; border-top: 1px solid #f1f5f9; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e2e8f0; margin-bottom: 15px; }
.faq-item summary {
    padding: 20px 0; cursor: pointer; font-weight: 700; color: var(--secondary);
    font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); font-weight: 400; }
.faq-item[open] summary::after { content: '-'; color: var(--accent); }
.faq-item p { padding-bottom: 20px; color: var(--text-muted); line-height: 1.6; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .steps-grid { grid-template-columns: 1fr; gap: 60px; margin-top: 50px; }
    .calc-container { flex-direction: column; text-align: center; padding: 40px 20px; }
    .feat-grid { grid-template-columns: 1fr; }
}