.market-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}
.market-bg-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    position: absolute; inset: 0;
}
.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 3rem; /* Boşluk artırıldı */
}
.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    padding-left: 3.5rem;
    border-radius: 99px;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s;
}
.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-input:focus {
    background: white;
    color: #0f172a;
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}
.search-icon {
    position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%);
    font-size: 1.2rem; color: #94a3b8; transition: all 0.3s;
}
.search-input:focus + .search-icon { color: #3b82f6; }

/* 2. Filtre Butonları (DÜZELTİLDİ) */
.filter-btn {
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    border: 1px solid transparent;
    background: white; /* Pasif hali Beyaz */
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Hover Durumu */
.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    background: #f1f5f9;
}

/* Aktif Durumu (SORUN ÇÖZÜLDÜ: Mavi Yapıldı) */
.filter-btn.active {
    background: #3b82f6; /* Parlak Mavi */
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6); /* Glow Efekti */
    transform: scale(1.05);
}

/* 3. Modül Kartları */
.module-card {
    background: white;
    border-radius: 1.5rem;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}
.module-icon-wrapper {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.module-icon-bg {
    position: absolute; inset: 0; opacity: 0.1;
    background-size: cover; background-position: center;
    filter: blur(10px); transform: scale(1.2);
}
.module-icon {
    width: 70px; height: 70px;
    background: white;
    border-radius: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    z-index: 2;
    transition: transform 0.4s;
}
.module-icon img {
    border-radius: 100%;
}
.module-card:hover .module-icon { transform: scale(1.1); }

/* Kategori Renkleri */
.cat-pazaryeri .module-icon { color: #f97316; }
.cat-odeme .module-icon { color: #10b981; }
.cat-muhasebe .module-icon { color: #3b82f6; }
.cat-sosyal .module-icon { color: #ec4899; }
.cat-kargo .module-icon { color: #ec4899; }
.cat-diger .module-icon { color: #ec4899; }

/* 4. Modal (Detay Penceresi) */
.module-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: all 0.3s;
}
.module-modal-overlay.active { opacity: 1; pointer-events: all; }

.module-modal {
    background: white;
    width: 90%; max-width: 900px;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: grid; grid-template-columns: 1fr 1.5fr;
}
.module-modal-overlay.active .module-modal { transform: scale(1) translateY(0); }

.modal-sidebar {
    background: #f8fafc;
    padding: 3rem 2rem;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    border-right: 1px solid #e2e8f0;
}
.modal-content { padding: 3rem; position: relative; max-height: 80vh; overflow-y: auto; }

.modal-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #f1f5f9; color: #64748b;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
}
.modal-close:hover { background: #ef4444; color: white; }

@media (max-width: 768px) {
    .module-modal { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
    .modal-sidebar { padding: 2rem; border-right: none; border-bottom: 1px solid #e2e8f0; }
    .modal-content { padding: 2rem; }
}