.hero-section {
    width: min(1200px, calc(100% - 40px));
    min-height: 420px;
    margin: 30px auto 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 30%, var(--gold-soft), transparent 45%),
        radial-gradient(circle at 85% 85%, var(--gold-soft), transparent 40%),
        linear-gradient(145deg, var(--bg-card), var(--bg));
    transition: background .3s, border-color .3s;
}


.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--gold-soft);
    pointer-events: none;
}

.hero-section::before {
    width: 420px;
    height: 420px;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-section::after {
    width: 300px;
    height: 300px;
    right: -100px;
    bottom: -200px;
}

.hero-content {
    width: min(850px, 100%);
    padding: 30px 25px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid var(--gold);
    border-radius: 50px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(.8); }
}

.hero-content h1 {
    margin-top: 26px;
    color: var(--text);
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -2px;
}

.hero-content h1 span {
    color: var(--gold);
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: "";
    position: absolute;
    bottom: 8px;
    right: 0;
    width: 100%;
    height: 8px;
    background: var(--gold-soft);
    z-index: -1;
    border-radius: 4px;
}

.hero-content p {
    max-width: 650px;
    margin: 22px auto 0;
    color: var(--text-muted);
    font-size: 17px;
}


.hero-search {
    width: min(720px, 100%);
    margin: 34px auto 0;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all .25s ease;
}

.hero-search:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-soft);
}

.search-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.search-icon svg { width: 21px; height: 21px; }

.hero-search input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
}
.hero-search input::placeholder { color: var(--text-faint); }

.hero-search button {
    height: 48px;
    padding: 0 30px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #1a1a1a;
    font-family: inherit;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
}

.hero-search button:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    transform: translateY(-1px);
}


.hero-buttons {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    min-height: 48px;
    padding: 10px 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-weight: 800;
    font-size: 14px;
    transition: all .25s ease;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #1a1a1a;
    box-shadow: 0 4px 16px var(--gold-soft);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--gold-glow);
}

.btn-outline {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    color: var(--gold);
    border-color: var(--gold);
}


.hero-stats {
    margin: 38px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat strong {
    color: var(--gold);
    font-size: 22px;
    font-weight: 900;
}

.hero-stat span {
    color: var(--text-muted);
    font-size: 12px;
}

.stat-line {
    width: 1px;
    height: 32px;
    background: var(--border);
}


.categories-section,
.ads-section {
    direction: rtl;
    width: min(1200px, calc(100% - 40px));
    margin: 85px auto 0;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    border-radius: 2px;
}

.section-title span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title h2 {
    margin-top: 6px;
    color: var(--text);
    font-size: 29px;
    font-weight: 800;
}

.section-title > a {
    color: var(--text-muted);
    font-size: 13px;
    transition: color .2s;
}

.section-title > a:hover { color: var(--gold); }

.categories-layout {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 22px;
    direction: ltr;
    align-items: start;
}

.categories-main {
    grid-column: 1;
    grid-row: 1;
    direction: rtl;
    min-width: 0;
}

/* ============ ۳ دایره ویژه ============ */
.categories-grid {
    grid-column: 1;
    grid-row: 1;
    direction: rtl;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
}

.category-box.main-special-box {
    width: 210px;
    height: 210px;
    flex: 0 0 210px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--bg-elevated), var(--bg-card) 70%);
    border: 1px solid var(--border-light);
    transition: all .3s ease;
}

.category-box.main-special-box::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px dashed var(--border);
    opacity: .6;
    transition: opacity .3s;
}

.category-box.main-special-box:hover::before {
    opacity: 1;
    border-color: var(--gold);
}

.category-box.main-special-box .category-info {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.category-box.main-special-box .category-info h3 {
    margin: 0;
    color: var(--gold);
    font-size: 24px;
    font-weight: 900;
}

.category-box.main-special-box .category-info span {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.category-box.main-special-box:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--gold);
    box-shadow:
        0 16px 40px rgba(0,0,0,.35),
        0 0 30px var(--gold-glow);
}

/* ============ کارت دسته ============ */
.category-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 22px;
    transition: all .25s;
}

.category-info h3 {
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
}

.category-info span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 14px;
}

.category-arrow {
    position: absolute;
    left: 16px;
    color: var(--text-faint);
    font-size: 18px;
    transition: color .2s, transform .2s;
}

.category-box:hover .category-arrow {
    color: var(--gold);
    transform: translateX(-4px);
}

/* ============ آگهی‌ها ============ */
.ads-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ad-card {
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all .3s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}

.ad-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity .3s;
    z-index: 3;
}

.ad-card:hover::before { opacity: 1; }

.ad-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-dark);
    box-shadow: 0 16px 40px rgba(0,0,0,.3);
}

.ad-image {
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle, var(--gold-soft), transparent 60%),
        linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
    overflow: hidden;
}

.ad-placeholder-icon {
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder-icon img {
    width: 60px;
    height: 60px;
}

.ad-content { padding: 20px; }

.ad-category {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.ad-content h3 {
    margin-top: 8px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
}

.ad-content p {
    min-height: 46px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.8;
}

.ad-footer {
    margin-top: 18px;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--border);
}

.ad-footer strong {
    color: var(--gold);
    font-size: 14px;
    font-weight: 800;
}

.ad-footer span {
    color: var(--text-muted);
    font-size: 11px;
}

/* ============ وضعیت خالی ============ */
.empty-state {
    padding: 50px 25px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-muted);
}

.empty-state h3 {
    margin-top: 12px;
    color: var(--text-soft);
    font-size: 16px;
}

.empty-state p {
    margin-top: 6px;
    font-size: 13px;
}

.empty-icon {
    color: var(--gold);
    font-size: 40px;
    opacity: .6;
}

.ads-empty { grid-column: 1 / -1; }


.final-cta {
    width: min(1200px, calc(100% - 40px));
    margin: 60px auto 0;
    padding: 34px 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
}

.cta-text span {
    color: var(--text-muted);
    font-size: 12px;
}

.cta-text h2 {
    margin-top: 5px;
    color: var(--text);
    font-size: 24px;
    font-weight: 800;
}


@media (max-width: 950px) {
    .categories-layout { grid-template-columns: 190px 1fr; }
    .ads-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-section,
    .categories-section,
    .ads-section,
    .final-cta { width: calc(100% - 24px); }
    .hero-section { min-height: 420px; }
}

@media (max-width: 550px) {
    .hero-section {
        margin-top: 18px;
        border-radius: 20px;
        min-height: auto;
    }
    .hero-content { padding: 30px 18px; }
    .hero-content h1 {
        font-size: 35px;
        letter-spacing: -1px;
    }
    .hero-content p { font-size: 13px; }
    .hero-search { flex-wrap: wrap; }
    .search-icon { display: none; }
    .hero-search input,
    .hero-search button { width: 100%; }
    .hero-search input { height: 46px; }
    .hero-stats { gap: 5px; }
    .categories-grid,
    .ads-grid { grid-template-columns: 1fr; }
    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }
    .section-title h2 { font-size: 24px; }
    .final-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.site-intro {
    max-width: 1200px;
    margin: 20px auto 0;     
    padding: 30px 35px;      
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    text-align: justify;
    line-height: 2;
    color: var(--text-muted);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.site-intro h2 {
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    text-align: right;
}

.site-intro p {
    font-size: 15px;
}

@media (max-width: 600px) {
    .site-intro {
        margin: 15px 15px 0;
        padding: 20px 15px; /* ← padding کناره‌ها رو کمی کمتر کردم که عرض متن بیشتر بشه */
        border-radius: 16px;
        line-height: 1.9;
    }
    
    .site-intro h2 {
        font-size: 18px;
        margin-bottom: 12px;
        padding-bottom: 10px;
        text-align: right; /* عنوان راست‌چین بمونه */
    }
    
    .site-intro p {
        font-size: 13px;
        text-align: justify;          /* ← برگشت به هم‌ترازی */
        text-justify: inter-word;     /* ← کلمه‌ها رو به جای حروف، از فاصله‌ها تنظیم می‌کنه */
        word-spacing: -0.5px;         /* ← فاصله بین کلمه‌ها رو کمی جمع‌تر می‌کنه */
        -webkit-hyphens: none;
        hyphens: none;
    }
}