/* کپسول خاکستری بزرگ */
.wallex-tf-wrapper {
    width: 100%;
    background: #f3f3f3;
    padding: 32px 48px;
    border-radius: 80px;
    display: flex;
    flex-direction: row-reverse; /* دکمه راست، عنوان چپ */
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    position: relative;
    direction: rtl;
}

/* دکمه اصلی */
.wallex-tf-btn {
    padding: 16px 40px;
    border-radius: 999px;
    background: #171d26;
    color: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 22px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

/* فلش روی دکمه */
.wallex-tf-btn .arrow {
    font-size: 14px;
    transform: translateY(-1px);
    transition: 0.2s;
}

.wallex-tf-btn.open .arrow {
    transform: translateY(-1px) rotate(180deg);
}

/* عنوان سمت چپ */
.wallex-tf-heading {
    font-size: 30px;
    font-weight: 600;
    color: #1a1c1e;
    white-space: nowrap;
}

/* منوی دراپ‌داون – تمام عرض کپسول */
.wallex-tf-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #171d26;
    border-radius: 20px;
    padding: 12px 0;
    width: 100%;
    display: none;
    flex-direction: column;
    z-index: 9999;
}

/* نمایش منو */
.wallex-tf-dropdown.open {
    display: flex;
}

/* آیتم‌های منو */
.wallex-tf-dropdown a {
    padding: 14px 24px;
    font-size: 16px;
    text-decoration: none;
    color: #dcdfe5;
    display: block;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.wallex-tf-dropdown a:hover {
    background-color: rgba(255,255,255,0.07);
    color: #ffffff;
}

.wallex-tf-dropdown a.active {
    background-color: rgba(255,255,255,0.15);
    color: #ffffff;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .wallex-tf-wrapper {
        flex-direction: row-reverse;
        align-items: center;
        gap: 60px;
        padding: 12px;
        border-radius: 50px;
    }

    .wallex-tf-heading {
        font-size: 14px;
        margin-right: 16px;
    }

    .wallex-tf-btn {
        width: 40%;
        justify-content: center;
        font-size: 14px;
        padding: 11px 1px;
        margin-left: 14px;
    }
}
