* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #eef4fd 0%, #e6efff 50%, #f0f6ff 100%);
    color: #1e2a3a;
    min-height: 100vh;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(37, 99, 235, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1e2a3a;
}

.en-title {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #2563eb;
}

.btn-login {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    padding: 10px 25px;
    border-radius: 25px;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #2563eb;
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.08), transparent 60%);
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: #1e2a3a;
}

.highlight {
    color: #2563eb;
}

.en-subtitle {
    font-size: 1.1rem;
    color: #666;
    direction: ltr;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1rem;
    color: #888;
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    max-width: 700px;
    margin: 0 auto 30px;
    background: #fff;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    border: 2px solid rgba(37, 99, 235, 0.1);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    color: #1e2a3a;
    font-family: 'Vazirmatn', sans-serif;
    outline: none;
}

.search-box input::placeholder {
    color: #bbb;
}

.search-box button {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: none;
    color: #fff;
    padding: 12px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.popular-searches {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.popular-searches span {
    color: #999;
    margin-left: 10px;
}

.popular-searches button {
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #2563eb;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.popular-searches button:hover {
    background: #2563eb;
    color: #fff;
}

/* Categories */
.categories {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px 20px;
}

.categories h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1e2a3a;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #fff, #f0f6ff);
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.cat-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 5px;
    color: #1e2a3a;
}

.category-card p {
    color: #999;
    font-size: 0.85rem;
}

/* Sources Section */
.sources {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8fbff, #eef4fd);
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.sources h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #1e2a3a;
}

.en-sources {
    color: #2563eb;
    direction: ltr;
    margin-bottom: 30px;
    font-weight: 500;
}

.source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.source-card {
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 15px;
    padding: 30px 20px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.source-card:hover {
    transform: translateY(-5px);
    border-color: #2563eb;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.source-logo {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.source-card h3 {
    color: #1e2a3a;
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.source-card .en {
    color: #2563eb;
    direction: ltr;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.source-card p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.visit-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Results */
.results {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px 20px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-header h2 {
    font-size: 1.8rem;
    color: #1e2a3a;
}

#resultCount {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-title {
    color: #999;
    font-size: 0.9rem;
}

.filter-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.filter-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.product-grid {
    display: grid;